|
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.JobStatusFilter
public class JobStatusFilter
Filter using job-status to filter jobs
| Constructor Summary | |
|---|---|
JobStatusFilter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getFilterId()
|
boolean |
getStatusState(int jobStatus)
|
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 |
setStatusState(int jobStatus,
boolean showOnView)
|
| 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 JobStatusFilter()
| Method Detail |
|---|
public IGridFilter makeClone()
throws java.lang.CloneNotSupportedException
IGridFilterConfigureFiltersDialog, so it's important that every IGridFilter implement clone
java.lang.CloneNotSupportedException
public void setStatusState(int jobStatus,
boolean showOnView)
jobStatus - showOnView - true if jobs with given jobStatus should be visibled on
view
public boolean select(Viewer viewer,
java.lang.Object parentElement,
java.lang.Object element)
public boolean getStatusState(int jobStatus)
jobStatus -
public void saveState(IMemento filterMemento)
IGridFilterIMemento
filterMemento - memento, in which filter state should be storedpublic boolean isEnabled()
IGridFilter
public void readState(IMemento filterMemento)
IGridFilterIMemento
filterMemento - memento, from which filter state will be restoredpublic java.lang.String getFilterId()
IGridFilter
class should has unique id. Objects of the same class should have
the same id.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||