|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.table.views.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 viewerParam)
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. |
void |
resetModified()
Resets the modified flag of an entry to false. |
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 viewerParam)
viewerParam
- the parent tree table viewer for refreshesMethod Detail |
---|
public int indexOf(TableData tableData)
tableData
- the TableData entry
public void resetModified()
public void updateViewAsync()
public void add(TableData tableData)
tableData
- the TableData entrypublic TableData get(String key)
key
- the identifier key
public TableData get(int index)
index
- the identifier index
public boolean contains(String key)
key
- the identifier key
public 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 int size()
public TableData[] getArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |