@Deprecated public class TLcdPropertyTextField extends TextField implements KeyListener, FocusListener
TextField
can be used to edit a property whose PropertyEditor
supports
editing with a String, i.e. when the getAsText()
and setAsText()
methods of
the PropertyEditor
are supported.TextField.AccessibleAWTTextField
TextComponent.AccessibleAWTTextComponent
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
textListener
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcdPropertyTextField()
Deprecated.
Default constructor.
|
TLcdPropertyTextField(PropertyEditor aPropertyEditor)
Deprecated.
Constructor with a
PropertyEditor to consider. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent aActionEvent)
Deprecated.
|
void |
cancelCellEditing()
Deprecated.
|
void |
focusGained(FocusEvent e)
Deprecated.
Implements FocusListener.focusGained.
|
void |
focusLost(FocusEvent e)
Deprecated.
Implements FocusListener.focusLost.
|
Object |
getCellEditorValue()
Deprecated.
|
Component |
getComponent()
Deprecated.
|
boolean |
isCellEditable(EventObject aEvent)
Deprecated.
|
void |
keyPressed(KeyEvent e)
Deprecated.
Implements KeyListener.keyPressed.
|
void |
keyReleased(KeyEvent e)
Deprecated.
Implements KeyListener.keyReleased.
|
void |
keyTyped(KeyEvent e)
Deprecated.
Implements KeyListener.keyTyped.
|
void |
setEditor(PropertyEditor aPropertyEditor)
Deprecated.
Sets the
PropertyEditor to consider. |
protected void |
setValue()
Deprecated.
Tries to set the value as a String.
|
boolean |
shouldSelectCell(EventObject aEvent)
Deprecated.
|
boolean |
stopCellEditing()
Deprecated.
|
addActionListener, addNotify, echoCharIsSet, getAccessibleContext, getActionListeners, getColumns, getEchoChar, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, minimumSize, minimumSize, paramString, preferredSize, preferredSize, processActionEvent, processEvent, removeActionListener, setColumns, setEchoChar, setEchoCharacter, setText
addTextListener, enableInputMethods, getBackground, getCaretPosition, getInputMethodRequests, getSelectedText, getSelectionEnd, getSelectionStart, getText, getTextListeners, isEditable, processTextEvent, 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, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, firePropertyChange, firePropertyChange, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, 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 TLcdPropertyTextField()
public TLcdPropertyTextField(PropertyEditor aPropertyEditor)
PropertyEditor
to consider. aPropertyEditor
must
support the getAsText()
and setAsText()
methods.public void setEditor(PropertyEditor aPropertyEditor)
PropertyEditor
to consider. aPropertyEditor
must
support the getAsText()
and setAsText()
methods.public void actionPerformed(ActionEvent aActionEvent)
protected void setValue()
Exception
occurs, the foreground
is set to red, to indicate that the String
value is not correct.public void focusGained(FocusEvent e)
String
in the TextField
is
selected.focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
String
in the TextField
is
unselected.focusLost
in interface FocusListener
public void keyReleased(KeyEvent e)
this.setValue()
on KeyEvent.VK_ENTER
or KeyEvent.VK_TAB
;
KeyEvent.VK_ESCAPE
will cancel the editing.keyReleased
in interface KeyListener
public void keyPressed(KeyEvent e)
Action
is performed here.keyPressed
in interface KeyListener
public void keyTyped(KeyEvent e)
Action
is performed here.keyTyped
in interface KeyListener
public Component getComponent()
public Object getCellEditorValue()
public boolean isCellEditable(EventObject aEvent)
public boolean shouldSelectCell(EventObject aEvent)
public boolean stopCellEditing()
public void cancelCellEditing()