SplitButtonModel
, ItemSelectable
, Serializable
, ButtonModel
JideToggleSplitButton.ToggleSplitButtonModel
public class DefaultSplitButtonModel extends DefaultButtonModel implements SplitButtonModel
Modifier and Type | Field | Description |
---|---|---|
static int |
BUTTON_ENABLED |
Indicates that the button part of the split button is enabled or disabled.
|
static int |
BUTTON_ROLLOVER |
Indicates that the button part of the split button is rollover.
|
static int |
BUTTON_SELECTED |
Indicates that the button part of the split button has been selected.
|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask
Constructor | Description |
---|---|
DefaultSplitButtonModel() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
isButtonEnabled() |
Indicates if the button part of the JideSplitButton has been enabled.
|
boolean |
isButtonRollover() |
Indicates if the button part of the JideSplitButton is rollover.
|
boolean |
isButtonSelected() |
Indicates if the button part of the JideSplitButton has been selected.
|
void |
setButtonEnabled(boolean b) |
Selects or deselects the button part of the JideSplitButton.
|
void |
setButtonRollover(boolean b) |
Sets the button part of the JideSplitButton as rollover.
|
void |
setButtonSelected(boolean b) |
Selects or deselects the button part of the JideSplitButton.
|
void |
setRollover(boolean b) |
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setSelected
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setSelected
getSelectedObjects
public static final int BUTTON_SELECTED
public static final int BUTTON_ENABLED
public static final int BUTTON_ROLLOVER
public void setButtonSelected(boolean b)
setButtonSelected
in interface SplitButtonModel
b
- true selects the button, false deselects the buttonpublic boolean isButtonSelected()
isButtonSelected
in interface SplitButtonModel
public void setButtonEnabled(boolean b)
setButtonEnabled
in interface SplitButtonModel
b
- true selects the button, false deselects the buttonpublic boolean isButtonEnabled()
isButtonEnabled
in interface SplitButtonModel
public void setButtonRollover(boolean b)
setButtonRollover
in interface SplitButtonModel
b
- true set the button as rollover, false set the button as not rolloverpublic boolean isButtonRollover()
isButtonRollover
in interface SplitButtonModel
public void setRollover(boolean b)
setRollover
in interface ButtonModel
setRollover
in class DefaultButtonModel