|
Gridarta Editor
|
A JCheckBox that supports three states: deselected, indeterminate, selected. More...
Inheritance diagram for net.sf.gridarta.gui.utils.tristate.TristateCheckBox:
Collaboration diagram for net.sf.gridarta.gui.utils.tristate.TristateCheckBox:Public Member Functions | |
| TristateButtonModel | getTristateModel () |
| Returns the model as a TristateButtonModel. More... | |
| final void | setModel (@NotNull final ButtonModel newModel) |
| TristateCheckBox (@NotNull final String text) | |
| Creates a new instance without icon which is initially {}. More... | |
Protected Member Functions | |
| TristateState | nextState (@NotNull final TristateState state) |
| Returns the next state. More... | |
Private Member Functions | |
| void | iterateState (final int modifiers) |
| Increments the state. More... | |
| TristateCheckBox (@NotNull final String text, @Nullable final Icon icon, @NotNull final ButtonModel buttonModel) | |
| Creates a new instance. More... | |
| TristateCheckBox (@NotNull final String text, @Nullable final Icon icon, @NotNull final TristateState initialState) | |
| Creates a new instance. More... | |
Private Attributes | |
| final ChangeListener | enableListener = e -> setFocusable(getModel().isEnabled()) |
| The ChangeListener on model changes to maintain correct focusability. More... | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
| The serial version UID. More... | |
A JCheckBox that supports three states: deselected, indeterminate, selected.
Definition at line 43 of file TristateCheckBox.java.
| net.sf.gridarta.gui.utils.tristate.TristateCheckBox.TristateCheckBox | ( | @NotNull final String | text | ) |
Creates a new instance without icon which is initially {}.
| text | the text of the check box |
Definition at line 62 of file TristateCheckBox.java.
|
private |
Creates a new instance.
| text | the text of the check box |
| icon | the icon to display |
| initialState | the initial state |
Definition at line 72 of file TristateCheckBox.java.
|
private |
Creates a new instance.
| text | the text of the check box |
| icon | the icon to display |
| buttonModel | the button model to use |
The serial version UID.
Definition at line 82 of file TristateCheckBox.java.
References net.sf.gridarta.gui.utils.tristate.TristateCheckBox.iterateState(), net.sf.gridarta.gui.utils.tristate.TristateCheckBox.serialVersionUID, and net.sf.gridarta.gui.utils.tristate.TristateCheckBox.setModel().
Here is the call graph for this function:| TristateButtonModel net.sf.gridarta.gui.utils.tristate.TristateCheckBox.getTristateModel | ( | ) |
Returns the model as a TristateButtonModel.
Definition at line 171 of file TristateCheckBox.java.
Referenced by net.sf.gridarta.gui.utils.tristate.TristateCheckBox.iterateState().
Here is the caller graph for this function:
|
private |
Increments the state.
| modifiers | the modifiers of this action |
Definition at line 143 of file TristateCheckBox.java.
References net.sf.gridarta.gui.utils.tristate.TristateCheckBox.getTristateModel(), net.sf.gridarta.gui.utils.tristate.TristateButtonModel.getTristateState(), net.sf.gridarta.gui.utils.tristate.TristateCheckBox.nextState(), and net.sf.gridarta.gui.utils.tristate.TristateButtonModel.setTristateState().
Referenced by net.sf.gridarta.gui.utils.tristate.TristateCheckBox.TristateCheckBox().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Returns the next state.
| state | the current state |
Reimplemented in net.sf.gridarta.gui.utils.ToggleTristateCheckBox.
Definition at line 162 of file TristateCheckBox.java.
References net.sf.gridarta.gui.utils.tristate.TristateState.nextTristateState.
Referenced by net.sf.gridarta.gui.utils.tristate.TristateCheckBox.iterateState().
Here is the caller graph for this function:| final void net.sf.gridarta.gui.utils.tristate.TristateCheckBox.setModel | ( | @NotNull final ButtonModel | newModel | ) |
Definition at line 126 of file TristateCheckBox.java.
References net.sf.gridarta.gui.utils.tristate.TristateCheckBox.enableListener.
Referenced by net.sf.gridarta.gui.utils.tristate.TristateCheckBox.TristateCheckBox().
Here is the caller graph for this function:
|
private |
The ChangeListener on model changes to maintain correct focusability.
Definition at line 55 of file TristateCheckBox.java.
Referenced by net.sf.gridarta.gui.utils.tristate.TristateCheckBox.setModel().
|
staticprivate |
The serial version UID.
Definition at line 48 of file TristateCheckBox.java.
Referenced by net.sf.gridarta.gui.utils.tristate.TristateCheckBox.TristateCheckBox().