public class SwingTableSelectionHandler extends Object implements TableSelectionHandler
A Swing-specific default implementation of the
TableSelectionHandler interface.
This implementation expects that the component passed in to the
prepareComponent() method is a
javax.swing.JComponent. Depending on the selected or focused
flags the color of this component will be set, and eventually a border will
be drawn.
| Constructor and Description |
|---|
SwingTableSelectionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepareComponent(Object table,
TableTag tableTag,
Object component,
boolean selected,
boolean hasFocus,
int row,
int col)
Prepares the renderer or editor component.
|
public void prepareComponent(Object table, TableTag tableTag, Object component, boolean selected, boolean hasFocus, int row, int col)
prepareComponent in interface TableSelectionHandlertable - the table componenttableTag - the table tagcomponent - the component to be preparedselected - a flag whether this cell is selectedhasFocus - a flag whether this cell has the focusrow - the current row indexcol - the current column indexCopyright © 2016 The JGUIraffe Team. All rights reserved.