org.jminor.common.ui.control
Class DoubleBeanValueLink
java.lang.Object
javax.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.TextBeanValueLink
org.jminor.common.ui.control.DoubleBeanValueLink
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, DocumentListener
public class DoubleBeanValueLink
- extends TextBeanValueLink
Binds a DoubleField to a double based bean property.
- See Also:
- Serialized Form
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 |
Methods inherited from class org.jminor.common.ui.control.Control |
getDescription, getEnabledState, getIcon, getMnemonic, getName, isEnabled, setDescription, setEnabled, setIcon, setKeyStroke, setMnemonic, setName |
DoubleBeanValueLink
public DoubleBeanValueLink(DoubleField doubleField,
Object owner,
String propertyName,
EventObserver valueChangeEvent)
- Instantiates a new DoubleBeanValueLink.
- Parameters:
doubleField
- the double field to link with the valueowner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changes
DoubleBeanValueLink
public DoubleBeanValueLink(DoubleField doubleField,
Object owner,
String propertyName,
EventObserver valueChangeEvent,
LinkType linkType)
- Instantiates a new DoubleBeanValueLink.
- Parameters:
doubleField
- the double field to link with the valueowner
- the value ownerpropertyName
- the property namevalueChangeEvent
- an EventObserver notified each time the value changeslinkType
- the link type
getUIValue
protected final Object getUIValue()
-
- Overrides:
getUIValue
in class TextBeanValueLink
- Returns:
- the value from the UI component