UniVista.support.screens
Class VariableScreenObject

java.lang.Object
  |
  +--UniVista.support.screens.ScreenObject
        |
        +--UniVista.support.screens.VariableScreenObject
All Implemented Interfaces:
java.lang.Cloneable, PropertyEditorUI, java.io.Serializable

public class VariableScreenObject
extends ScreenObject
implements java.lang.Cloneable, java.io.Serializable

holds a variable and responds to the various ScreenObject calls. Note that anytime this object is loaded from a serialized copy that the Variable fields are no longer valid. Objects such as Studies and Runs that use this need to go through and assocaite the variable names with the appropriate variables. This is because the Variables contained by this object are essentially object references...the UI is not meant to contain the actual objects.

See Also:
Serialized Form

Field Summary
protected  javax.swing.JComponent displayComponent
           
 
Fields inherited from class UniVista.support.screens.ScreenObject
boundsRect, isDesigning, isPropertyEditorUI, isReadOnly, myDragger, propertyFrame
 
Constructor Summary
VariableScreenObject()
          construct a new VariableScreenObject
 
Method Summary
 void accept()
          accept changes in the UI into the variable
 void acceptPEUI()
          Accept any data changed within the customizer.
 java.lang.Object clone()
          clone a variable screen UI.
 void destroyUI()
          destroy the user interface
 void duplicate(VariableScreenObject toDup)
          duplicate the values of another VariableScreenObject.
 java.awt.Rectangle getPreferredBounds()
          Suggest a desired bounds.
 javax.swing.JComponent getUI()
          return the user interface component
 Variable getVariable()
          get the variable the object is associated with
 java.lang.String getVariableName()
          get the variable name the object is associated with
 VariableUI getVarUI()
           
static void main(java.lang.String[] a)
           
 void removePEUI()
          If the system demands the shutdown of the customizer, simply call this method to delegate the message.
 void revert()
          reject any changes in the UI and reset
 void setDesignMode(boolean id)
          move object into design mode
 void setReadOnly(boolean ir)
          move the object into read only mode
 void setupPEUI()
          Create the parentless customizer upon request.
 javax.swing.JComponent setupUI()
          setup the user interface element and return it
 void setVariable(Variable v)
          Set the variable the object is associated with.
 
Methods inherited from class UniVista.support.screens.ScreenObject
addActionListener, duplicate, finalize, fireActionEvent, getBounds, getDesignMode, getReadOnly, implementsPropertyEditorUI, insertPEUI, rejectPEUI, setBounds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayComponent

protected transient javax.swing.JComponent displayComponent
Constructor Detail

VariableScreenObject

public VariableScreenObject()
construct a new VariableScreenObject
Method Detail

accept

public void accept()
accept changes in the UI into the variable
Overrides:
accept in class ScreenObject

clone

public java.lang.Object clone()
clone a variable screen UI. Note that Variable the object is associated with is not cloned along with the object...this clone is for the UI only.
Overrides:
clone in class ScreenObject

destroyUI

public void destroyUI()
destroy the user interface
Overrides:
destroyUI in class ScreenObject

duplicate

public void duplicate(VariableScreenObject toDup)
duplicate the values of another VariableScreenObject. Note that the Variable the object is associated with is not cloned.

getPreferredBounds

public java.awt.Rectangle getPreferredBounds()
Suggest a desired bounds.
Overrides:
getPreferredBounds in class ScreenObject

getUI

public javax.swing.JComponent getUI()
return the user interface component
Overrides:
getUI in class ScreenObject

getVariable

public Variable getVariable()
get the variable the object is associated with

getVariableName

public java.lang.String getVariableName()
get the variable name the object is associated with

revert

public void revert()
reject any changes in the UI and reset
Overrides:
revert in class ScreenObject

setDesignMode

public void setDesignMode(boolean id)
move object into design mode
Overrides:
setDesignMode in class ScreenObject

setReadOnly

public void setReadOnly(boolean ir)
move the object into read only mode
Overrides:
setReadOnly in class ScreenObject

setupUI

public javax.swing.JComponent setupUI()
setup the user interface element and return it
Overrides:
setupUI in class ScreenObject

setVariable

public void setVariable(Variable v)
Set the variable the object is associated with.

setupPEUI

public void setupPEUI()
Create the parentless customizer upon request.
Overrides:
setupPEUI in class ScreenObject
See Also:
UniVista.support.PropertyEditorUI

removePEUI

public void removePEUI()
If the system demands the shutdown of the customizer, simply call this method to delegate the message.
Overrides:
removePEUI in class ScreenObject

acceptPEUI

public void acceptPEUI()
Accept any data changed within the customizer.
Overrides:
acceptPEUI in class ScreenObject

main

public static void main(java.lang.String[] a)

getVarUI

public VariableUI getVarUI()