Class TLcdPropertyTextField

All Implemented Interfaces:
FocusListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

@Deprecated public class TLcdPropertyTextField extends TextField implements KeyListener, FocusListener
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This 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.
See Also:
  • Constructor Details

    • TLcdPropertyTextField

      public TLcdPropertyTextField()
      Deprecated.
      Default constructor.
    • TLcdPropertyTextField

      public TLcdPropertyTextField(PropertyEditor aPropertyEditor)
      Deprecated.
      Constructor with a PropertyEditor to consider. aPropertyEditor must support the getAsText() and setAsText() methods.
  • Method Details

    • setEditor

      public void setEditor(PropertyEditor aPropertyEditor)
      Deprecated.
      Sets the PropertyEditor to consider. aPropertyEditor must support the getAsText() and setAsText() methods.
    • actionPerformed

      public void actionPerformed(ActionEvent aActionEvent)
      Deprecated.
    • setValue

      protected void setValue()
      Deprecated.
      Tries to set the value as a String. If an Exception occurs, the foreground is set to red, to indicate that the String value is not correct.
    • focusGained

      public void focusGained(FocusEvent e)
      Deprecated.
      Implements FocusListener.focusGained. The String in the TextField is selected.
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent e)
      Deprecated.
      Implements FocusListener.focusLost. The String in the TextField is unselected.
      Specified by:
      focusLost in interface FocusListener
    • keyReleased

      public void keyReleased(KeyEvent e)
      Deprecated.
      Implements KeyListener.keyReleased. Calls this.setValue() on KeyEvent.VK_ENTER or KeyEvent.VK_TAB; KeyEvent.VK_ESCAPE will cancel the editing.
      Specified by:
      keyReleased in interface KeyListener
    • keyPressed

      public void keyPressed(KeyEvent e)
      Deprecated.
      Implements KeyListener.keyPressed. No Action is performed here.
      Specified by:
      keyPressed in interface KeyListener
    • keyTyped

      public void keyTyped(KeyEvent e)
      Deprecated.
      Implements KeyListener.keyTyped. No Action is performed here.
      Specified by:
      keyTyped in interface KeyListener
    • getComponent

      public Component getComponent()
      Deprecated.
    • getCellEditorValue

      public Object getCellEditorValue()
      Deprecated.
    • isCellEditable

      public boolean isCellEditable(EventObject aEvent)
      Deprecated.
    • shouldSelectCell

      public boolean shouldSelectCell(EventObject aEvent)
      Deprecated.
    • stopCellEditing

      public boolean stopCellEditing()
      Deprecated.
    • cancelCellEditing

      public void cancelCellEditing()
      Deprecated.