org.netbeans.microedition.svg.input
Class NumPadInputHandler

java.lang.Object
  extended by org.netbeans.microedition.svg.input.InputHandler
      extended by org.netbeans.microedition.svg.input.TextInputHandler
          extended by org.netbeans.microedition.svg.input.NumPadInputHandler
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class NumPadInputHandler
extends TextInputHandler


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.microedition.svg.input.InputHandler
InputHandler.CaretVisibilityListener
 
Field Summary
 
Fields inherited from class org.netbeans.microedition.svg.input.InputHandler
BACKSPACE, BUTTON_INPUT_HANDLER, caretListeners, DOWN, FIRE, LEFT, prevVisibility, RIGHT, UP
 
Constructor Summary
NumPadInputHandler(javax.microedition.lcdui.Display display)
           
 
Method Summary
protected  int getCaretPosition(SVGComponent comp)
           
protected  java.lang.String getText(SVGComponent comp)
           
 boolean handleKeyPress(SVGComponent comp, int nKeyCode)
           
protected  void setCaretPosition(SVGComponent comp, int position)
           
protected  void setText(SVGComponent comp, java.lang.String text)
           
 
Methods inherited from class org.netbeans.microedition.svg.input.TextInputHandler
commandAction, getDisplay, handleKeyRelease, showTextBox
 
Methods inherited from class org.netbeans.microedition.svg.input.InputHandler
addVisibilityListener, fireCaretVisibilityChanged, removeVisibilityListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumPadInputHandler

public NumPadInputHandler(javax.microedition.lcdui.Display display)
Method Detail

handleKeyPress

public boolean handleKeyPress(SVGComponent comp,
                              int nKeyCode)
Overrides:
handleKeyPress in class TextInputHandler

setCaretPosition

protected void setCaretPosition(SVGComponent comp,
                                int position)

setText

protected void setText(SVGComponent comp,
                       java.lang.String text)

getCaretPosition

protected int getCaretPosition(SVGComponent comp)

getText

protected java.lang.String getText(SVGComponent comp)