Class TableSelectionContext
java.lang.Object
com.bc.ceres.core.ExtensibleObject
com.bc.ceres.swing.selection.AbstractSelectionContext
com.bc.ceres.swing.selection.support.TableSelectionContext
- All Implemented Interfaces:
Extensible,SelectionChangeEmitter,SelectionContext,SelectionSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the current selection.getTable()protected voidvoidsetSelection(Selection selection) Sets the current selection.voidMethods inherited from class com.bc.ceres.swing.selection.AbstractSelectionContext
addSelectionChangeListener, canDeleteSelection, canInsert, canSelectAll, deleteSelection, fireSelectionChange, getSelectionChangeListeners, insert, removeSelectionChangeListener, selectAllMethods inherited from class com.bc.ceres.core.ExtensibleObject
getExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.bc.ceres.core.Extensible
getExtension
-
Constructor Details
-
TableSelectionContext
-
-
Method Details
-
getSelection
Gets the current selection. The default implementation returns the selected row indices of the table. If overridden, make sure alsosetSelection(Selection)andhandleTableSelectionChanged(javax.swing.event.ListSelectionEvent)are appropriately overridden.- Returns:
- The current selection.
- See Also:
-
setSelection
Sets the current selection. The default implementation expects the selected row indices of the table in the given selection. If overridden, make sure alsogetSelection()andhandleTableSelectionChanged(javax.swing.event.ListSelectionEvent)are appropriately overridden.- Parameters:
selection- The current selection.
-
getTable
-
setTable
-
handleTableSelectionChanged
-