UniVista.support.screens
Class ContainerScreenObject

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

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

this object encapsulates a JPanel which holds other screen objects. Note that there are special methods contianed for returning the VariableScreenObjects and the LinkScreenObjects which are retrieved by functions in the Screen class.

See Also:
Serialized Form

Fields inherited from class UniVista.support.screens.ScreenObject
boundsRect, isDesigning, isPropertyEditorUI, isReadOnly, myDragger, propertyFrame
 
Constructor Summary
ContainerScreenObject()
          allow me to be instantiated
 
Method Summary
 void accept()
          notify any contained objects of accept() event fires
 void addScreenObject(ScreenObject toAdd)
          insert a ScreenObject into the container
 java.lang.Object clone()
          clone a ContainerScreenObject
 void destroyUI()
          destroy the user interface for the container and all contained objects
 void duplicate(ContainerScreenObject theObj)
          duplicate the values from another ContainerScreenObject into this one
 int getBottommostY()
          get the bottommost y coordinate
 LinkScreenObject[] getLinkScreenObjects()
          get any LinkScreenObjects contained within
 java.awt.Rectangle getPreferredBounds()
          Suggest a desired bounds for the container.
 int getRightmostX()
          get the rightmost x coordinate
 ScreenObject[] getScreenObjects()
          retrieve the ScreenObjects this container contains
 javax.swing.JComponent getUI()
          return the UI component
 VariableScreenObject[] getVariableScreenObjects()
          get any VaribleScreenObjects contained within
 void revert()
          notify any contained objects of reject() event fires
 void setDesignMode(boolean mode)
          notify all of the contained objects that we're moving into design mode
 void setReadOnly(boolean mode)
          notify all of the contained objects that we're moving into read only mode
 javax.swing.JComponent setupUI()
          set up the user interface
 
Methods inherited from class UniVista.support.screens.ScreenObject
acceptPEUI, addActionListener, duplicate, finalize, fireActionEvent, getBounds, getDesignMode, getReadOnly, implementsPropertyEditorUI, insertPEUI, rejectPEUI, removePEUI, setBounds, setupPEUI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerScreenObject

public ContainerScreenObject()
allow me to be instantiated
Method Detail

accept

public void accept()
notify any contained objects of accept() event fires
Overrides:
accept in class ScreenObject

addScreenObject

public void addScreenObject(ScreenObject toAdd)
insert a ScreenObject into the container

clone

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

destroyUI

public void destroyUI()
destroy the user interface for the container and all contained objects
Overrides:
destroyUI in class ScreenObject

duplicate

public void duplicate(ContainerScreenObject theObj)
duplicate the values from another ContainerScreenObject into this one

getBottommostY

public int getBottommostY()
get the bottommost y coordinate

getLinkScreenObjects

public LinkScreenObject[] getLinkScreenObjects()
get any LinkScreenObjects contained within

getPreferredBounds

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

getRightmostX

public int getRightmostX()
get the rightmost x coordinate

getScreenObjects

public ScreenObject[] getScreenObjects()
retrieve the ScreenObjects this container contains

getUI

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

getVariableScreenObjects

public VariableScreenObject[] getVariableScreenObjects()
get any VaribleScreenObjects contained within

revert

public void revert()
notify any contained objects of reject() event fires
Overrides:
revert in class ScreenObject

setDesignMode

public void setDesignMode(boolean mode)
notify all of the contained objects that we're moving into design mode
Overrides:
setDesignMode in class ScreenObject

setReadOnly

public void setReadOnly(boolean mode)
notify all of the contained objects that we're moving into read only mode
Overrides:
setReadOnly in class ScreenObject

setupUI

public javax.swing.JComponent setupUI()
set up the user interface
Overrides:
setupUI in class ScreenObject