net.yura.mobile.gui.components
Class TextField
java.lang.Object
net.yura.mobile.gui.components.Component
net.yura.mobile.gui.components.TextComponent
net.yura.mobile.gui.components.TextField
- All Implemented Interfaces:
- javax.microedition.lcdui.CommandListener, ActionListener
public class TextField
- extends TextComponent
- Author:
- Yura Mamyrin
- See Also:
JTextField
Fields inherited from class net.yura.mobile.gui.components.TextComponent |
ANY, caretPosition, CONSTRAINT_MASK, DECIMAL, EMAILADDR, font, INITIAL_CAPS_SENTENCE, INITIAL_CAPS_WORD, MODE_123, MODE_abc, MODE_Abc, MODE_ABC, NON_PREDICTIVE, NUMERIC, padding, PASSWORD, PHONENUMBER, SENSITIVE, showCaret, text, tmpChar, UNEDITABLE, URL |
Fields inherited from class net.yura.mobile.gui.components.Component |
background, empty, FOCUS_GAINED, FOCUS_LOST, focusable, foreground, height, parent, posX, posY, preferredHeight, preferredWidth, state, theme, width |
Methods inherited from class net.yura.mobile.gui.components.TextComponent |
actionPerformed, animate, autoAccept, changedUpdate, closeNativeEditor, commandAction, focusLost, getCaretPosition, getConstraints, getDisplayString, getFont, getLength, getMaxSize, getText, getValue, openNativeEditor, processKeyEvent, searchStringCharOffset, setConstraints, setFont, setMaxSize, setMode, setText, setTitle, setValue, toString, updateUI |
Methods inherited from class net.yura.mobile.gui.components.Component |
add, add, add, addFocusListener, addImpl, clip, consumesMotionEvents, getBackground, getBorder, getCurrentState, getDesktopPane, getFocusListeners, getForeground, getHeight, getHeightWithBorder, getInsets, getName, getParent, getPreferredHeight, getPreferredWidth, getState, getToolTipLocationX, getToolTipLocationY, getToolTipText, getWidth, getWidthWithBorder, getWindow, getX, getXOnScreen, getXWithBorder, getY, getYOnScreen, getYWithBorder, insert, insert, isComponentVisible, isFocusable, isFocusOwner, isOpaque, isRectVisible, isShowing, isVisible, makeVisible, paint, paintBorder, processMultitouchEvent, removeFocusListener, removeParent, repaint, requestFocusInWindow, revalidate, scrollRectToVisible, scrollUpDown, setBackground, setBorder, setBounds, setBoundsWithBorder, setFocusable, setForeground, setLocation, setName, setPreferredSize, setSize, setState, setToolTipText, setupState, setVisible, transferFocus, validate, wait, workoutSize |
TextField
public TextField()
TextField
public TextField(int a)
addActionListener
public void addActionListener(ActionListener al)
- See Also:
JTextField.addActionListener
allowChar
public boolean allowChar(char keyCode)
- Overrides:
allowChar
in class TextComponent
focusGained
public void focusGained()
- Overrides:
focusGained
in class TextComponent
- See Also:
FocusListener.focusGained
getDefaultName
public String getDefaultName()
- Specified by:
getDefaultName
in class Component
paintComponent
public void paintComponent(Graphics2D g)
- Specified by:
paintComponent
in class Component
- See Also:
JComponent.paintComponent
processMouseEvent
public void processMouseEvent(int type,
int x,
int y,
KeyEvent keys)
- Overrides:
processMouseEvent
in class TextComponent
- See Also:
Component.processMouseEvent
setActionCommand
public void setActionCommand(String action)
- See Also:
JTextField.setActionCommand
setCaretPosition
public void setCaretPosition(int a)
- Overrides:
setCaretPosition
in class TextComponent
- Parameters:
a
- position in the text- See Also:
JTextComponent.setCaretPosition
workoutMinimumSize
public void workoutMinimumSize()
- Description copied from class:
Component
- This sets the width and height of this component
to the MINIMUM that is needed for this component
- Specified by:
workoutMinimumSize
in class Component
- See Also:
JComponent.getMinimumSize