com.jmobilecore.ui
Class ConfirmForm
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
com.jmobilecore.ui.core.PlatformCanvas
com.jmobilecore.ui.core.ScreenCanvas
com.jmobilecore.ui.ConfirmForm
public class ConfirmForm
- extends ScreenCanvas
A ConfirmForm is object inherited from ScreenCanvas.
This form displays messages which require user confirmation.
- Author:
- Greg Gridin
| Fields inherited from class com.jmobilecore.ui.core.ScreenCanvas |
adjustFocus, bodyOffset, CANVAS_SCROLL_STEP, components, focusedIndex, offScreen, paintAreaHeight, screenTitle, SCROLL_DOWN, SCROLL_UP, softKeyBar, softKeyBarHeight, titleHeight |
| Fields inherited from class com.jmobilecore.ui.core.PlatformCanvas |
DOUBLE_BUFFER, HEIGHT, KEY_CLEAR, KEY_DOWN, KEY_ENTER, KEY_FIRE, KEY_LEFT, KEY_PHONE_OFF, KEY_PHONE_ON, KEY_RIGHT, KEY_SOFT_LEFT, KEY_SOFT_RIGHT, KEY_UNDEFINED, KEY_UP, KEY_VOLUME_DOWN, KEY_VOLUME_UP, PLATFORM, PLATFORM_BARTEO, PLATFORM_LG, PLATFORM_MOTOROLA, PLATFORM_MOTOROLA_V, PLATFORM_NOKIA, PLATFORM_NOKIA_30, PLATFORM_SAMSUNG, PLATFORM_SIEMENS, PLATFORM_SONYERICSSON, PLATFORM_SUN_WTK, WIDTH |
| Fields inherited from class javax.microedition.lcdui.Canvas |
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
|
Constructor Summary |
ConfirmForm(EventListener parent,
java.lang.String titleText,
java.lang.String text,
java.lang.String leftKeyText,
java.lang.String rightKeyText)
Creates a new ConfirmForm instance. |
ConfirmForm(Label title,
java.lang.String text,
SoftKey leftKey,
SoftKey rightKey)
Creates a new ConfirmForm instance. |
|
Method Summary |
void |
destructor()
Default destructor. |
static void |
showMessage(EventListener parent,
java.lang.String titleText,
java.lang.String text,
java.lang.String leftKeyText,
java.lang.String rightKeyText)
Shows the confirmation form on the screen |
static void |
showMessage(Label title,
java.lang.String text,
SoftKey leftButton,
SoftKey rightButton)
Shows the confirmation form on the screen |
| Methods inherited from class com.jmobilecore.ui.core.ScreenCanvas |
add, add, changeFocus, drawTriangle, getComponentsHeight, getFirstFocusable, getLastFocusable, getNextFocusable, getPreviousFocusable, getScrollDirections, keyPressed, paint, paintBody, paintBodyBackground, paintScroller, recalcAdjustment, refocus, remove, remove, removeAll, scrollDown, scrollTop, scrollUp |
| Methods inherited from class javax.microedition.lcdui.Canvas |
getGameAction, getHeight, getKeyCode, getKeyName, getWidth, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, showNotify |
| Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, isShown, removeCommand, setCommandListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textLabel
protected TextPane textLabel
- Message for the
ConfirmForm.
ConfirmForm
public ConfirmForm(EventListener parent,
java.lang.String titleText,
java.lang.String text,
java.lang.String leftKeyText,
java.lang.String rightKeyText)
- Creates a new
ConfirmForm instance.
- Parameters:
parent - the parent EventListener for the confirmation screentitleText - the title for current screentext - the confirmation text to displayleftKeyText - the left soft button for current screenrightKeyText - the right soft button for current screen- See Also:
EventListener,
SoftKeyImpl
ConfirmForm
public ConfirmForm(Label title,
java.lang.String text,
SoftKey leftKey,
SoftKey rightKey)
- Creates a new
ConfirmForm instance.
- Parameters:
title - the title for current screentext - the confirmation text to displayleftKey - the left soft button for current screenrightKey - the right soft button for current screen- See Also:
Label,
SoftKey
destructor
public void destructor()
- Default destructor. Helps VM to perform garbage collection
- Overrides:
destructor in class ScreenCanvas
showMessage
public static void showMessage(EventListener parent,
java.lang.String titleText,
java.lang.String text,
java.lang.String leftKeyText,
java.lang.String rightKeyText)
- Shows the confirmation form on the screen
- Parameters:
parent - the parent EventListener for the confirmation screentitleText - the title for current screentext - the confirmation text to displayleftKeyText - the left soft button for current screenrightKeyText - the right soft button for current screen- See Also:
EventListener,
SoftKeyImpl
showMessage
public static void showMessage(Label title,
java.lang.String text,
SoftKey leftButton,
SoftKey rightButton)
- Shows the confirmation form on the screen
- Parameters:
title - the title for current screentext - the confirmation text to displayleftButton - the left soft button for current screenrightButton - the right soft button for current screen- See Also:
Label,
SoftKey