com.incrediblesoft.redjey
Class TextField

java.lang.Object
  extended by com.incrediblesoft.redjey.Component
      extended by com.incrediblesoft.redjey.TextComponent
          extended by com.incrediblesoft.redjey.TextField
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class TextField
extends TextComponent
implements javax.microedition.lcdui.CommandListener


Field Summary
 
Fields inherited from class com.incrediblesoft.redjey.Component
BOTTOM_LAYOUT, DISABLED, H_EXPAND, HCENTER_LAYOUT, HIGHLIGHTED, LEFT_LAYOUT, NORMAL, PRESSED, RIGHT_LAYOUT, TOP_LAYOUT, TOTAL_STATES, V_EXPAND, VCENTER_LAYOUT
 
Constructor Summary
TextField(java.lang.String title, java.lang.String text, int maxSize, int constraint)
           
TextField(java.lang.String title, java.lang.String text, int maxSize, int constraint, java.lang.String styleSetName)
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
           
 java.lang.String getName()
          This method is used to retrieve the appropriate style set from a hashtable of styles
 boolean isFocusable()
           
 void paintComponent(javax.microedition.lcdui.Graphics g)
          Paints component.
 void processMouseEvent(MouseEvent event)
          Process mouse related events
 void setText(java.lang.String text)
          Sets text
 java.lang.String toString()
           
 
Methods inherited from class com.incrediblesoft.redjey.TextComponent
getText
 
Methods inherited from class com.incrediblesoft.redjey.Component
addActionListener, addMouseListener, dispatchEvent, fireActionEvent, getAbsoluteRect, getAbsoluteX, getAbsoluteY, getAlignment, getBounds, getClientSize, getContentAlignment, getCurrentStyle, getHeight, getParent, getPreferredSize, getState, getStyle, getStyleClass, getWidth, getX, getY, invalidate, invalidateTree, isFocused, isHighlightable, isVisible, keyPressed, keyReleased, paint, removeActonListener, removeMouseListener, repaint, repaint, setAlignment, setBounds, setContentAlignment, setLocation, setPreferredSize, setSize, setSize, setState, setStyle, setStyle, setStyleClass, setTag, setVisible, setX, setY, tick, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextField

public TextField(java.lang.String title,
                 java.lang.String text,
                 int maxSize,
                 int constraint)

TextField

public TextField(java.lang.String title,
                 java.lang.String text,
                 int maxSize,
                 int constraint,
                 java.lang.String styleSetName)
Method Detail

getName

public java.lang.String getName()
Description copied from class: Component
This method is used to retrieve the appropriate style set from a hashtable of styles

Specified by:
getName in class Component
Returns:
Name of component

isFocusable

public boolean isFocusable()

processMouseEvent

public void processMouseEvent(MouseEvent event)
Description copied from class: Component
Process mouse related events

Parameters:
event - Event

commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable displayable)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

setText

public void setText(java.lang.String text)
Description copied from class: TextComponent
Sets text

Overrides:
setText in class TextComponent
Parameters:
text - Text to set

paintComponent

public void paintComponent(javax.microedition.lcdui.Graphics g)
Description copied from class: Component
Paints component. All subclasses must override this method

Parameters:
g - graphics

toString

public java.lang.String toString()
Overrides:
toString in class TextComponent