Class TLcdPropertyTextFieldSW

All Implemented Interfaces:
ActionListener, FocusListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditor, Scrollable, SwingConstants

@Deprecated public class TLcdPropertyTextFieldSW extends JTextField implements CellEditor, KeyListener, FocusListener, ActionListener
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 Link icon

    • TLcdPropertyTextFieldSW Link icon

      public TLcdPropertyTextFieldSW()
      Deprecated.
      Default constructor.
    • TLcdPropertyTextFieldSW Link icon

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

    • setClassTraceOn Link icon

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setTraceOn Link icon

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn Link icon

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setEditor Link icon

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

      public void actionPerformed(ActionEvent aActionEvent)
      Deprecated.
      Specified by:
      actionPerformed in interface ActionListener
    • setValue Link icon

      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 Link icon

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

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

      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 Link icon

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

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

      public Component getComponent()
      Deprecated.
    • getCellEditorValue Link icon

      public Object getCellEditorValue()
      Deprecated.
      Specified by:
      getCellEditorValue in interface CellEditor
    • isCellEditable Link icon

      public boolean isCellEditable(EventObject aEvent)
      Deprecated.
      Specified by:
      isCellEditable in interface CellEditor
    • shouldSelectCell Link icon

      public boolean shouldSelectCell(EventObject aEvent)
      Deprecated.
      Specified by:
      shouldSelectCell in interface CellEditor
    • stopCellEditing Link icon

      public boolean stopCellEditing()
      Deprecated.
      Specified by:
      stopCellEditing in interface CellEditor
    • cancelCellEditing Link icon

      public void cancelCellEditing()
      Deprecated.
      Specified by:
      cancelCellEditing in interface CellEditor
    • addCellEditorListener Link icon

      public void addCellEditorListener(CellEditorListener l)
      Deprecated.
      Specified by:
      addCellEditorListener in interface CellEditor
    • removeCellEditorListener Link icon

      public void removeCellEditorListener(CellEditorListener l)
      Deprecated.
      Specified by:
      removeCellEditorListener in interface CellEditor