Class TLcdPropertyColorSW

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

@Deprecated public class TLcdPropertyColorSW extends JLabel implements MouseListener
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This is a Component to edit a Color property through its PropertyEditor.
See Also:
  • Constructor Details

    • TLcdPropertyColorSW

      public TLcdPropertyColorSW(Frame frame, PropertyEditor pe)
      Deprecated.
      Constructs a TLcdPropertyColorSW with a PropertyEditor which getValue method returns an instance of the Color class.

      The given Frame will be used as parent Frame for the PropertyDialog

      This TLcdPropertyCanvas will register as PropertyChangeListener to the given PropertyEditor, and repaint itself each a PropertyChangeEvent has been fire.

    • TLcdPropertyColorSW

      public TLcdPropertyColorSW(PropertyEditor pe)
      Deprecated.
      Constructs a TLcdPropertyColorSW with a PropertyEditor which getValue method returns an instance of the Color class.

      The parent Frame for the PropertyDialog will be found using TLcdAWTUtil.findParentFrame(Object) with the MouseEvent received on the MouseReleased.

      This TLcdPropertyCanvas will register as PropertyChangeListener to the given PropertyEditor, and repaint itself each a PropertyChangeEvent has been fire.

  • 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.
    • addColor

      public static void addColor(Color aColor)
      Deprecated.
    • setColors

      public static void setColors(Color[] aColorArray)
      Deprecated.
    • getColors

      public static Color[] getColors()
      Deprecated.
    • setDialogTitle

      public void setDialogTitle(String aTitle)
      Deprecated.
    • getDialogTitle

      public String getDialogTitle()
      Deprecated.
    • getPropertyEditor

      public PropertyEditor getPropertyEditor()
      Deprecated.
      Get the PropertyEditor to be considered. aPropertyEditor.getValue() must return an instance of Color.
    • setPropertyEditor

      public void setPropertyEditor(PropertyEditor aPropertyEditor)
      Deprecated.
      Sets the PropertyEditor to be considered. aPropertyEditor.getValue() must return an instance of Color.
    • removeNotify

      public void removeNotify()
      Deprecated.
      Redefines removeNotify in order to unregister as PropertyChangeListener from the set PropertyEditor.
      Overrides:
      removeNotify in class JComponent
    • paintComponent

      public void paintComponent(Graphics g)
      Deprecated.
      Overrides:
      paintComponent in class JComponent
    • mouseReleased

      public void mouseReleased(MouseEvent evt)
      Deprecated.
      Opens a Window with a choice among default Colors. This method can be redefined with other behavior.
      Specified by:
      mouseReleased in interface MouseListener
    • mouseReleasedOld

      public void mouseReleasedOld(MouseEvent evt)
      Deprecated.
    • mousePressed

      public void mousePressed(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mousePressed. No Action is performed here.
      Specified by:
      mousePressed in interface MouseListener
    • mouseClicked

      public void mouseClicked(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mouseClicked. No Action is performed here.
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mouseEntered. No Action is performed here.
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mouseExited. No Action is performed here.
      Specified by:
      mouseExited in interface MouseListener
    • 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.