Class sunsoft.jws.visual.rt.shadow.java.awt.WindowShadow
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.shadow.java.awt.WindowShadow

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.base.AttributeManager
           |
           +----sunsoft.jws.visual.rt.base.Shadow
                   |
                   +----sunsoft.jws.visual.rt.shadow.java.awt.ComponentShadow
                           |
                           +----sunsoft.jws.visual.rt.shadow.java.awt.ContainerShadow
                                   |
                                   +----sunsoft.jws.visual.rt.shadow.java.awt.WindowShadow

public class WindowShadow
extends ContainerShadow
Wraps an AWT widget. The attributes available for this class are listed below. In the type column, type names beginning with "sunsoft.jws.visual.rt" have been abbreviated to begin with "rt".
    name            type                      default value
    -----------------------------------------------------------------------
    location        java.awt.Point            null
    size            java.awt.Dimension        null
location: location for the window, if the location is set before the window is mapped, then when the window is mapped, it will come up at the specified location. If the location is set while the window is mapped, then window will immediately be moved to the new location.

size: desired size for the window, if set before mapping, the window will later be mapped with this size. However, the size dimensions are first checked to ensure that the dimensions are at least as big as the preferredSize. If set after mapping and non-null, the window will be resized to the new size after maxing with preferredSize. "get" returns the value for the desired size, NOT the actual size of the window. The "size" attribute does not take effect when in layout mode.

Check the super class for additional attributes.

See Also:
Window

Constructor Index

 o WindowShadow()

Method Index

 o checkCreate()
 o createBody()
Creates the AWT component for this shadow.
 o destroyBody()
Disposes of the AWT top-level window so that window system resources are reclaimed.
 o get(String)
Gets an attribute either from the body (if available) or from the shadow's attribute list.
 o getAttributeList()
Return a reference to the entire table of attributes.
 o getDefaultLocation()
 o getDefaultSize()
 o getFlags(String)
Returns true if the attribute has the flag set, otherwise false.
 o getOnBody(String)
Gets attributes from this shadow's body.
 o getType(String)
Returns the type string for the attribute, or null if the attribute does not exist.
 o handleEvent(Message, Event)
May be overridden by subclasses that want to act on AWT events that are sent to this object.
 o hasAttribute(String)
Returns true if the attribute exists, otherwise return false.
 o hasAttribute(String, String)
Return true if the attribute exists and the type matches, otherwise return false.
 o isPanel()
 o isPanel(boolean)
 o isVisible()
Returns true if the window's group is currently visible, and the window's visible attribute is set to true.
 o layoutMode()
Called when Visual Java switches to layout mode.
 o pack()
 o postCreate()
Called just after this shadow has been created.
 o preDestroy()
Called during destroy, but before the children are destroyed.
 o previewMode()
Called when Visual Java switches to preview mode.
 o previewSize()
 o refetchAttributeList()
Calls get for all the attributes, and then stores the values directly in the attribute hash table.
 o registerBody()
Registers newly created shadows.
 o set(String, Object)
Sets an attribute either in the body (if available) or in the shadow's attribute list.
 o setDefaultLocation(Point)
 o setDefaultSize(Dimension)
 o setLayout(boolean)
 o setOnBody(String, Object)
Sets attributes on this shadow's body.
 o setPreview(boolean)
 o showComponent()
Shows the component.
 o updateContainerAttribute(AttributeManager, String, Object)
 o useLayoutLocation()
 o useLayoutSize()

Constructors

 o WindowShadow
  public WindowShadow()

Methods

 o setDefaultLocation
  public static void setDefaultLocation(Point p)
 o getDefaultLocation
  public static Point getDefaultLocation()
 o setDefaultSize
  public static void setDefaultSize(Dimension d)
 o getDefaultSize
  public static Dimension getDefaultSize()
 o useLayoutLocation
  protected boolean useLayoutLocation()
 o useLayoutSize
  protected boolean useLayoutSize()
 o getOnBody
  protected Object getOnBody(String key)
Gets attributes from this shadow's body.
Overrides:
getOnBody in class ComponentShadow
 o setOnBody
  protected void setOnBody(String key,
                           Object value)
Sets attributes on this shadow's body.
Overrides:
setOnBody in class ComponentShadow
 o createBody
  public void createBody()
Creates the AWT component for this shadow.
Overrides:
createBody in class ContainerShadow
 o registerBody
  protected void registerBody()
Registers newly created shadows.
Overrides:
registerBody in class Shadow
 o postCreate
  protected void postCreate()
Called just after this shadow has been created.
Overrides:
postCreate in class Shadow
 o preDestroy
  protected void preDestroy()
Called during destroy, but before the children are destroyed.
Overrides:
preDestroy in class Shadow
 o isVisible
  public boolean isVisible()
Returns true if the window's group is currently visible, and the window's visible attribute is set to true.
 o updateContainerAttribute
  public void updateContainerAttribute(AttributeManager child,
                                       String key,
                                       Object value)
Overrides:
updateContainerAttribute in class ContainerShadow
 o pack
  public void pack()
 o showComponent
  public void showComponent()
Shows the component. Calling showComponent does not affect the value of the visible attrbute. You should use "show" instead of "showComponent". The only reason this method exists is that Visual Java needs to use it in certain situations.
Overrides:
showComponent in class ComponentShadow
 o checkCreate
  protected void checkCreate()
 o destroyBody
  protected void destroyBody()
Disposes of the AWT top-level window so that window system resources are reclaimed.
Overrides:
destroyBody in class ComponentShadow
 o isPanel
  public boolean isPanel()
 o isPanel
  public void isPanel(boolean isPanel)
 o set
  public void set(String key,
                  Object value)
Sets an attribute either in the body (if available) or in the shadow's attribute list.
Overrides:
set in class Shadow
 o get
  public Object get(String key)
Gets an attribute either from the body (if available) or from the shadow's attribute list.
Overrides:
get in class Shadow
 o getType
  public String getType(String key)
Returns the type string for the attribute, or null if the attribute does not exist.
Overrides:
getType in class AttributeManager
 o getFlags
  public int getFlags(String key)
Returns true if the attribute has the flag set, otherwise false.
Overrides:
getFlags in class AttributeManager
 o hasAttribute
  public boolean hasAttribute(String key)
Returns true if the attribute exists, otherwise return false.
Overrides:
hasAttribute in class AttributeManager
 o hasAttribute
  public boolean hasAttribute(String key,
                              String type)
Return true if the attribute exists and the type matches, otherwise return false.
Overrides:
hasAttribute in class AttributeManager
 o getAttributeList
  public AttributeList getAttributeList()
Return a reference to the entire table of attributes.
Overrides:
getAttributeList in class AttributeManager
 o refetchAttributeList
  public void refetchAttributeList()
Calls get for all the attributes, and then stores the values directly in the attribute hash table.
Overrides:
refetchAttributeList in class AttributeManager
 o layoutMode
  public void layoutMode()
Called when Visual Java switches to layout mode.
Overrides:
layoutMode in class ContainerShadow
 o previewMode
  public void previewMode()
Called when Visual Java switches to preview mode.
Overrides:
previewMode in class ContainerShadow
 o setLayout
  public void setLayout(boolean shouldResize)
 o setPreview
  public void setPreview(boolean shouldResize)
 o previewSize
  public Dimension previewSize()
 o handleEvent
  public boolean handleEvent(Message msg,
                             Event evt)
May be overridden by subclasses that want to act on AWT events that are sent to this object.
Overrides:
handleEvent in class AttributeManager

All Packages  Class Hierarchy  This Package  Previous  Next  Index