|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.NonContiguousSelectionModel
public class NonContiguousSelectionModel
NonContiguousSelectionModel enables non-contiguous cell selection for a JTable.
Constructor Summary | |
---|---|
NonContiguousSelectionModel()
Creates a NonContiguousSelectionModel. |
Method Summary | |
---|---|
void |
columnAdded(TableColumnModelEvent e)
Tells listeners that a column was added to the model. |
void |
columnMarginChanged(ChangeEvent e)
Tells listeners that a column was moved due to a margin change. |
void |
columnMoved(TableColumnModelEvent e)
Tells listeners that a column was repositioned. |
void |
columnRemoved(TableColumnModelEvent e)
Tells listeners that a column was removed from the model. |
void |
columnSelectionChanged(ListSelectionEvent e)
Tells listeners that the selection model of the TableColumnModel changed. |
boolean |
isCellSelected(int row,
int column)
Returns true if the cell at the specified position is selected. |
void |
register(JTable table)
Registers a table to be used with this model. |
void |
unregister(JTable table)
Unregisters a table that was previously registered with this model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonContiguousSelectionModel()
Method Detail |
---|
public void columnAdded(TableColumnModelEvent e)
columnAdded
in interface TableColumnModelListener
public void columnMarginChanged(ChangeEvent e)
columnMarginChanged
in interface TableColumnModelListener
public void columnMoved(TableColumnModelEvent e)
columnMoved
in interface TableColumnModelListener
public void columnRemoved(TableColumnModelEvent e)
columnRemoved
in interface TableColumnModelListener
public void columnSelectionChanged(ListSelectionEvent e)
columnSelectionChanged
in interface TableColumnModelListener
public boolean isCellSelected(int row, int column)
IllegalArgumentException
- if row or column
are not in the valid rangepublic void register(JTable table)
table
- the table to associate to this modelpublic void unregister(JTable table)
table
- the table to unregister
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |