|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.bali.ewt.model.NullTwoDModel
A NullTwoDModel is an data source that contains no rows or columns and always returns null from getData.
It is a singleton class so clients should call NullTwoDModel.getTwoDModel() to get the only instance.
NullTwoDModel is used only by the Grid for its default constructor.
ArrayTwoDModel
,
Grid
Method Summary | |
void |
addModelListener(TwoDModelListener listener)
Add a TwoDModelListener to this TwoDModel. |
int |
getColumnCount()
Get the number of columns. |
java.lang.Object |
getData(int columnIndex,
int rowIndex)
Return the data of the cell. |
int |
getRowCount()
Get the number of rows. |
static TwoDModel |
getTwoDModel()
Get the only instance of this class. |
void |
removeModelListener(TwoDModelListener listener)
Remove a TwoDModelListener from this TwoDModel. |
void |
setData(int columnIndex,
int rowIndex,
java.lang.Object data)
Set the cell data to the new value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TwoDModel getTwoDModel()
public int getColumnCount()
getColumnCount
in interface TwoDModel
public int getRowCount()
getRowCount
in interface TwoDModel
public java.lang.Object getData(int columnIndex, int rowIndex)
getData
in interface TwoDModel
oracle.bali.ewt.model.TwoDModel
columnIndex
- the column index of the cellrowIndex
- the row index of the cellpublic void setData(int columnIndex, int rowIndex, java.lang.Object data)
setData
in interface TwoDModel
oracle.bali.ewt.model.TwoDModel
columnIndex
- the column index of the cellrowIndex
- the row index of the celldata
- the new datapublic void addModelListener(TwoDModelListener listener)
addModelListener
in interface TwoDModel
oracle.bali.ewt.model.TwoDModel
listener
- new listenerpublic void removeModelListener(TwoDModelListener listener)
removeModelListener
in interface TwoDModel
oracle.bali.ewt.model.TwoDModel
listener
- new listener
|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |