|
JIDE 2.9.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TableSelectionModel
This is a selection model that can represents non-contiguous cell selection in JideTable when setNonConfiguous is set to true.
| Method Summary | |
|---|---|
void |
addSelection(int row,
int column)
Adds the cell specified by row and column to the selection. |
void |
addTableSelectionListener(TableSelectionListener l)
Add a listener to the list that's notified each time a change to the selection occurs. |
void |
clearSelection()
Clears all the selections. |
void |
columnAdded(int columnIndex)
Notifies the selection model that a column is added to TableColumnModel. |
void |
columnMoved(int fromColumnIndex,
int toColumnIndex)
Notifies the selection model that a column is added to TableColumnModel. |
void |
columnRemoved(int columnIndex)
Notifies the selection model that a column is removed from TableColumnModel. |
int |
getAnchorColumnIndex()
Gets the anchor column index. |
int |
getAnchorRowIndex()
Gets the anchor row index. |
int |
getLeadColumnIndex()
Gets the lead column index. |
int |
getLeadRowIndex()
Gets the lead row index. |
int |
getMaxSelectedColumnIndex()
Returns the last selected column index or -1 if the selection is empty. |
int |
getMaxSelectedRowIndex()
Returns the last selected row index or -1 if the selection is empty. |
int |
getMinSelectedColumnIndex()
Returns the first selected column index or -1 if the selection is empty. |
int |
getMinSelectedRowIndex()
Returns the first selected row index or -1 if the selection is empty. |
int |
getSelectedColumnCount()
Returns the number of selected columns. |
int[] |
getSelectedColumns()
Returns an array of indices of all selected columns. |
int |
getSelectedRowCount()
Returns the number of selected rows. |
int[] |
getSelectedRows()
Returns an array of indices of all selected rows. |
boolean |
isColumnSelected(int columnIndex)
Checks if the column at column index has any selected cells. |
boolean |
isRowSelected(int rowIndex)
Checks if the row at row index has any selected cells. |
boolean |
isSelected(int row,
int column)
Checks if the specified cell is selected. |
boolean |
isSelectionEmpty()
Checks if there is any selection in the selection model. |
boolean |
isValueAdjusting()
Checks if the value is adjusting. |
void |
moveLeadSelection(int row,
int column)
Sets the lead selection at the cell specified by row and column. |
void |
removeSelection(int row,
int column)
Removes the cell specified by row and column from the selection. |
void |
removeTableSelectionListener(TableSelectionListener l)
Remove a listener from the list that's notified each time a change to the selection occurs. |
void |
selectAll(int rowCount,
int columnCount)
Selects all the cells. |
void |
setAnchorSelection(int row,
int column)
Sets the anchor selection at the cell specified by row and column. |
void |
setColumns(int count)
Set the number of columns. |
void |
setLeadSelection(int row,
int column)
Sets the lead selection at the cell specified by row and column. |
void |
setSelection(int row,
int column)
Adds the cell specified by row and column to the selection. |
void |
setSelectionInterval(int row1,
int row2,
int column)
Adds the cells of the specified column between row1 and row2 to the selection. |
void |
setValueAdjusting(boolean valueAdjusting)
Sets the value adjusting flag. |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface javax.swing.event.TableModelListener |
|---|
tableChanged |
| Method Detail |
|---|
void addSelection(int row,
int column)
void removeSelection(int row,
int column)
void setSelection(int row,
int column)
void setSelectionInterval(int row1,
int row2,
int column)
void setAnchorSelection(int row,
int column)
void setLeadSelection(int row,
int column)
row - the new lead selection row indexcolumn - the new lead selection column index
void moveLeadSelection(int row,
int column)
row - the new lead selection row indexcolumn - the new lead selection column indexvoid clearSelection()
boolean isSelected(int row,
int column)
int getAnchorRowIndex()
int getAnchorColumnIndex()
int getLeadRowIndex()
int getLeadColumnIndex()
void addTableSelectionListener(TableSelectionListener l)
void removeTableSelectionListener(TableSelectionListener l)
void selectAll(int rowCount,
int columnCount)
int[] getSelectedColumns()
int getSelectedColumnCount()
int[] getSelectedRows()
int getSelectedRowCount()
boolean isRowSelected(int rowIndex)
rowIndex -
boolean isColumnSelected(int columnIndex)
columnIndex -
int getMinSelectedRowIndex()
int getMaxSelectedRowIndex()
int getMinSelectedColumnIndex()
int getMaxSelectedColumnIndex()
void setColumns(int count)
count - the number of columnsboolean isValueAdjusting()
void setValueAdjusting(boolean valueAdjusting)
valueAdjusting - true or false.boolean isSelectionEmpty()
void columnAdded(int columnIndex)
columnIndex - the added column index.void columnRemoved(int columnIndex)
columnIndex - the removed column index.
void columnMoved(int fromColumnIndex,
int toColumnIndex)
fromColumnIndex - the column index which is moved.toColumnIndex - the column index where the column is moved.
|
JIDE 2.9.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||