All Packages Class Hierarchy This Package Previous Next Index
Class tea.set.FolderA
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----tea.set.BaseA
|
+----tea.set.FolderA
- public class FolderA
- extends BaseA
FolderA is an applet wrapper of Folder. It provides a tab like container
to put any applet into. Parameters for the child applets can be
specified inside the applet tag in the normal fashion. Any parameter
not recognized by FolderA are passed to child applets automatically.
Parameters supported include:
- Folder.DEMO
- if TRUE, create a demo panel.
- Folder.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.
- Folder.CONTENT$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 the applet name.
If the child applet is a Tea Set applet, the applet id of the applet
is set to the corresponding tab string. This means to pass parameter
specifically 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', the parameter name should be
"Graph Demo.Graph.X". If tab 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.
- Folder.SHOW
- The index of the tab to be shown after initialization. If this
parameter is not specified, the initial state is no page is shown.
- Folder.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.
- Folder.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.
- Folder.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.
- Folder.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
- Folder.STYLE
- style specifies how and where the tabs are placed. There are four
styles: TOP, LEFT, BOTTOM, and RIGHT.
- Folder.3D
- display folder in 3D mode (default) if TRUE, plain otherwise.
Example:
<applet code=tea/set/FolderA width=... height=...>
<param name=tab0 value="Graph Demo">
<param name="Graph Demo.Graph.STYLE" value=BAR3D>
<param name="Graph Demo.Graph.X" value="1,2,3,4,5,6">
<param name="Graph Demo.Graph.Y" value="5.5,2,9,3,4.2,8">
<param name=content0 value=tea.set.GraphA>
...
- See Also:
- Folder
-
FolderA()
-
-
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.
FolderA
public FolderA()
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:
- Folder Widget.
- Overrides:
- getWidget in class BaseA
All Packages Class Hierarchy This Package Previous Next Index