UniVista.support.screens
Class ScreenHash

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

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

Allows Screen objects to be easily mapped to strings and back again and stored in a central location

See Also:
Serialized Form

Constructor Summary
ScreenHash()
           
 
Method Summary
 void addScreen(Screen toAdd)
          Add a Screen to the hash
 java.lang.Object clone()
          clone the ScreenHash
 Screen getScreen(java.lang.String screenName)
          Retrieve a screen from the hash by looking up its internal name.
 Screen[] getScreens()
          Return an array of all of the Screens stored in the hash.
 void remapLinkScreenCallbacks(Callback newCb)
          set all of the contained LinkScreenObjects' callback to the passed callback
 void remapLinkScreenObjects()
          remap all of the LinkScreenObjects to this hash
 void remapVariableScreenObjects(VariableHash newVars)
          remap all of the VariableScreenObjects to the new hash
 void setScreenObjectsDesignModeFlag(boolean r)
          set the designing flag of all of the elements
 void setScreenObjectsReadOnlyFlag(boolean r)
          set the read-only flag of all of the elements
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenHash

public ScreenHash()
Method Detail

addScreen

public void addScreen(Screen toAdd)
Add a Screen to the hash

clone

public java.lang.Object clone()
clone the ScreenHash
Overrides:
clone in class java.lang.Object

getScreen

public Screen getScreen(java.lang.String screenName)
Retrieve a screen from the hash by looking up its internal name. Returns null if no screen is found.
Parameters:
screenName - the internal name returned by getScreenName() to search for

getScreens

public Screen[] getScreens()
Return an array of all of the Screens stored in the hash.

remapLinkScreenCallbacks

public void remapLinkScreenCallbacks(Callback newCb)
set all of the contained LinkScreenObjects' callback to the passed callback

remapLinkScreenObjects

public void remapLinkScreenObjects()
remap all of the LinkScreenObjects to this hash

remapVariableScreenObjects

public void remapVariableScreenObjects(VariableHash newVars)
remap all of the VariableScreenObjects to the new hash

setScreenObjectsDesignModeFlag

public void setScreenObjectsDesignModeFlag(boolean r)
set the designing flag of all of the elements

setScreenObjectsReadOnlyFlag

public void setScreenObjectsReadOnlyFlag(boolean r)
set the read-only flag of all of the elements