UniVista.support.screens
Class Screen

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

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

holds information about a Screen

See Also:
Serialized Form

Field Summary
static java.lang.String UNTITLED
           
 
Constructor Summary
Screen()
          create a new Screen
 
Method Summary
 void acceptScreen()
          fire an accept off to all of the screen objects
 void add(ScreenObject obj)
          Add a ScreenObject.
 void addScreenObject(ScreenObject obj)
          add a screen object
 int bottommostObjectY()
          get the bottommost y coordinate of all of the objects on a screen
 java.lang.Object clone()
          clone a screen
 void destroyScreen()
          fire off a destroy to all screen objects
 void destroyScreen(java.awt.Container cont)
           
 void displayScreen(java.awt.Container cont)
          display the screen in the passed Container
 void duplicate(Screen toDup)
          duplicate the values of one screen into another
 LinkScreenObject[] getLinkScreenObjects()
          retrieve all of the LinkScreenObjects on the screen
 java.lang.String getScreenName()
          get the internal screen ID
 ScreenObject[] getScreenObjects()
          retrieve the screen objects that are on this screen
 java.awt.Dimension getSize()
           
 java.util.Vector getVariableDifference(Screen s)
          Get the Variables that are not contained in ScreenObjects within this Screen.
 VariableScreenObject[] getVariableScreenObjects()
          retrieve all of the VariableScreenObjects on the screen
 java.lang.String getVisibleScreenName()
          get the visible screen name
 void insertMouseDraggers()
          insert the mouse draggers for all of the screen elements.
 void removeScreenObject(ScreenObject obj)
          remove a screen object
 void removeScreenObject(Variable var)
          Remove a screen object associated with a Variable.
 void revertScreen()
          fire off a reject to all the screen objects
 void setDesignMode(boolean newVal)
          set the design mode of the screen objects
 void setDraggingEnabled(boolean b)
          Enable or disable the moving of ScreenObjects.
 void setReadOnly(boolean newVal)
          set the readOnly of all the screen objects
 void setScreenName(java.lang.String id)
          set the internal screen ID
 void setSize(java.awt.Dimension d)
           
 void setVisibleScreenName(java.lang.String name)
          set the visible screen name
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNTITLED

public static final java.lang.String UNTITLED
Constructor Detail

Screen

public Screen()
create a new Screen
Method Detail

getSize

public java.awt.Dimension getSize()

setSize

public void setSize(java.awt.Dimension d)

acceptScreen

public void acceptScreen()
fire an accept off to all of the screen objects

add

public void add(ScreenObject obj)
Add a ScreenObject.

addScreenObject

public void addScreenObject(ScreenObject obj)
add a screen object

bottommostObjectY

public int bottommostObjectY()
get the bottommost y coordinate of all of the objects on a screen

clone

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

destroyScreen

public void destroyScreen()
fire off a destroy to all screen objects

destroyScreen

public void destroyScreen(java.awt.Container cont)

displayScreen

public void displayScreen(java.awt.Container cont)
display the screen in the passed Container

duplicate

public void duplicate(Screen toDup)
duplicate the values of one screen into another

getLinkScreenObjects

public LinkScreenObject[] getLinkScreenObjects()
retrieve all of the LinkScreenObjects on the screen

getScreenName

public java.lang.String getScreenName()
get the internal screen ID

getScreenObjects

public ScreenObject[] getScreenObjects()
retrieve the screen objects that are on this screen

getVariableScreenObjects

public VariableScreenObject[] getVariableScreenObjects()
retrieve all of the VariableScreenObjects on the screen

getVisibleScreenName

public java.lang.String getVisibleScreenName()
get the visible screen name

insertMouseDraggers

public void insertMouseDraggers()
insert the mouse draggers for all of the screen elements. The draggers allow the elements to be repositioned using hte mouse on the screen.

revertScreen

public void revertScreen()
fire off a reject to all the screen objects

removeScreenObject

public void removeScreenObject(ScreenObject obj)
remove a screen object

removeScreenObject

public void removeScreenObject(Variable var)
Remove a screen object associated with a Variable.

setDesignMode

public void setDesignMode(boolean newVal)
set the design mode of the screen objects

setReadOnly

public void setReadOnly(boolean newVal)
set the readOnly of all the screen objects

setScreenName

public void setScreenName(java.lang.String id)
set the internal screen ID

setVisibleScreenName

public void setVisibleScreenName(java.lang.String name)
set the visible screen name

getVariableDifference

public java.util.Vector getVariableDifference(Screen s)
Get the Variables that are not contained in ScreenObjects within this Screen.

setDraggingEnabled

public void setDraggingEnabled(boolean b)
Enable or disable the moving of ScreenObjects. param b true if components should be draggable