org.jminor.common.ui.control
Class IntBeanValueLink

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jminor.common.ui.control.Control
          extended by org.jminor.common.ui.control.AbstractValueLink<Object,Object>
              extended by org.jminor.common.ui.control.AbstractBeanValueLink
                  extended by org.jminor.common.ui.control.TextBeanValueLink
                      extended by org.jminor.common.ui.control.IntBeanValueLink
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, DocumentListener

public class IntBeanValueLink
extends TextBeanValueLink

Binds a DoubleField to a int based bean property.

See Also:
Serialized Form

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
IntBeanValueLink(IntField intField, Object owner, String propertyName, EventObserver valueChangeEvent)
          Instantiates a new IntBeanValueLink.
IntBeanValueLink(IntField intField, Object owner, String propertyName, EventObserver valueChangeEvent, LinkType linkType)
          Instantiates a new IntBeanValueLink.
 
Method Summary
protected  Object getUIValue()
          
 
Methods inherited from class org.jminor.common.ui.control.TextBeanValueLink
changedUpdate, getText, getValueAsString, handleSetUIValue, insertUpdate, removeUpdate, setUIValue
 
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

IntBeanValueLink

public IntBeanValueLink(IntField intField,
                        Object owner,
                        String propertyName,
                        EventObserver valueChangeEvent)
Instantiates a new IntBeanValueLink.

Parameters:
intField - the int field to link with the value
owner - the value owner
propertyName - the property name
valueChangeEvent - an EventObserver notified each time the value changes

IntBeanValueLink

public IntBeanValueLink(IntField intField,
                        Object owner,
                        String propertyName,
                        EventObserver valueChangeEvent,
                        LinkType linkType)
Instantiates a new IntBeanValueLink.

Parameters:
intField - the int field to link with the value
owner - the value owner
propertyName - the property name
valueChangeEvent - an EventObserver notified each time the value changes
linkType - the link type
Method Detail

getUIValue

protected final Object getUIValue()

Overrides:
getUIValue in class TextBeanValueLink
Returns:
the value from the UI component