UniVista.beans
Class BooleanVariableDisplay

java.lang.Object
  |
  +--UniVista.beans.VariableDisplay
        |
        +--UniVista.beans.BooleanVariableDisplay
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, VariableUI

public class BooleanVariableDisplay
extends VariableDisplay

See Also:
Serialized Form

Field Summary
protected  javax.swing.JComboBox combo
           
 
Fields inherited from class UniVista.beans.VariableDisplay
changeSupport, label, name, panel
 
Constructor Summary
BooleanVariableDisplay()
           
 
Method Summary
 void accept()
          Change the value inside the BooleanVariable to reflect the UI.
 void destroyUI()
          Deallocate the UI elements.
protected  java.lang.String getBuffer()
          Return the previous state of the value.
 java.awt.Rectangle getPreferredBounds()
          Suggests the bounds for the UI element.
 javax.swing.JComponent getUI()
          Get a reference to the bean's UI component.
 java.lang.Object getValue()
          Obtain a new reference to the value represented by the UI.
 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.
 javax.swing.JComponent setupUI(java.awt.Rectangle bounds)
          construct the UI element for displaying and editing the Short
 void setValue(java.lang.Object value)
          Change the data displayed.
 
Methods inherited from class UniVista.beans.VariableDisplay
addPropertyChangeListener, getBounds, getLabelPosition, getLabelText, getName, getPreferredSize, isLabelVisible, removePropertyChangeListener, setDesignMode, setLabelPosition, setLabelText, setLabelVisible, setName, setReadOnly, setToolTipEnabled, setToolTipText, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

combo

protected transient javax.swing.JComboBox combo
Constructor Detail

BooleanVariableDisplay

public BooleanVariableDisplay()
Method Detail

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

getUI

public javax.swing.JComponent getUI()
Get a reference to the bean's UI component.
Overrides:
getUI in class VariableDisplay

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

accept

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

setValue

public void setValue(java.lang.Object value)
              throws java.lang.Exception
Change the data displayed.
Overrides:
setValue in class VariableDisplay

getValue

public java.lang.Object getValue()
                          throws java.lang.Exception
Obtain a new reference to the value represented by the UI.
Overrides:
getValue in class VariableDisplay