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

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

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

public class ComponentShadow
extends Shadow
Shadow class that wraps the AWT Component class. The attributes available for this class are listed below. Check the super class for additional attributes.
    name            type                      default value
    -----------------------------------------------------------------------
    anchor          rt.type.AnchorEnum        center 
    background      java.awt.Color            null
    enabled         java.lang.Boolean         true 
    font            java.awt.Font             null
    foreground      java.awt.Color            null
    GBConstraints   rt.awt.GBConstraints      new GBConstraints()
    insets          java.awt.Insets           null
    visible         java.lang.Boolean         true 
All shadow classes (except for the menu-related ones) include the attributes from the ComponentShadow class in addition to their own, and they do so by subclassing it. This class is a super class and isn't available directly from the palette.
See Also:
Component

Variable Index

 o doingShow

Method Index

 o createBody()
Creates the AWT component for this shadow.
 o destroyBody()
Overrides destroyBody() in Shadow so that removeNotify() gets called on AWT components when there will be no more references to them.
 o doingShow()
Returns true if we are doing a create operation in the middle of a show operation.
 o getOnBody(String)
Gets attributes from this shadow's body.
 o hide()
Sets the visible attribute to false.
 o hideComponent()
Hides the component.
 o invalidate()
Call invalidate to force the component to not be valid, so that it will be layed out again when validate is called.
 o isMainContainer()
 o isShowing()
Returns the result from calling isShowing on the body.
 o setOnBody(String, Object)
Sets attributes on this shadow's body.
 o show()
Sets the visible attribute to true.
 o show(boolean)
Calls show or hide, depending on the value of cond.
 o showComponent()
Shows the component.
 o showComponent(boolean)
Calls showComponent or hideComponent, depending on the value of cond.
 o validate()
Call validate to lay out the component and its children if they are not valid.

Variables

 o doingShow
  protected boolean doingShow

Methods

 o getOnBody
  protected Object getOnBody(String key)
Gets attributes from this shadow's body.
Overrides:
getOnBody in class Shadow
 o setOnBody
  protected void setOnBody(String key,
                           Object value)
Sets attributes on this shadow's body.
Overrides:
setOnBody in class Shadow
 o isMainContainer
  protected boolean isMainContainer()
 o createBody
  public void createBody()
Creates the AWT component for this shadow.
Overrides:
createBody in class Shadow
 o destroyBody
  protected void destroyBody()
Overrides destroyBody() in Shadow so that removeNotify() gets called on AWT components when there will be no more references to them.
Overrides:
destroyBody in class Shadow
 o show
  public void show(boolean cond)
Calls show or hide, depending on the value of cond.
 o show
  public void show()
Sets the visible attribute to true.
 o hide
  public void hide()
Sets the visible attribute to false.
 o showComponent
  public void showComponent(boolean cond)
Calls showComponent or hideComponent, depending on the value of cond.
 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.
 o hideComponent
  public void hideComponent()
Hides the component. Calling hideComponent does not affect the value of the visible attrbute. You should use "hide" instead of "hideComponent". The only reason this method exists is that Visual Java needs to use it in certain situations.
 o doingShow
  protected boolean doingShow()
Returns true if we are doing a create operation in the middle of a show operation. Create likes to call show if the visible attribute is set to true, but create shouldn't call show if show caused create to be called if the first place.
 o validate
  public void validate()
Call validate to lay out the component and its children if they are not valid.
 o invalidate
  public void invalidate()
Call invalidate to force the component to not be valid, so that it will be layed out again when validate is called.
 o isShowing
  public boolean isShowing()
Returns the result from calling isShowing on the body.

All Packages  Class Hierarchy  This Package  Previous  Next  Index