|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.wizard.WatchSettingsTableContentProvider
Manages a WatchSettings instance whose
WatchSettingsEntries are displayed in a
TableViewer.
| Field Summary | |
static int |
CASE_SENSITIVE_COLUMN
The index of the case sensitive column |
static int |
KEYWORD_COLUMN
The index of the keyword column |
private WatchSettings |
settings
The WatchSettings instance to manage |
private TableViewer |
viewer
The TableViewer to provide the data for |
static int |
WHOLE_WORD_COLUMN
The index of the whole word column |
| Constructor Summary | |
WatchSettingsTableContentProvider(TableViewer viewer)
Creates a new WatchSettingsTableContentProvider which
provides the data for the specified TableViewer.
|
|
| Method Summary | |
void |
add(WatchSettingsEntry entry)
Adds the specified WatchSettingsEntry to the managed
WatchSettings. |
void |
dispose()
Disposes this WatchSettingsTableContentProvider
|
Object |
getColumnValue(Object element,
int columnIndex)
Gets the column value for the specified element at the
given columnIndex.
|
Object[] |
getElements(Object inputElement)
Returns the elements to display in the Viewer when its
input is set to the given element. |
void |
inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
Notifies this content provider that the given viewer's input has been switched to a different element. |
void |
remove(WatchSettingsEntry entry)
Removes the specified WatchSettingsEntry from the managed
WatchSettings. |
void |
removeAll()
Removes all WacthSettingsEntries from the managed
WatchSettings. |
void |
update(WatchSettingsEntry entry)
Notifies the Viewer that the specified
WatchSettingsEntry has been updated.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int KEYWORD_COLUMN
The index of the keyword column
public static final int CASE_SENSITIVE_COLUMN
The index of the case sensitive column
public static final int WHOLE_WORD_COLUMN
The index of the whole word column
private TableViewer viewer
The TableViewer to provide the data for
private WatchSettings settings
The WatchSettings instance to manage
| Constructor Detail |
public WatchSettingsTableContentProvider(TableViewer viewer)
Creates a new WatchSettingsTableContentProvider which
provides the data for the specified TableViewer.
viewer - the TableViewer to provide the data for| Method Detail |
public Object[] getElements(Object inputElement)
Returns the elements to display in the Viewer when its
input is set to the given element. These elements can be presented as
rows in a table, items in a list, etc. The result is not modified by the
Viewer.
getElements in interface IStructuredContentProviderinputElement - the input element
ViewerIStructuredContentProvider.getElements(java.lang.Object)public void dispose()
Disposes this WatchSettingsTableContentProvider
dispose in interface IContentProviderIContentProvider.dispose()
public void inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
Notifies this content provider that the given viewer's input has been switched to a different element. The viewer should not be updated during this call, as it might be in the process of being disposed.
inputChanged in interface IContentProviderviewer - the vieweroldInput - the old input element, or null if the
viewer did not previously have an inputnewInput - the new input element, or null if the
viewer does not have an inputIContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer,
java.lang.Object, java.lang.Object)
public Object getColumnValue(Object element,
int columnIndex)
Gets the column value for the specified element at the
given columnIndex.
getColumnValue in interface ITableContentProviderelement - the model element for which to query the colum valuecolumnIndex - the index of the column to query the value for
element at the given
public void add(WatchSettingsEntry entry)
Adds the specified WatchSettingsEntry to the managed
WatchSettings. Notifies the Viewer that
the specified WatchSettingsEntry has been added.
entry - the WatchSettingsEntry to addpublic void remove(WatchSettingsEntry entry)
Removes the specified WatchSettingsEntry from the managed
WatchSettings. Notifies the Viewer that
the specified WatchSettingsEntry has been removed.
entry - the WatchSettingsEntry to removeremoveAll()public void removeAll()
Removes all WacthSettingsEntries from the managed
WatchSettings. Notifies the Viewer that
all entries have been removed.
remove(WatchSettingsEntry)public void update(WatchSettingsEntry entry)
Notifies the Viewer that the specified
WatchSettingsEntry has been updated.
entry - the WatchSettingsEntry to update
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||