|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.viewmanagement.view.TableDataList
public class TableDataList
The class TableDataList implements a list of TableData elements that are the input of the DataTableViewer. This list is modified by the producer and observer DataComponent.
Constructor Summary | |
---|---|
TableDataList(DataTableViewer viewer)
Instantiates a new TableDataList. |
Method Summary | |
---|---|
void |
add(TableData tableData)
Adds a TableData entry to the list. |
boolean |
contains(String key)
Checks whether the list contains a TableData entry with the specific key. |
boolean |
containsOther(String key,
TableData tableData)
Checks whether the list contains a duplicate TableData entry with the same key as the provided one. |
TableData |
get(int index)
Gets a TableData entry with a specific index as an identifier. |
TableData |
get(String key)
Gets a TableData entry with a specific key as an identifier. |
TableData[] |
getArray()
Gets the list of TableData entries as an array of TableData entries. |
static TableDataList |
getInstance()
Gets the single instance of this TableDataList class. |
int |
indexOf(TableData tableData)
Returns the index of an TableData entry. |
void |
remove(String key)
Removes the TableData entry with the specific key from list. |
int |
size()
Gets the size of this list. |
void |
updateViewAsync()
Updates the view of the parent tree table viewer asynchronously. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableDataList(DataTableViewer viewer)
viewer
- the parent tree table viewer for refreshesMethod Detail |
---|
public final int indexOf(TableData tableData)
tableData
- the TableData entry
public final void updateViewAsync()
public final void add(TableData tableData)
tableData
- the TableData entrypublic final TableData get(String key)
key
- the identifier key
public final TableData get(int index)
index
- the identifier index
public final boolean contains(String key)
key
- the identifier key
public final boolean containsOther(String key, TableData tableData)
key
- the identifier keytableData
- the TableData entry
public void remove(String key)
key
- the identifier keypublic static TableDataList getInstance()
public final int size()
public final TableData[] getArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |