|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.event.CompositeTableSelectionEvent
A CompositeTableSelectionEvent is fired when a cell, column
or row selection in the CompositeTable has occurred.
The following selection types are defined in interface
CompositeTableSelectionEvent:
Type NOTHING_SELECTED indicates that a deselection has occurred
and no more table elements are selected. It is a masked type that is
always used in conjunction with one of the types containing the postfix
DESELECTED in its name. Thus, when a call to getType()
returns value ROW_DESELECTED | NOTHING_SELECTED, you
will know that a row has been deselected and now no more elements are selected.
CompositeTableSelectionListener| Field Summary | |
static int |
CELL_DESELECTED
A cell was deselected. |
static int |
CELL_SELECTED
A cell was selected. |
static int |
COLUMN_DESELECTED
A column was deselected. |
static int |
COLUMN_SELECTED
A column was selected. |
static int |
NOTHING_SELECTED
Indicating that nothing is selected. |
static int |
ROW_DESELECTED
A row was deselected. |
static int |
ROW_SELECTED
A column was selected. |
| Constructor Summary | |
CompositeTableSelectionEvent(int type)
Constructor specifying the type of selection that occurred. |
|
CompositeTableSelectionEvent(int colOrRow,
int type)
Constructor specifying the type of selection that occurred and the column or row where it occurred. |
|
CompositeTableSelectionEvent(int column,
int row,
int type)
Constructor specifying the type of selection that occurred and the column or row where it occurred. |
|
| Method Summary | |
int |
getColumn()
Returns the column of this selection event. |
int |
getRow()
Returns the row of this selection event. |
int |
getType()
Returns the type of the selection. |
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 NOTHING_SELECTED
public static final int COLUMN_SELECTED
public static final int COLUMN_DESELECTED
public static final int ROW_SELECTED
public static final int ROW_DESELECTED
public static final int CELL_SELECTED
public static final int CELL_DESELECTED
| Constructor Detail |
public CompositeTableSelectionEvent(int type)
type - the selection type.
public CompositeTableSelectionEvent(int colOrRow,
int type)
colOrRow - the column or row where the selection occurred.type - the selection type.
public CompositeTableSelectionEvent(int column,
int row,
int type)
column - the column of the cell where the selection occurred.row - the row of the cell where the selection occurred.type - the selection type.| Method Detail |
public int getType()
public int getColumn()
public int getRow()
public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||