UniVista.support.screens
Class ScreenObject

java.lang.Object
  |
  +--UniVista.support.screens.ScreenObject
All Implemented Interfaces:
java.lang.Cloneable, PropertyEditorUI, java.io.Serializable
Direct Known Subclasses:
ContainerScreenObject, LinkScreenObject, TextScreenObject, VariableScreenObject

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

holds position information about a displayed object and basic display functions

See Also:
Serialized Form

Field Summary
protected  java.awt.Rectangle boundsRect
           
protected  boolean isDesigning
           
protected  boolean isPropertyEditorUI
           
protected  boolean isReadOnly
           
 MouseDragger myDragger
          we need to keep a reference to the MouseDragger around in order to not have it garbage collected...so we hack around it by holding a temporary reference to any attached MouseDragger for a screen object here
protected  javax.swing.JFrame propertyFrame
           
 
Constructor Summary
ScreenObject()
          create a ScreenObject
 
Method Summary
 void accept()
          called when any changes are to be accepted
 void acceptPEUI()
          accept any changes from the property editor ui
 void addActionListener(java.awt.event.ActionListener a)
           
 java.lang.Object clone()
          clone a ScreenObject
 void destroyUI()
          destroy the UI
 void duplicate(ScreenObject toDup)
          duplicate the values from another screen object
protected  void finalize()
           
 void fireActionEvent(java.awt.event.ActionEvent evt)
           
 java.awt.Rectangle getBounds()
          get the bounds rectangle of the object
 boolean getDesignMode()
          return the design mode of the object
 java.awt.Rectangle getPreferredBounds()
          suggest a desired bounds
 boolean getReadOnly()
          return whether or not the screen object is read only
 javax.swing.JComponent getUI()
          retrieve the display component
 boolean implementsPropertyEditorUI()
          return the boolean used to indicate if this object implements the propertyEditorUI
 void insertPEUI(java.awt.Container cont)
          insert any editing components into the passed container
 void rejectPEUI()
          reject any changes from the property editor UI and revert the display back to the original values
 void removePEUI()
          If the system demands the shutdown of the customizer, simply call this method to delegate the message.
 void revert()
          called when any changes are to be rejected
 void setBounds(java.awt.Rectangle r)
          set the bounds rectangle of the object
 void setDesignMode(boolean designMode)
          indicate to the object if it's in design mode
 void setReadOnly(boolean readOnlyMode)
          indicate to the object if it should be read only
 void setupPEUI()
          Create the parentless customizer upon request.
 javax.swing.JComponent setupUI()
          create the UI using the bounds that were set using setBounds()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boundsRect

protected java.awt.Rectangle boundsRect

isPropertyEditorUI

protected boolean isPropertyEditorUI

isDesigning

protected boolean isDesigning

isReadOnly

protected boolean isReadOnly

propertyFrame

protected transient javax.swing.JFrame propertyFrame

myDragger

public transient MouseDragger myDragger
we need to keep a reference to the MouseDragger around in order to not have it garbage collected...so we hack around it by holding a temporary reference to any attached MouseDragger for a screen object here
Constructor Detail

ScreenObject

public ScreenObject()
create a ScreenObject
Method Detail

accept

public void accept()
called when any changes are to be accepted

clone

public java.lang.Object clone()
clone a ScreenObject
Overrides:
clone in class java.lang.Object

destroyUI

public void destroyUI()
destroy the UI

duplicate

public void duplicate(ScreenObject toDup)
duplicate the values from another screen object

getBounds

public java.awt.Rectangle getBounds()
get the bounds rectangle of the object

getDesignMode

public boolean getDesignMode()
return the design mode of the object

getPreferredBounds

public java.awt.Rectangle getPreferredBounds()
suggest a desired bounds

getReadOnly

public boolean getReadOnly()
return whether or not the screen object is read only

getUI

public javax.swing.JComponent getUI()
retrieve the display component

implementsPropertyEditorUI

public boolean implementsPropertyEditorUI()
return the boolean used to indicate if this object implements the propertyEditorUI

revert

public void revert()
called when any changes are to be rejected

setBounds

public void setBounds(java.awt.Rectangle r)
set the bounds rectangle of the object

setDesignMode

public void setDesignMode(boolean designMode)
indicate to the object if it's in design mode

setReadOnly

public void setReadOnly(boolean readOnlyMode)
indicate to the object if it should be read only

setupUI

public javax.swing.JComponent setupUI()
create the UI using the bounds that were set using setBounds()

setupPEUI

public void setupPEUI()
Create the parentless customizer upon request.
Specified by:
setupPEUI in interface PropertyEditorUI
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.
Specified by:
removePEUI in interface PropertyEditorUI

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

acceptPEUI

public void acceptPEUI()
Description copied from interface: PropertyEditorUI
accept any changes from the property editor ui
Specified by:
acceptPEUI in interface PropertyEditorUI

insertPEUI

public void insertPEUI(java.awt.Container cont)
Description copied from interface: PropertyEditorUI
insert any editing components into the passed container
Specified by:
insertPEUI in interface PropertyEditorUI

rejectPEUI

public void rejectPEUI()
Description copied from interface: PropertyEditorUI
reject any changes from the property editor UI and revert the display back to the original values
Specified by:
rejectPEUI in interface PropertyEditorUI

addActionListener

public void addActionListener(java.awt.event.ActionListener a)

fireActionEvent

public void fireActionEvent(java.awt.event.ActionEvent evt)