jMobileCore toolkit

com.jmobilecore.ui.core
Class SoftKey

java.lang.Object
  extended by com.jmobilecore.ui.core.SoftKey
Direct Known Subclasses:
SoftKeyImpl

public abstract class SoftKey
extends java.lang.Object

This class represents either of the three soft keys, which are right below the screen on the left, in center and right sides. Soft keys are pressed by the user to perform actions, such as calculating a result.

Author:
Greg Gridin

Field Summary
static int CENTER
          The center soft key key code
 java.lang.String label
          The soft key label.
static int LEFT
          The left soft key key code
static int RIGHT
          The right soft key key code
 
Constructor Summary
SoftKey(java.lang.String label)
          Creates a new SoftKey instance.
 
Method Summary
abstract  void performAction()
          Performs an action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static final int CENTER
The center soft key key code

See Also:
Constant Field Values

label

public java.lang.String label
The soft key label.


LEFT

public static final int LEFT
The left soft key key code

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
The right soft key key code

See Also:
Constant Field Values
Constructor Detail

SoftKey

public SoftKey(java.lang.String label)
Creates a new SoftKey instance.

Parameters:
label - String to display on the screen above the soft key.
Method Detail

performAction

public abstract void performAction()
Performs an action.


jMobileCore toolkit