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

Variable Index

 o cardPanel

Constructor Index

 o CardPanelShadow()
The "delayedCreation" attribute delays the creation of cards until after they are shown.

Method Index

 o action(Message, Event, Object)
 o add(AttributeManager)
 o addChildBody(Shadow)
 o createBody()
Creates the AWT component for this shadow.
 o createChildren()
 o destroyBody()
Overrides destroyBody() in Shadow so that removeNotify() gets called on AWT components when there will be no more references to them.
 o getCard(String)
 o getCardPanel()
 o getCards()
 o getOnBody(String)
Gets attributes from this shadow's body.
 o handleEvent(Message, Event)
May be overridden by subclasses that want to act on AWT events that are sent to this object.
 o layoutMode()
Called when Visual Java switches to layout mode.
 o postCreate()
Called just after this shadow has been created.
 o previewMode()
Called when Visual Java switches to preview mode.
 o registerBody()
Registers newly created shadows.
 o remove(AttributeManager)
 o removeChildBody(Shadow)
 o setCards(GBPanelShadow[])
 o setOnBody(String, Object)
Sets attributes on this shadow's body.
 o show(String)
 o updateContainerAttribute(AttributeManager, String, Object)

Variables

 o cardPanel
  protected CardPanel cardPanel

Constructors

 o 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.

Methods

 o show
  public void show(String name)
 o getCard
  public GBPanelShadow getCard(String name)
 o getOnBody
  protected Object getOnBody(String key)
Gets attributes from this shadow's body.
Overrides:
getOnBody in class VJPanelShadow
 o setOnBody
  protected void setOnBody(String key,
                           Object value)
Sets attributes on this shadow's body.
Overrides:
setOnBody in class VJPanelShadow
 o updateContainerAttribute
  public void updateContainerAttribute(AttributeManager child,
                                       String key,
                                       Object value)
Overrides:
updateContainerAttribute in class ContainerShadow
 o getCards
  protected synchronized GBPanelShadow[] getCards()
 o setCards
  protected void setCards(GBPanelShadow cards[])
 o add
  public void add(AttributeManager child)
Overrides:
add in class ContainerShadow
 o remove
  public void remove(AttributeManager child)
Overrides:
remove in class ContainerShadow
 o addChildBody
  public void addChildBody(Shadow child)
Overrides:
addChildBody in class ContainerShadow
 o removeChildBody
  public void removeChildBody(Shadow child)
Overrides:
removeChildBody in class ContainerShadow
 o createChildren
  public void createChildren()
Overrides:
createChildren in class ContainerShadow
 o createBody
  public void createBody()
Creates the AWT component for this shadow.
Overrides:
createBody in class VJPanelShadow
 o getCardPanel
  public CardPanel getCardPanel()
 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 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
 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 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
 o action
  public boolean action(Message msg,
                        Event evt,
                        Object what)
Overrides:
action in class AttributeManager

All Packages  Class Hierarchy  This Package  Previous  Next  Index