Package hec.ui
Class TristateCheckBoxData
java.lang.Object
hec.ui.TristateCheckBoxData
Author Shannon Larson
The Class TristateCheckBoxData to hold the State and Label text for a TristateCheckBox.
-
Constructor Summary
ConstructorsConstructorDescriptionTristateCheckBoxData
(String label, TristateCheckBox.State state) Instantiates a new tristate check box data. -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Gets the text for the checkbox.getState()
Gets the state of the check box.void
Sets the label.void
setState
(TristateCheckBox.State state) Sets the state.
-
Constructor Details
-
TristateCheckBoxData
Instantiates a new tristate check box data.- Parameters:
label
- the text displayed for the check boxstate
- The check state of the check box. Legal values are: TristateCheckBox.SELECTED, TristateCheckBox.SEMI_SELECTED, and TristateCheckBox.NOT_SELECTED
-
-
Method Details
-
getLabel
Gets the text for the checkbox.- Returns:
- the label
-
setLabel
Sets the label.- Parameters:
label
- the new label
-
getState
Gets the state of the check box. Legal values are: TristateCheckBox.SELECTED, TristateCheckBox.SEMI_SELECTED, and TristateCheckBox.NOT_SELECTED- Returns:
- the state
-
setState
Sets the state. Legal values are: TristateCheckBox.SELECTED, TristateCheckBox.SEMI_SELECTED, and TristateCheckBox.NOT_SELECTED- Parameters:
state
- the new state
-