|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.DefaultButtonModel
javax.swing.JToggleButton.ToggleButtonModel
com.citra.component.TristateButtonModel
public class TristateButtonModel
The model of a TristateCheckBox.
Field Summary | |
---|---|
static int |
CHECKED
the checked state |
static int |
PARTIALLY_CHECKED
the partial-selected state |
protected int |
state
the current state of the model |
static int |
UNCHECKED
the unchecked state |
Fields inherited from class javax.swing.DefaultButtonModel |
---|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
Constructor Summary | |
---|---|
TristateButtonModel()
Creates a TristateButtonModel. |
Method Summary | |
---|---|
int |
getState()
Returns the state of the model. |
void |
setState(int state)
Assigns the state of the model. |
Methods inherited from class javax.swing.JToggleButton.ToggleButtonModel |
---|
isSelected, setPressed, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNCHECKED
public static final int CHECKED
public static final int PARTIALLY_CHECKED
protected int state
Constructor Detail |
---|
public TristateButtonModel()
Method Detail |
---|
public int getState()
public void setState(int state)
state
- the state to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |