|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The DataModel interface must be implemented by any class that is to be used
as a data model for AbstractTable subclasses. It
provides the methods neccessary to manipulate the data model, and to manage
the model listeners so that notification can be posted when the state of the DataModel
changes.
| Method Summary | |
void |
addItem(java.lang.Object item)
Adds an item to the DataModel. |
void |
addModelListener(AbstractTable list)
Adds a model listener to the DataModel. |
java.lang.Object |
getItem(int index)
Gets an item from the DataModel. |
int |
getSize()
Gets the size of the DataModel. |
void |
insertItem(java.lang.Object item,
int index)
Inserts an item at the specified position in the DataModel. |
void |
removeAll()
Removes all items from the DataModel. |
void |
removeItem(int index)
Removes the item at the specified position from the DataModel. |
void |
removeModelListener(AbstractTable list)
Removes the specified model listener from the DataModel. |
| Method Detail |
public java.lang.Object getItem(int index)
index - The index of the item to get.public int getSize()
public void addModelListener(AbstractTable list)
AbstractTable.list - the listener.public void removeModelListener(AbstractTable list)
AbstractTable.list - the listener.public void addItem(java.lang.Object item)
item - The item to add.
public void insertItem(java.lang.Object item,
int index)
item - The item to add.index - The position at which to add the item.public void removeItem(int index)
index - The position from which to remove the item.public void removeAll()
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||