public interface ItsNatButtonToggle extends ItsNatButton
By default this component type uses a javax.swing.JToggleButton.ToggleButtonModel
button model.
Modifier and Type | Method and Description |
---|---|
javax.swing.JToggleButton.ToggleButtonModel |
getToggleButtonModel()
Returns the current data model of this component.
|
boolean |
isSelected()
Informs whether the button is selected.
|
void |
setSelected(boolean b)
Sets the selection button state.
|
void |
setToggleButtonModel(javax.swing.JToggleButton.ToggleButtonModel dataModel)
Changes the data model of this component.
|
createDefaultButtonModel, getButtonModel, getItsNatButtonUI, isEnabled, setButtonModel, setEnabled
getElement, getItsNatElementComponentUI
addEventListener, addEventListener, addEventListener, addEventListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, disableEventListener, disableEventListener, dispose, enableEventListener, enableEventListener, getArtifact, getArtifact, getItsNatComponentManager, getItsNatComponentUI, getItsNatDocument, getNode, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, isDisposed, registerArtifact, removeArtifact, removeEventListener, removeEventListener, removeEventListener, removeEventListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setEventListenerParams, setEventListenerParams, setNode
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
javax.swing.JToggleButton.ToggleButtonModel getToggleButtonModel()
setToggleButtonModel(javax.swing.JToggleButton.ToggleButtonModel)
void setToggleButtonModel(javax.swing.JToggleButton.ToggleButtonModel dataModel)
Current data model is disconnected from this component, and the new data model is bound to this component, every change is tracked and updates the user interfaces accordingly.
If the specified data model is the same instance as the current data model, then is reset, component listener is removed and added again. Use this technique if you want to add a data model listener to be executed before the default component listener.
dataModel
- the new data model.getToggleButtonModel()
boolean isSelected()
This method calls ButtonModel.isSelected()
.
void setSelected(boolean b)
This method calls ButtonModel.setSelected(boolean)
.
b
- true if this button is going to be selected.Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.