|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.jminor.common.ui.control.Control
org.jminor.common.ui.control.AbstractValueLink<Object,Object>
org.jminor.common.ui.control.AbstractBeanValueLink
org.jminor.common.ui.control.ToggleBeanValueLink
public final class ToggleBeanValueLink
Binds a ButtonModel to a boolean based bean property.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
ToggleBeanValueLink(ButtonModel buttonModel,
Object owner,
String propertyName,
EventObserver valueChangeEvent)
Instantiates a new ToggleBeanValueLink. |
|
ToggleBeanValueLink(ButtonModel buttonModel,
Object owner,
String propertyName,
EventObserver valueChangeEvent,
String caption)
Instantiates a new ToggleBeanValueLink. |
|
ToggleBeanValueLink(ButtonModel buttonModel,
Object owner,
String propertyName,
EventObserver valueChangeEvent,
String caption,
LinkType linkType)
Instantiates a new ToggleBeanValueLink. |
|
ToggleBeanValueLink(Object owner,
String propertyName,
EventObserver valueChangeEvent)
Instantiates a new ToggleBeanValueLink. |
|
ToggleBeanValueLink(Object owner,
String propertyName,
EventObserver valueChangeEvent,
String caption)
Instantiates a new ToggleBeanValueLink. |
|
ToggleBeanValueLink(Object owner,
String propertyName,
EventObserver valueChangeEvent,
String caption,
LinkType linkType)
Instantiates a new ToggleBeanValueLink. |
Method Summary | |
---|---|
ButtonModel |
getButtonModel()
|
protected Object |
getUIValue()
|
protected void |
setUIValue(Object value)
Sets the value in the UI |
Methods inherited from class org.jminor.common.ui.control.AbstractBeanValueLink |
---|
getModelValue, getPropertyName, setModelValue |
Methods inherited from class org.jminor.common.ui.control.AbstractValueLink |
---|
actionPerformed, getLinkType, getValueOwner, updateModel, updateUI |
Methods inherited from class org.jminor.common.ui.control.Control |
---|
getDescription, getEnabledState, getIcon, getMnemonic, getName, isEnabled, setDescription, setEnabled, setIcon, setKeyStroke, setMnemonic, setName |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToggleBeanValueLink(Object owner, String propertyName, EventObserver valueChangeEvent)
owner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changespublic ToggleBeanValueLink(Object owner, String propertyName, EventObserver valueChangeEvent, String caption)
owner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changescaption
- the check box caption, if anypublic ToggleBeanValueLink(Object owner, String propertyName, EventObserver valueChangeEvent, String caption, LinkType linkType)
owner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changescaption
- the check box caption, if anylinkType
- the link typepublic ToggleBeanValueLink(ButtonModel buttonModel, Object owner, String propertyName, EventObserver valueChangeEvent)
buttonModel
- the button model to link with the valueowner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changespublic ToggleBeanValueLink(ButtonModel buttonModel, Object owner, String propertyName, EventObserver valueChangeEvent, String caption)
buttonModel
- the button model to link with the valueowner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changescaption
- the check box caption, if anypublic ToggleBeanValueLink(ButtonModel buttonModel, Object owner, String propertyName, EventObserver valueChangeEvent, String caption, LinkType linkType)
buttonModel
- the button model to link with the valueowner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changescaption
- the check box caption, if anylinkType
- the link typeMethod Detail |
---|
public ButtonModel getButtonModel()
protected Object getUIValue()
getUIValue
in class AbstractValueLink<Object,Object>
protected void setUIValue(Object value)
setUIValue
in class AbstractValueLink<Object,Object>
value
- the value to represent in the UI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |