Class sunsoft.jws.visual.rt.shadow.CardPanelShadow
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.shadow.CardPanelShadow
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.PanelShadow
|
+----sunsoft.jws.visual.rt.shadow.VJPanelShadow
|
+----sunsoft.jws.visual.rt.shadow.CardPanelShadow
- public class CardPanelShadow
- extends VJPanelShadow
CardPanelShadow - Panel with card layout.
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
-----------------------------------------------------------------------
cards [Lrt.shadow.GBPanelShadow initial label
delayedCreation java.lang.Boolean true
Check the super class for additional attributes.
- See Also:
- CardLayout
-
cardPanel
-
-
CardPanelShadow()
- The "delayedCreation" attribute delays the creation of cards until
after they are shown.
-
action(Message, Event, Object)
-
-
add(AttributeManager)
-
-
addChildBody(Shadow)
-
-
createBody()
- Creates the AWT component for this shadow.
-
createChildren()
-
-
destroyBody()
- Overrides destroyBody() in Shadow so that removeNotify() gets called on
AWT components when there will be no more references to them.
-
getCard(String)
-
-
getCardPanel()
-
-
getCards()
-
-
getOnBody(String)
- Gets attributes from this shadow's body.
-
handleEvent(Message, Event)
- May be overridden by subclasses that want to act
on AWT events that are sent to this object.
-
layoutMode()
- Called when Visual Java switches to layout mode.
-
postCreate()
- Called just after this shadow has been created.
-
previewMode()
- Called when Visual Java switches to preview mode.
-
registerBody()
- Registers newly created shadows.
-
remove(AttributeManager)
-
-
removeChildBody(Shadow)
-
-
setCards(GBPanelShadow[])
-
-
setOnBody(String, Object)
- Sets attributes on this shadow's body.
-
show(String)
-
-
updateContainerAttribute(AttributeManager, String, Object)
-
cardPanel
protected CardPanel cardPanel
CardPanelShadow
public CardPanelShadow()
- The "delayedCreation" attribute delays the creation of cards until
after they are shown. This is good for performance. But it is bad
because the initial size of the card panel will be determined by the
first card, and not by the largest card in the panel. So if
"delayedCreation" is set to true, you need to make sure that the
initial card is bigger than all the other cards.
show
public void show(String name)
getCard
public GBPanelShadow getCard(String name)
getOnBody
protected Object getOnBody(String key)
- Gets attributes from this shadow's body.
- Overrides:
- getOnBody in class VJPanelShadow
setOnBody
protected void setOnBody(String key,
Object value)
- Sets attributes on this shadow's body.
- Overrides:
- setOnBody in class VJPanelShadow
updateContainerAttribute
public void updateContainerAttribute(AttributeManager child,
String key,
Object value)
- Overrides:
- updateContainerAttribute in class ContainerShadow
getCards
protected synchronized GBPanelShadow[] getCards()
setCards
protected void setCards(GBPanelShadow cards[])
add
public void add(AttributeManager child)
- Overrides:
- add in class ContainerShadow
remove
public void remove(AttributeManager child)
- Overrides:
- remove in class ContainerShadow
addChildBody
public void addChildBody(Shadow child)
- Overrides:
- addChildBody in class ContainerShadow
removeChildBody
public void removeChildBody(Shadow child)
- Overrides:
- removeChildBody in class ContainerShadow
createChildren
public void createChildren()
- Overrides:
- createChildren in class ContainerShadow
createBody
public void createBody()
- Creates the AWT component for this shadow.
- Overrides:
- createBody in class VJPanelShadow
getCardPanel
public CardPanel getCardPanel()
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
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 ComponentShadow
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
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
action
public boolean action(Message msg,
Event evt,
Object what)
- Overrides:
- action in class AttributeManager
All Packages Class Hierarchy This Package Previous Next Index