com.sun.kjava
Class HelpDisplay

java.lang.Object
  |
  +--com.sun.kjava.Spotlet
        |
        +--com.sun.kjava.HelpDisplay

public class HelpDisplay
extends Spotlet

A simple, prepackaged "help" text user interface object.


Fields inherited from class com.sun.kjava.Spotlet
CALCICON, KEY_HARD1, KEY_HARD2, KEY_HARD3, KEY_HARD4, KEY_POWER, MENUICON, NO_EVENT_OPTIONS, PAGEDOWN, PAGEUP, WANT_SYSTEM_KEYS
 
Constructor Summary
HelpDisplay(java.lang.String hText, java.lang.String className, int eventOptions)
          Create a new HelpDisplay.
 
Method Summary
 void keyDown(int keyCode)
          The user has pressed a key.
 void penDown(int x, int y)
          The pen has gone down.
 void penMove(int x, int y)
          The pen moved.
 
Methods inherited from class com.sun.kjava.Spotlet
beamReceive, beamSend, dispatch, getFlashID, penUp, register, setPalmEventOptions, unknownEvent, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpDisplay

public HelpDisplay(java.lang.String hText,
                   java.lang.String className,
                   int eventOptions)
Create a new HelpDisplay.
Parameters:
hText - the text that's going to help the user
className - the exact name of the class to create and run
eventOptions - the event options we're interested in
Method Detail

penDown

public void penDown(int x,
                    int y)
The pen has gone down. If the user pressed the "done" button, create and register the application named by className.
Overrides:
penDown in class Spotlet
Tags copied from class: Spotlet
Parameters:
x - the x coordinate of the point at which the pen was placed
y - the y coordinate of the point at which the pen was placed

penMove

public void penMove(int x,
                    int y)
The pen moved.
Overrides:
penMove in class Spotlet
Tags copied from class: Spotlet
Parameters:
x - the x coordinate of the destination point of the move
y - the y coordinate of the destination point of the move

keyDown

public void keyDown(int keyCode)
The user has pressed a key.
Overrides:
keyDown in class Spotlet
Tags copied from class: Spotlet
Parameters:
keyCode - the code of the key the user entered