All Packages Class Hierarchy This Package Previous Next Index
Class tea.set.BookA
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----tea.set.BaseA
|
+----tea.set.BookA
- public class BookA
- extends BaseA
BookA is an applet wrapper of Book. It provides a book like container
to put any applet into. Parameter can be passed to the applets inside
the book container by supplying them as regular applet parameters. Any
parameters not understood by BookA are passed down to the child
applets automatically.
Parameters supported by BookA include:
- Book.DEMO
- if TRUE, create a demo panel.
- Book.CHAPTER$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 chapter name,
which is displayed as the tab label for the chapter folder.
- Book.PAGE$n,$m
- $n is the same number for the coresponding chapter's $n. $m is a
number starting from 0 to the number of applets to put in as pages in
the chapter. The value of this parameter should be an applet name.
Only applet can be used as a page in BookA, which is more restrictive
than Book widget.
This means to pass parameter to the applet, the chapter name and
page number string needs to
to prepended to the parameter name. For example, to pass X parameter
to Graph inside chapter 'Graph Demo' at page 5, the parameter name
should be "Graph Demo.4.Graph.X".
If the child applet is a Tea Set applet, the applet id of the applet
is set to the corresponding chapter name
appended with the page number (starting at 0). This means to pass
parameter specifically to the applet, the chapter name and page
number needs to
to prepended to the parameter name. For example, to pass X parameter
to Graph inside chapter 'Graph Demo' at page 5, the parameter name
should be
"Graph Demo.4.Graph.X". If chapter name is not added to the front of
the parameter name, it will be used by all applet looking for the
parameter, instead of only for one specific applet. This targetting
mechanism is only true for Tea Set applets, unless the applet also
inherits from tea.set.BaseA and follow the same conventions as
explained in the Programming Guide.
- Book.FOREGROUND$n
- $n is a number starting from 0 to the number of applets to put in
the folder. The value of this parameter should be a color name or a
RGB specification in decimal form RRR:GGG:BBB, or hex form 0xRRGGBB.
- Book.BACKGROUND$n
- $n is a number starting from 0 to the number of applets to put in
the folder. The value of this parameter should be a color name or a
RGB specification in decimal form RRR:GGG:BBB, or hex form 0xRRGGBB.
- Book.FONT$n
- $n is a number starting from 0 to the number of applets to put in
the folder. The value of this parameter should be a font name defined
in the property list.
- Book.BORDER
- border between content component and the edges of folder. It
is a comma separated numbers defining the top, left, bottom, and
right border: top,left,bottom,right, e.g. 2,2,2,4
- Book.STYLE
- style specifies how and where the tabs are placed. There are four
styles: TOP, LEFT, BOTTOM, and RIGHT.
- Book.3D
- display book in 3D mode (default) if TRUE, plain otherwise.
Example:
<applet code=tea/set/BookA width=400 height=300>
<param name=chapter0 value="Tea Set Introduction">
<param name=page0,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=page0,1 value=tea.set.TableA>
...
- See Also:
- Book
-
BookA()
-
-
getWidget()
- This method is overriden by actual applet to return the
widget corresponding to this applet wrapper.
-
init()
- Applet initialization method.
-
start()
- Start all applets in this container.
-
stop()
- Stop all applets in this container.
BookA
public BookA()
init
public void init()
- Applet initialization method.
- Overrides:
- init in class Applet
start
public void start()
- Start all applets in this container.
- Overrides:
- start in class Applet
stop
public void stop()
- Stop all applets in this container.
- Overrides:
- stop in class Applet
getWidget
public Component getWidget()
- This method is overriden by actual applet to return the
widget corresponding to this applet wrapper. User can use this
method to access the underlying widget directly.
- Returns:
- Book widget.
- Overrides:
- getWidget in class BaseA
All Packages Class Hierarchy This Package Previous Next Index