public abstract class IosTextField
extends java.awt.TextField
implements java.awt.event.KeyListener, java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.TextListener
Modifier and Type | Field and Description |
---|---|
static boolean |
defaultAutoSelection
Default for auto-selection-handling.
|
static boolean |
fastSetText
STATIC: Faster setText-Handling - if true, the Text is only set, if it differs from the current value.
|
static boolean |
restoreCaretPosition |
static boolean |
restoreCaretTested |
Constructor and Description |
---|
IosTextField()
Constructor.
|
IosTextField(int cols)
Constructor.
|
IosTextField(int cols,
java.lang.String _charSet)
Constructor defining also the Charset.
|
IosTextField(int cols,
java.lang.String _charSet,
boolean _autoFormat,
boolean _keepFocus)
Constructor defining the charset, auto-formating and illegal-value-focus-keeping.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Add an ActionListener
|
void |
focusGained(java.awt.event.FocusEvent evt)
Implements FocusListener
Invoked when the component gains the keyboard focus.
|
void |
focusLost(java.awt.event.FocusEvent evt)
Implements FocusListener
Invoked when a component loses the keyboard focus.
|
boolean |
formatValue()
Request-Method for formating the Data (only for redefinition by inheritances).
|
java.lang.String |
getCharSet()
Get the "special" character set.
|
java.lang.String |
getFormatedText()
Get the text after formating (primary for internal use at inheritances).
|
java.lang.String |
getInfoText()
Implements InfoTopic.
|
java.lang.String |
getNullText()
Gets the text.
|
java.lang.String |
getText()
Overloaded, calls syncGetText().
|
boolean |
isDisableLocked()
Check, if the field is locked disabled.
|
void |
keyPressed(java.awt.event.KeyEvent evt)
Implements KeyListener.
|
void |
keyReleased(java.awt.event.KeyEvent evt)
Implements KeyListener.
|
void |
keyTyped(java.awt.event.KeyEvent evt)
Implements KeyListener.
|
void |
lockDisable(boolean disable)
Disable the field and lock it against any setEnable().
|
IosTextField |
manuallyHandle(java.lang.String _keys,
java.lang.String _replace)
Define the Keys to be handled manually
|
void |
mouseClicked(java.awt.event.MouseEvent evt)
Implements MouseListener
Invoked when the mouse has been clicked on a component.
|
void |
mouseEntered(java.awt.event.MouseEvent evt)
Implements MouseListener
Invoked when the mouse enters a component.
|
void |
mouseExited(java.awt.event.MouseEvent evt)
Implements MouseListener
Invoked when the mouse exits a component.
|
void |
mousePressed(java.awt.event.MouseEvent evt)
Implements MouseListener
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent evt)
Implements MouseListener
Invoked when a mouse button has been released on a component.
|
void |
setAutoFormat(boolean _autoFormat)
Set the autoformat-mode of this field.
|
void |
setAutoSelection(boolean _autoSelection)
Enable/disable the Auto-Selection-Mode.
|
void |
setCharSet(java.lang.String s)
Set a "special" character set.
|
void |
setEnabled(boolean en)
setEnabled() protected with the disable-lock.
|
void |
setInfoText(java.lang.String text)
Implements InfoTopic.
|
void |
setKeepFocusOnIllegalValue(boolean _keepFocus)
Defines, if to keep the Focus on illegal Values (only on active AutoFormat).
|
void |
setText(java.lang.String text)
Sets the text.
|
java.lang.String |
syncGetText()
To solve problem with blocking peers (Bug in Motif/JDK?).
|
void |
textValueChanged(java.awt.event.TextEvent e)
Implements Text-Listener.
|
void |
unlockDisabled()
Unlock a the lock on the disable of the field (does not directly enable the field, but realows enabling).
|
addNotify, echoCharIsSet, getAccessibleContext, getActionListeners, getColumns, getEchoChar, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, minimumSize, minimumSize, preferredSize, preferredSize, removeActionListener, setColumns, setEchoChar, setEchoCharacter
addTextListener, enableInputMethods, getBackground, getCaretPosition, getInputMethodRequests, getSelectedText, getSelectionEnd, getSelectionStart, getTextListeners, isEditable, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static boolean fastSetText
public static boolean defaultAutoSelection
public static boolean restoreCaretTested
public static boolean restoreCaretPosition
public IosTextField()
public IosTextField(int cols)
public IosTextField(int cols, java.lang.String _charSet)
public IosTextField(int cols, java.lang.String _charSet, boolean _autoFormat, boolean _keepFocus)
public void addActionListener(java.awt.event.ActionListener l)
addActionListener
in class java.awt.TextField
public void lockDisable(boolean disable)
public void unlockDisabled()
public boolean isDisableLocked()
public void setEnabled(boolean en)
setEnabled
in class java.awt.Component
public void setText(java.lang.String text)
setText
in class java.awt.TextField
public java.lang.String getText()
getText
in class java.awt.TextComponent
syncGetText()
public java.lang.String syncGetText()
public java.lang.String getNullText()
public java.lang.String getFormatedText()
public boolean formatValue()
public void setCharSet(java.lang.String s)
s
- A string with valid characters.#keyTyped()
public java.lang.String getCharSet()
public void setInfoText(java.lang.String text)
public java.lang.String getInfoText()
public void setAutoSelection(boolean _autoSelection)
public void setAutoFormat(boolean _autoFormat)
public void setKeepFocusOnIllegalValue(boolean _keepFocus)
public IosTextField manuallyHandle(java.lang.String _keys, java.lang.String _replace)
public void focusGained(java.awt.event.FocusEvent evt)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent evt)
focusLost
in interface java.awt.event.FocusListener
public void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent evt)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent evt)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased
in interface java.awt.event.MouseListener
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
public void textValueChanged(java.awt.event.TextEvent e)
textValueChanged
in interface java.awt.event.TextListener