|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SelectionModel
stores selection information for
a grid of cells.
Method Summary | |
void |
addSelectionModelListener(SelectionModelListener listener)
Add listener to model |
void |
clearSelection()
Clear selection |
int |
getAnchorColumn()
Returns the leftmost coordinate of the anchor |
int |
getAnchorRow()
Returns the top coordinate of the anchor |
int |
getFirstSelectedColumn()
Retrieves the index of the first column where at least one cell is selected |
int |
getFirstSelectedRow()
Retrieves the index of the first row where at least one cell is selected |
int |
getLastSelectedColumn()
Retrieves the index of the last column where at least one cell is selected |
int |
getLastSelectedRow()
Retrieves the index of the last row where at least one cell is selected |
int |
getLeadColumn()
Returns the rightmost coordinate of the lead |
int |
getLeadRow()
Returns the bottom coordinate of the lead |
boolean |
getValueIsAdjusting()
Returns true if the value is undergoing a series of changes. |
boolean |
isSelected(int row,
int column)
Returns true if the specified cell is selected |
void |
removeSelectionModelListener(SelectionModelListener listener)
Remove listener from model |
void |
setAnchor(int row,
int column)
Set the selection anchor |
void |
setLead(int row,
int column)
Set the selection lead |
void |
setSelectionRange(int topRow,
int leftColumn,
int bottomRow,
int rightColumn)
Set the selection to the specified range |
void |
setValueIsAdjusting(boolean isAdjusting)
This property is true if upcoming changes to the value of the model should be considered a single event. |
Method Detail |
public void addSelectionModelListener(SelectionModelListener listener)
public void removeSelectionModelListener(SelectionModelListener listener)
public boolean isSelected(int row, int column)
public void setAnchor(int row, int column)
public void setLead(int row, int column)
public void clearSelection()
public int getAnchorRow()
public int getAnchorColumn()
public int getLeadRow()
public int getLeadColumn()
public int getFirstSelectedColumn()
public int getLastSelectedColumn()
public int getFirstSelectedRow()
public int getLastSelectedRow()
public boolean getValueIsAdjusting()
public void setValueIsAdjusting(boolean isAdjusting)
public void setSelectionRange(int topRow, int leftColumn, int bottomRow, int rightColumn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |