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
-
doingShow
-
-
createBody()
- Creates the AWT component for this shadow.
-
destroyBody()
- Overrides destroyBody() in Shadow so that removeNotify() gets called on
AWT components when there will be no more references to them.
-
doingShow()
- Returns true if we are doing a create operation in the
middle of a show operation.
-
getOnBody(String)
- Gets attributes from this shadow's body.
-
hide()
- Sets the visible attribute to false.
-
hideComponent()
- Hides the component.
-
invalidate()
- Call invalidate to force the component to not be valid, so that
it will be layed out again when validate is called.
-
isMainContainer()
-
-
isShowing()
- Returns the result from calling isShowing on the body.
-
setOnBody(String, Object)
- Sets attributes on this shadow's body.
-
show()
- Sets the visible attribute to true.
-
show(boolean)
- Calls show or hide, depending on the value of cond.
-
showComponent()
- Shows the component.
-
showComponent(boolean)
- Calls showComponent or hideComponent, depending on the value of cond.
-
validate()
- Call validate to lay out the component and its children if they
are not valid.
doingShow
protected boolean doingShow
getOnBody
protected Object getOnBody(String key)
- Gets attributes from this shadow's body.
- Overrides:
- getOnBody in class Shadow
setOnBody
protected void setOnBody(String key,
Object value)
- Sets attributes on this shadow's body.
- Overrides:
- setOnBody in class Shadow
isMainContainer
protected boolean isMainContainer()
createBody
public void createBody()
- Creates the AWT component for this shadow.
- Overrides:
- createBody in class Shadow
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
show
public void show(boolean cond)
- Calls show or hide, depending on the value of cond.
show
public void show()
- Sets the visible attribute to true.
hide
public void hide()
- Sets the visible attribute to false.
showComponent
public void showComponent(boolean cond)
- Calls showComponent or hideComponent, depending on the value of cond.
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.
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.
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.
validate
public void validate()
- Call validate to lay out the component and its children if they
are not valid.
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.
isShowing
public boolean isShowing()
- Returns the result from calling isShowing on the body.
All Packages Class Hierarchy This Package Previous Next Index