| com.jidesoft.swing.SplitButtonModel
All known Subclasses: com.jidesoft.swing.DefaultSplitButtonModel,
SplitButtonModel | public interface SplitButtonModel extends ButtonModel(Code) | | SplitButtonModel is for JideSplitButton. Because SplitButton has two parts - button part and dropdown menu part.
setSelected() and isSelected() is used by dropdown menu part. However in order to support togglable button,
we have to make the button part selected or not selected. That's why we create SplitButtonModel and added two
methods for the selection of button part.
|
isButtonEnabled | boolean isButtonEnabled()(Code) | | Indicates if the button is enabled.
true if the button is enabled. |
isButtonRollover | boolean isButtonRollover()(Code) | | Indicates if the button part of the JideSplitButton is rollover.
true if the button is rollover |
isButtonSelected | boolean isButtonSelected()(Code) | | Indicates if the button has been selected. Only needed for
certain types of buttons - such as radio buttons and check boxes.
true if the button is selected |
setButtonEnabled | void setButtonEnabled(boolean b)(Code) | | Enables or disables the button.
Parameters: b - true enables the button,false disables the button. |
setButtonRollover | void setButtonRollover(boolean b)(Code) | | Sets the button part of the JideSplitButton as rollover.
Parameters: b - true set the button as rollover,false set the button as not rollover |
setButtonSelected | void setButtonSelected(boolean b)(Code) | | Selects or deselects the button.
Parameters: b - true selects the button,false deselects the button. |
|
|