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

    • TLcdPropertyTextFieldSW

      public TLcdPropertyTextFieldSW()
      Deprecated.
      Default constructor.
    • TLcdPropertyTextFieldSW

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

    • setClassTraceOn

      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

      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

      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

      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.
      Specified by:
      actionPerformed in interface ActionListener
    • 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.
      Specified by:
      getCellEditorValue in interface CellEditor
    • isCellEditable

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

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

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

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

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

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