|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.DefaultButtonModel javax.swing.JToggleButton.ToggleButtonModel com.alee.extended.checkbox.TristateCheckBoxModel
public class TristateCheckBoxModel
Custom button model for WebTristateCheckBox component.
Field Summary | |
---|---|
protected boolean |
checkMixedOnToggle
Whether partially checked tristate checkbox should be checked or unchecked on toggle. |
static int |
MIXED
Mixed state bit constant used to store into state mask. |
Fields inherited from class javax.swing.DefaultButtonModel |
---|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
Constructor Summary | |
---|---|
TristateCheckBoxModel()
Constructs new model for the specified WebTristateCheckBox. |
Method Summary | |
---|---|
protected CheckState |
getNextState(CheckState checkState)
Returns next check state for check invertion action. |
CheckState |
getState()
|
protected void |
goToNextState()
Applies next check state to this tristate checkbox according to its settings. |
boolean |
isCheckMixedOnToggle()
Returns whether partially checked tristate checkbox should be checked or unchecked on toggle |
boolean |
isMixed()
Returns whether checkbox is in mixed state or not. |
void |
setCheckMixedOnToggle(boolean checkMixedOnToggle)
Sets whether partially checked tristate checkbox should be checked or unchecked on toggle. |
void |
setMixed(boolean mixed)
Sets whether checkbox is in mixed state or not. |
void |
setPressed(boolean pressed)
Sets whether checkbox is pressed or not. |
void |
setSelected(boolean selected)
Sets whether checkbox is in checked state or not. |
void |
setState(CheckState state)
Sets check state. |
Methods inherited from class javax.swing.JToggleButton.ToggleButtonModel |
---|
isSelected |
Methods inherited from class javax.swing.DefaultButtonModel |
---|
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setRollover |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIXED
protected boolean checkMixedOnToggle
Constructor Detail |
---|
public TristateCheckBoxModel()
Method Detail |
---|
public boolean isCheckMixedOnToggle()
public void setCheckMixedOnToggle(boolean checkMixedOnToggle)
checkMixedOnToggle
- whether partially checked tristate checkbox should be checked or unchecked on togglepublic void setState(CheckState state)
state
- new check statepublic CheckState getState()
public void setPressed(boolean pressed)
setPressed
in interface javax.swing.ButtonModel
setPressed
in class javax.swing.JToggleButton.ToggleButtonModel
pressed
- whether checkbox is pressed or notprotected void goToNextState()
public void setSelected(boolean selected)
setSelected
in interface javax.swing.ButtonModel
setSelected
in class javax.swing.JToggleButton.ToggleButtonModel
selected
- whether should set checked state or notpublic boolean isMixed()
public void setMixed(boolean mixed)
mixed
- whether should set mixed check state or notprotected CheckState getNextState(CheckState checkState)
checkState
- current check state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |