|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jeppers.grid.AbstractSelectionModel | +--net.sf.jeppers.grid.DefaultSelectionModel
Default implementation of SelectionModel
.
Field Summary |
Fields inherited from class net.sf.jeppers.grid.AbstractSelectionModel |
isAdjusting, listenerList |
Constructor Summary | |
DefaultSelectionModel()
|
Method Summary | |
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 |
isSelected(int row,
int column)
Returns true if the specified cell is selected |
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 |
Methods inherited from class net.sf.jeppers.grid.AbstractSelectionModel |
addSelectionModelListener, fireSelectionChanged, fireSelectionChanged, getListeners, getValueIsAdjusting, removeSelectionModelListener, setValueIsAdjusting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSelectionModel()
Method Detail |
public boolean isSelected(int row, int column)
SelectionModel
public void setAnchor(int row, int column)
SelectionModel
public void setLead(int row, int column)
SelectionModel
public void clearSelection()
SelectionModel
public int getAnchorRow()
SelectionModel
public int getAnchorColumn()
SelectionModel
public int getLeadRow()
SelectionModel
public int getLeadColumn()
SelectionModel
public int getFirstSelectedColumn()
SelectionModel
public int getLastSelectedColumn()
SelectionModel
public int getFirstSelectedRow()
SelectionModel
public int getLastSelectedRow()
SelectionModel
public void setSelectionRange(int topRow, int leftColumn, int bottomRow, int rightColumn)
SelectionModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |