Class tea.set.AnimatedButtonA
All Packages Class Hierarchy This Package Previous Next Index
Class tea.set.AnimatedButtonA
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----tea.set.BaseA
|
+----tea.set.AnimatedButtonA
- public class AnimatedButtonA
- extends BaseA
- implements Runnable
AnimatedButtonA is an applet version of AnimatedButton widget. It
contains the same functionality as AnimatedButton widget. But
instead of having to be used inside a Java program, it can be used
standalone in HTML pages. AnimatedButtonA supports the following
parameters:
- AnimatedButton.IMAGE
- URL string pointing to the image frames for the animation
sequence. A number starting from zero(0) is appended to the string
to get the actual image name. The first missing parameter with
the number appended will terminated the frame sequence. For example,
if parameter for AnimatedButton.IMAGE0 throught AnimatedButton.IMAGE7
are supplied, and AnimatedButton.IMAGE8 is missing, only the first
eight frames will be used even there are other AnimatedButton.IMAGE
parameters.
- AnimatedButton.DELAY
- delay between animation frames, in mini-seconds.
- AnimatedButton.URL
- nn URL to display when this button is pressed.
- AnimatedButton.TARGET
- the target frame to display the URL page. If this parameter is
missing, _self is assumed. This parameter is used to support frames.
- AnimatedButton.LABEL
- a string as button label. If AnimatedButton.POSITION parameter
is missing, the label is placed below the image by default.
- AnimatedButton.POSITION
- one of the ImageButton label position options: LEFT, RIGHT,
TOP, BOTTOM.
- See Also:
- AnimatedButton
-
AnimatedButtonA()
-
-
handleEvent(Event)
- Action causes the document pointed to by URL to be displayed.
-
init()
- Applet initialization routine.
-
run()
- Runnable run method.
-
start()
- Start animation sequence.
-
stop()
- Stop animation sequence.
AnimatedButtonA
public AnimatedButtonA()
init
public void init()
- Applet initialization routine.
- Overrides:
- init in class Applet
start
public void start()
- Start animation sequence.
- Overrides:
- start in class Applet
run
public void run()
- Runnable run method.
stop
public void stop()
- Stop animation sequence.
- Overrides:
- stop in class Applet
handleEvent
public boolean handleEvent(Event e)
- Action causes the document pointed to by URL to be displayed.
This method can be overriden to provide another semantics for
AnimatedButtonA.
- Parameters:
- e - event object.
- Overrides:
- handleEvent in class Component
All Packages Class Hierarchy This Package Previous Next Index