JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCListTable.ListSelection

java.lang.Object
  |
  +--com.klg.jclass.table.JCSelection
        |
        +--com.klg.jclass.table.JCListTable.ListSelection
All Implemented Interfaces:
Moveable, SelectionModel, Serializable
Enclosing class:
JCListTable

protected class JCListTable.ListSelection
extends JCSelection

The JCListSelection class supports row and column level selection.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.table.JCSelection
last_selected_column, last_selected_row, policy, selected_cells, table
 
Fields inherited from interface com.klg.jclass.table.SelectionModel
ADD, DESELECT, END, EXTEND, SELECT, SELECT_MULTIRANGE, SELECT_NONE, SELECT_RANGE, SELECT_SINGLE
 
Constructor Summary
JCListTable.ListSelection(com.klg.jclass.table.JCTable table)
           
 
Method Summary
 boolean addSelection(com.klg.jclass.table.JCCellRange cr)
          Adds a JCCellRange to the selection.
 boolean extendSelection(int row, int column)
          Extends the current selection to the given row and column.
 boolean select(int state, int row, int column)
          Adds, extends, deselects, or ends a selection based on a row or column.
 boolean setSelection(com.klg.jclass.table.JCCellRange cr)
          Sets the selection to a JCCellRange.
 
Methods inherited from class com.klg.jclass.table.JCSelection
addColumnSelection, addRowSelection, addSelection, cleanup, clearSelection, clearSelection, clearWithNoNotification, getSelectedCells, getSelectionPolicy, getTable, isLabel, isSelected, moveColumns, moveRows, remapColumns, remapRows, selectAll, setColumnSelection, setRowSelection, setSelection, setSelection, setSelectionPolicy, setTable, shiftColumn, shiftRow, swapColumns, swapRows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCListTable.ListSelection

public JCListTable.ListSelection(com.klg.jclass.table.JCTable table)
Method Detail

addSelection

public boolean addSelection(com.klg.jclass.table.JCCellRange cr)
Adds a JCCellRange to the selection.

Specified by:
addSelection in interface SelectionModel
Overrides:
addSelection in class JCSelection
Parameters:
cr -
Returns:
true if the selection is accepted

extendSelection

public boolean extendSelection(int row,
                               int column)
Extends the current selection to the given row and column.

Specified by:
extendSelection in interface SelectionModel
Overrides:
extendSelection in class JCSelection
Parameters:
row -
column -
Returns:
true if the selection is accepted

setSelection

public boolean setSelection(com.klg.jclass.table.JCCellRange cr)
Sets the selection to a JCCellRange.

Specified by:
setSelection in interface SelectionModel
Overrides:
setSelection in class JCSelection
Parameters:
cr -
Returns:
true if the selection is accepted

select

public boolean select(int state,
                      int row,
                      int column)
Adds, extends, deselects, or ends a selection based on a row or column. This method is called by the mouse and key process handler and should not be used for programmatic manipulation of selected regions.

Specified by:
select in interface SelectionModel
Overrides:
select in class JCSelection
Parameters:
column -
row -
state -
Returns:
true if the model supports the selection

Copyright © 2004 Quest Software Inc..
All rights reserved.