UniVista.beans
Class SimpleVariableDisplay

java.lang.Object
  |
  +--UniVista.beans.VariableDisplay
        |
        +--UniVista.beans.SimpleVariableDisplay
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, VariableUI
Direct Known Subclasses:
ComplexVariableDisplay, FloatVariableDisplay, LongVariableDisplay, ShortVariableDisplay, StringVariableDisplay

public abstract class SimpleVariableDisplay
extends VariableDisplay

See Also:
Serialized Form

Field Summary
static java.lang.String name
           
protected  javax.swing.JTextField text
           
 
Fields inherited from class UniVista.beans.VariableDisplay
changeSupport, label, panel
 
Constructor Summary
SimpleVariableDisplay()
           
 
Method Summary
 void accept()
          Change the value inside the Variable to reflect the UI.
 void destroyUI()
          Deallocate the UI elements.
protected  java.lang.String getBuffer()
          Return the previous state of the value.
 java.lang.Object getHorizontalTextAlignment()
          Get the UI's alignment of the text.
 java.awt.Rectangle getPreferredBounds()
          Suggests the bounds for the UI element.
 void propertyChange(java.beans.PropertyChangeEvent event)
          This method is activated when a property change occurs.
 void reset()
          Redraw the UI element to reflect the previous value.
 void revert()
          Redraw the UI element to reflect the previous value.
 void setHorizontalTextAlignment(java.lang.Object obj)
          Set the UI's alignment of the text.
 javax.swing.JComponent setupUI(java.awt.Rectangle bounds)
          construct the UI element for displaying and editing the Short
 
Methods inherited from class UniVista.beans.VariableDisplay
addPropertyChangeListener, getBounds, getLabelPosition, getLabelText, getName, getPreferredSize, getUI, getValue, isLabelVisible, removePropertyChangeListener, setDesignMode, setLabelPosition, setLabelText, setLabelVisible, setName, setReadOnly, setToolTipEnabled, setToolTipText, setValue, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public static java.lang.String name

text

protected transient javax.swing.JTextField text
Constructor Detail

SimpleVariableDisplay

public SimpleVariableDisplay()
Method Detail

accept

public void accept()
Change the value inside the Variable to reflect the UI.
See Also:
VariableUI

destroyUI

public void destroyUI()
Deallocate the UI elements.
Overrides:
destroyUI in class VariableDisplay

getBuffer

protected java.lang.String getBuffer()
Return the previous state of the value.

getPreferredBounds

public java.awt.Rectangle getPreferredBounds()
Suggests the bounds for the UI element.
Overrides:
getPreferredBounds in class VariableDisplay
See Also:
VariableUI

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
This method is activated when a property change occurs. This bean must register itself as a listener with another bean for this to work.
Overrides:
propertyChange in class VariableDisplay
Parameters:
event - java.beans.PropertyChangeEvent

reset

public void reset()
Redraw the UI element to reflect the previous value.
See Also:
VariableUI

revert

public void revert()
Redraw the UI element to reflect the previous value.
See Also:
VariableUI

setupUI

public javax.swing.JComponent setupUI(java.awt.Rectangle bounds)
construct the UI element for displaying and editing the Short
See Also:
VariableUI

getHorizontalTextAlignment

public java.lang.Object getHorizontalTextAlignment()
Get the UI's alignment of the text.

setHorizontalTextAlignment

public void setHorizontalTextAlignment(java.lang.Object obj)
Set the UI's alignment of the text.