|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectViewerFilter
eu.geclipse.ui.views.filters.AbstractGridViewerFilter
eu.geclipse.ui.views.filters.JobSubmissionTimeFilter
public class JobSubmissionTimeFilter
Filter for jobs using time when job was submitted
| Constructor Summary | |
|---|---|
JobSubmissionTimeFilter()
|
|
| Method Summary | |
|---|---|
java.util.Date |
getAfterDate()
|
java.util.Date |
getBeforeDate()
|
java.lang.String |
getFilterId()
|
boolean |
isEnabled()
Useful when in given filter configuration user doesn't want to use all filters (e.g. user want to filter jobs using status, but he haven't specified submission date) |
IGridFilter |
makeClone()
Cloning is used in ConfigureFiltersDialog, so it's important that every IGridFilter implement clone |
void |
readState(IMemento filterMemento)
Read filter state from IMemento |
void |
saveState(IMemento filterMemento)
Saves filter state into IMemento |
boolean |
select(Viewer viewer,
java.lang.Object parentElement,
java.lang.Object element)
|
void |
setDates(java.util.Date newAfterDate,
java.util.Date newBeforeDate)
|
| Methods inherited from class eu.geclipse.ui.views.filters.AbstractGridViewerFilter |
|---|
getFilter |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobSubmissionTimeFilter()
| Method Detail |
|---|
public boolean select(Viewer viewer,
java.lang.Object parentElement,
java.lang.Object element)
public java.lang.String getFilterId()
IGridFilter
class should has unique id. Objects of the same class should have
the same id.public boolean isEnabled()
IGridFilter
public IGridFilter makeClone()
throws java.lang.CloneNotSupportedException
IGridFilterConfigureFiltersDialog, so it's important that every IGridFilter implement clone
java.lang.CloneNotSupportedExceptionpublic void readState(IMemento filterMemento)
IGridFilterIMemento
filterMemento - memento, from which filter state will be restoredpublic void saveState(IMemento filterMemento)
IGridFilterIMemento
filterMemento - memento, in which filter state should be stored
public void setDates(java.util.Date newAfterDate,
java.util.Date newBeforeDate)
newAfterDate - jobs submitted after this date will be shown on view
(may be null)newBeforeDate - jobs submitted before this date will be shown on view
(may be null)public java.util.Date getAfterDate()
public java.util.Date getBeforeDate()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||