Package hec.ui
Class TristateCheckBoxRenderer
java.lang.Object
hec.ui.TristateDecorator
hec.ui.TristateCheckBoxRenderer
- All Implemented Interfaces:
ItemSelectable
,ButtonModel
,TableCellRenderer
The Class TristateCheckBoxRenderer.
* Author: Shannon Larson
JTable cell renderer for the TristateCheckBox UI object. Uses the TristateCheckBoxData
object to get information on the TristateCheckBox. If the selected JTable rows are NOT
row or column headers, the check box will behave like a regular check box (i.e. only two states
- selected, not selected)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new tristate check box renderer.Instantiates a new tristate check box renderer. -
Method Summary
Modifier and TypeMethodDescriptiongetTableCellRendererComponent
(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Methods inherited from class hec.ui.TristateDecorator
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, getSelectedObjects, getState, isArmed, isEnabled, isPressed, isRollover, isSelected, nextState, nextState, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelected, setState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.ButtonModel
getGroup
-
Field Details
-
_component
the component that gets rendered.
-
-
Constructor Details
-
TristateCheckBoxRenderer
public TristateCheckBoxRenderer()Instantiates a new tristate check box renderer. -
TristateCheckBoxRenderer
Instantiates a new tristate check box renderer.- Parameters:
box
- the box
-
-
Method Details
-
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) - Specified by:
getTableCellRendererComponent
in interfaceTableCellRenderer
-