|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.event.CompositeTableModelEvent
This event is fired on all registered
CompositeTableModelListener's whenever a change in the table
model occurs. For example, an event of this type is fired when columns or
rows are added or removed.
| Field Summary | |
static int |
CELL_ADDED
the different types of this event |
static int |
CELL_CHANGED
the different types of this event |
static int |
CELL_REMOVED
the different types of this event |
static int |
CLEARED
the different types of this event |
static int |
COLUMN_ADDED
the different types of this event |
static int |
COLUMN_COUNT_CHANGED
the different types of this event |
static int |
COLUMN_REMOVED
the different types of this event |
static int |
RESIZING
the different types of this event |
static int |
ROW_ADDED
the different types of this event |
static int |
ROW_COUNT_CHANGED
the different types of this event |
static int |
ROW_REMOVED
the different types of this event |
| Constructor Summary | |
CompositeTableModelEvent(int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type. |
|
CompositeTableModelEvent(int index,
int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the index where the change in the model occurred. |
|
CompositeTableModelEvent(int column,
int row,
int type,
Composite composite,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the column and row and composite on which the change in the model occurred. |
|
CompositeTableModelEvent(int column,
int row,
int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the column and row where the change in the model occurred. |
|
CompositeTableModelEvent(int columnStart,
int rowStart,
int columnStop,
int rowStop,
int type,
Composite composite,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the area where the change in the model occurred. |
|
CompositeTableModelEvent(int columnStart,
int rowStart,
int columnStop,
int rowStop,
int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Constructor specifying the event type and the area where the change in the model occurred. |
|
| Method Summary | |
Composite |
getComposite()
Returns the composite that has been passed to the constructor of this event instance |
int |
getFirstColumn()
Returns the (first) column of this event. |
int |
getFirstRow()
Returns the (first) row of this event. |
int |
getLastColumn()
Returns the (last) column of this event. |
int |
getLastRow()
Returns the (last) row of this event. |
com.tensegrity.composite.defaultimpl.table.CompositeTableModel |
getModel()
Returns the affected CompositeTableModel instance. |
int |
getType()
Returns the type of this event. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int RESIZING
public static final int COLUMN_COUNT_CHANGED
public static final int ROW_COUNT_CHANGED
public static final int COLUMN_ADDED
public static final int COLUMN_REMOVED
public static final int ROW_ADDED
public static final int ROW_REMOVED
public static final int CELL_ADDED
public static final int CELL_REMOVED
public static final int CELL_CHANGED
public static final int CLEARED
| Constructor Detail |
public CompositeTableModelEvent(int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
type - the type of this event. Valid values aremodel - The source model of this event
RESIZING, COLUMN_ADDED,
COLUMN_REMOVED, ROW_ADDED or
ROW_REMOVED.
public CompositeTableModelEvent(int index,
int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
Index is the number of the row when type
is one of the 2 row types, or the column.
index - the column / row where the change occurred.type - the type of event.model - The source model of this event
public CompositeTableModelEvent(int column,
int row,
int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
column - the column of the change.row - the row of the changetype - the type of event.model - The source model of this event
public CompositeTableModelEvent(int column,
int row,
int type,
Composite composite,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
column - the column of the change.row - the row of the changetype - the type of event.composite - the affected Composite.model - The source model of this event
public CompositeTableModelEvent(int columnStart,
int rowStart,
int columnStop,
int rowStop,
int type,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
columnStart - the start column.rowStart - the start row.columnStop - the stop column.rowStop - the stop row.type - the type of the event.model - The source model of this event
public CompositeTableModelEvent(int columnStart,
int rowStart,
int columnStop,
int rowStop,
int type,
Composite composite,
com.tensegrity.composite.defaultimpl.table.CompositeTableModel model)
columnStart - the start column.rowStart - the start row.columnStop - the stop column.rowStop - the stop row.type - the type of the event.composite - the composite for composite add and remove eventsmodel - The source model of this event| Method Detail |
public int getFirstColumn()
public int getFirstRow()
public int getLastColumn()
public int getLastRow()
public int getType()
public java.lang.String toString()
public Composite getComposite()
public com.tensegrity.composite.defaultimpl.table.CompositeTableModel getModel()
CompositeTableModel instance.
CompositeTableModel instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||