|
Oracle JEWT API Reference Release 4.2.33.0.0 B12199-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.bali.ewt.model.AbstractTwoDModel
Abstract base class for TwoDModels that handles the adding and
removing of ModelListeners and adds a convenience method
fireModelEvent for subclasses to call to send
TwoDModelEvents to registered listeners.
fireModelEvent(int, int, int)| Constructor Summary | |
AbstractTwoDModel()
|
|
| Method Summary | |
void |
addModelListener(TwoDModelListener listener)
Add a TwoDModelListener to this TwoDModel. |
protected void |
fireModelEvent(int eventID,
int startIndex,
int count)
Method for subclasses to call to fire TwoDModelEvents. |
protected void |
fireModelEvent(int eventID,
int startColumn,
int columnCount,
int startRow,
int rowCount)
Method for subclasses to call to fire TwoDModelEvents. |
abstract int |
getColumnCount()
Returns the number of columns in this TwoDModel. |
abstract java.lang.Object |
getData(int columnIndex,
int rowIndex)
Return the data of the cell. |
abstract int |
getRowCount()
Returns the number of rows in this TwoDModel. |
void |
removeModelListener(TwoDModelListener listener)
Remove a TwoDModelListener from this TwoDModel. |
abstract 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 |
| Constructor Detail |
public AbstractTwoDModel()
| Method Detail |
public abstract int getColumnCount()
getColumnCount in interface TwoDModelpublic abstract int getRowCount()
getRowCount in interface TwoDModel
public abstract java.lang.Object getData(int columnIndex,
int rowIndex)
getData in interface TwoDModelcolumnIndex - the column index of the cellrowIndex - the row index of the cell
public abstract void setData(int columnIndex,
int rowIndex,
java.lang.Object data)
setData in interface TwoDModelcolumnIndex - the column index of the cellrowIndex - the row index of the celldata - the new datapublic void addModelListener(TwoDModelListener listener)
addModelListener in interface TwoDModellistener - The listener to addpublic void removeModelListener(TwoDModelListener listener)
removeModelListener in interface TwoDModellistener - The listener to remove
protected void fireModelEvent(int eventID,
int startIndex,
int count)
eventID - ID of event to firestartIndex - Starting index of items that this event applies to.count - Number of columns or rows that this event applies tojava.lang.IllegalArgumentException - thrown if an unknown event id or
nonsensical arguments used.
TwoDModelEvent
protected void fireModelEvent(int eventID,
int startColumn,
int columnCount,
int startRow,
int rowCount)
eventID - ID of event to firestartColumn - Starting column of items that this event applies to.columnCount - Number of columns that this event applies tostartRow - Starting row that this evetn applies torowCount - Number of rows that this event applies tojava.lang.IllegalArgumentException - thrown if an unknown event id or
nonsensical arguments used.
TwoDModelEvent
|
Oracle JEWT 4.2.33 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||