|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.TriStateCheckBox.TriStateCheckBoxModel
public static class TriStateCheckBox.TriStateCheckBoxModel
The TriStateCheckBox model
Field Summary | |
---|---|
protected boolean |
cycleEnabled
Whether the checkBox cycles through all three values |
protected int |
selectedValue
Current value of the checkBox |
Constructor Summary | |
---|---|
TriStateCheckBox.TriStateCheckBoxModel()
|
Method Summary | |
---|---|
int |
getSelectedValue()
Returns the current value of the checkBox. |
boolean |
isCycleEnabled()
Returns whether the checkbox cycles through all three values. |
void |
setCycleEnabled(boolean cycle)
Sets whether the checkBox should cycle through all three values. |
void |
setSelected(boolean b)
Increments the selected value of the checkBox. |
void |
setSelectedValue(int value)
Sets the current value of the checkBox. |
Field Detail |
---|
protected int selectedValue
protected boolean cycleEnabled
Constructor Detail |
---|
public TriStateCheckBox.TriStateCheckBoxModel()
Method Detail |
---|
public void setSelected(boolean b)
setSelected
in interface javax.swing.ButtonModel
setSelected
in class javax.swing.JToggleButton.ToggleButtonModel
b
- is not used due to overriding of methodpublic void setSelectedValue(int value)
value
- The new value of the checkBoxpublic int getSelectedValue()
public void setCycleEnabled(boolean cycle)
b
- if true, the checkBox cycles,
or else the checkBox switches between ON and OFF once those values
have been reached.public boolean isCycleEnabled()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |