edu.princeton.swing
Interface TristateButtonModel
- All Superinterfaces:
- ButtonModel, ItemSelectable
- All Known Implementing Classes:
- DefaultTristateButtonModel
- public interface TristateButtonModel
- extends ButtonModel
TristateButtonModel extends ButtonModel to provide a third state (for components which can
render it).
|
Method Summary |
boolean |
isTristate()
Returns true if the button is in tristate. |
void |
setTristate(boolean tristate)
Sets wheter or not the button is in tristate. |
| Methods inherited from interface javax.swing.ButtonModel |
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelected |
isTristate
public boolean isTristate()
- Returns true if the button is in tristate. If this returns true, isSelected() should also
return true.
- Returns:
- True iff the button is in tristate.
setTristate
public void setTristate(boolean tristate)
- Sets wheter or not the button is in tristate. If true is passed, setSelected(true)
would be called first.
- Parameters:
tristate - Wheter or not the button should be in tristate.