Ascent Phase Corp.

org.ascentphase.suit
Class KeyboardPopup

java.lang.Object
  |
  +--Canvas
        |
        +--org.ascentphase.suit.Panel
              |
              +--org.ascentphase.suit.InputPopup
                    |
                    +--org.ascentphase.suit.KeyboardPopup

public class KeyboardPopup
extends InputPopup

A Popup that displays a QWERTY keyboard and a Field widget. The Field widget displays the keys pressed on the virtual keyboard.

Version:
Author:
huyd
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ascentphase.suit.InputPopup
CLOSE_CANCEL, CLOSE_OK, closeCmd, closeState
 
Fields inherited from class org.ascentphase.suit.Panel
clearReq
 
Constructor Summary
KeyboardPopup(java.lang.String title, int rows)
          Initializes the KeyboardPopup with the given title and the given number of rows of text displayable.
KeyboardPopup(java.lang.String title, java.lang.String text, int rows)
          Initializes the KeyboardPopup with the given title, the given default text and the given number of rows of text displayable.
 
Method Summary
 java.lang.String getText()
          Returns the input the user specified in the Popup.
protected  void handleCommandEvent(Command evt)
          Notifies any listeners when a Command event occurs.
 void initialize()
           
 
Methods inherited from class org.ascentphase.suit.InputPopup
getCloseState, setCloseCommand
 
Methods inherited from class org.ascentphase.suit.Panel
add, add, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, remove, setCommandListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardPopup

public KeyboardPopup(java.lang.String title,
                     int rows)
Initializes the KeyboardPopup with the given title and the given number of rows of text displayable.

Parameters:
title - the String title of the popup.
rows - the number of visible rows of text.

KeyboardPopup

public KeyboardPopup(java.lang.String title,
                     java.lang.String text,
                     int rows)
Initializes the KeyboardPopup with the given title, the given default text and the given number of rows of text displayable.

Parameters:
title - the String title of the popup.
text - the default text in the Field widget.
rows - the number of visible rows of text.
Method Detail

initialize

public void initialize()

getText

public java.lang.String getText()
Description copied from class: InputPopup
Returns the input the user specified in the Popup.

Specified by:
getText in class InputPopup
Returns:
the text input.

handleCommandEvent

protected void handleCommandEvent(Command evt)
Description copied from class: Panel
Notifies any listeners when a Command event occurs.

Overrides:
handleCommandEvent in class InputPopup
Parameters:
evt - the Command evt to pass to listeners.

Ascent Phase Corp.

Copyright © 2002 Ascent Phase Corp. All Rights Reserved.