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