|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jeppers.grid.AbstractSelectionModel
net.sf.jeppers.grid.DefaultSelectionModel
Default implementation of SelectionModel
.
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSelectionModel()
Method Detail |
public boolean isSelected(int row, int column)
SelectionModel
isSelected
in interface SelectionModel
public void setAnchor(int row, int column)
SelectionModel
setAnchor
in interface SelectionModel
public void setLead(int row, int column)
SelectionModel
setLead
in interface SelectionModel
public void clearSelection()
SelectionModel
clearSelection
in interface SelectionModel
public int getAnchorRow()
SelectionModel
getAnchorRow
in interface SelectionModel
public int getAnchorColumn()
SelectionModel
getAnchorColumn
in interface SelectionModel
public int getLeadRow()
SelectionModel
getLeadRow
in interface SelectionModel
public int getLeadColumn()
SelectionModel
getLeadColumn
in interface SelectionModel
public int getFirstSelectedColumn()
SelectionModel
getFirstSelectedColumn
in interface SelectionModel
public int getLastSelectedColumn()
SelectionModel
getLastSelectedColumn
in interface SelectionModel
public int getFirstSelectedRow()
SelectionModel
getFirstSelectedRow
in interface SelectionModel
public int getLastSelectedRow()
SelectionModel
getLastSelectedRow
in interface SelectionModel
public void setSelectionRange(int topRow, int leftColumn, int bottomRow, int rightColumn)
SelectionModel
setSelectionRange
in interface SelectionModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |