Class tea.set.CardFileA
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.CardFileA

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----tea.set.BaseA
                                           |
                                           +----tea.set.CardFileA

public class CardFileA
extends BaseA
CardFileA is an applet wrapper of CardFile. It provides a card file like container to put any applet into. Parameters can be passed to child applets by specifying them in the normal way. All parameters not recognized by CardFile are passed to the child applets automatically. Parameters supported by CardFileA include:
CardFile.DEMO
if TRUE, create a demo panel.
CardFile.TAB$n
$n is a number starting from 0 to the number of applets to put in the container. The value of this parameter is used as the tab name.
CardFile.CONTENT$n,$m
$n is the same number for the corresponding tab's $n. $m is either 0 or 1. If $m is zero, the content is the first side of the card. If $m is 1, the content is the second side of the card. The value of this parameter should be the applet name. The applet will be inserted to the CardFile and displayed as the content portion of the page. The applet id of the applet is set to the corresponding tab string appended with the side number (0 or 1). This means to pass parameter to the applet, the tab string needs to to prepended to the parameter name. For example, to pass X parameter to Graph inside tab 'Graph Demo' at side 2, the parameter name should be "Graph Demo.1.Graph.X".
CardFile.STYLE
style specifies how and where the tabs are placed. There are two styles: TOP_BOTTOM and LEFT_RIGHT.
CardFile.3D
display card file in 3D mode (default) if TRUE, plain otherwise.
Example: 
<applet code=tea/set/CardFileA width=400 height=300>
<param name=tab0 value="Tea Set Introduction">
<param name=content0.0 value=tea.set.GraphA>
<param name="Tea Set Introduction.0.Graph.STYLE" value=BAR3D>
<param name="Tea Set Introduction.0.Graph.X" value="1,2,3,4,5,6">
<param name="Tea Set Introduction.0.Graph.Y" value="5.5,2,9,3,4.2,8">
<param name=content0.1 value=tea.set.TableA>
...
See Also:
CardFile

Constructor Index

 o CardFileA()

Method Index

 o action(Event, Object)
Used for DEMO purpose only.
 o init()
Applet initialization method.
 o start()
Start all applets in this container.
 o stop()
Stop all applets in this container.

Constructors

 o CardFileA
  public CardFileA()

Methods

 o init
  public void init()
Applet initialization method.
Overrides:
init in class Applet
 o start
  public void start()
Start all applets in this container.
Overrides:
start in class Applet
 o stop
  public void stop()
Stop all applets in this container.
Overrides:
stop in class Applet
 o action
  public boolean action(Event e,
                        Object arg)
Used for DEMO purpose only.
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index