Palm API
Beta 2

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, register0, setPalmEventOptions, unknownEvent, unregister, unregister0
 
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

Submit a bug or feature

The GUI classes provided with this release are NOT part of CLDC, and they will be removed in later releases of this software. Official GUI classes for Java 2 Micro Edition will be defined separately through the Java Community Process and included in J2ME profiles. Java is trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc.
901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
All Rights Reserved.