Class TLcdPropertyCanvasSW

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

@Deprecated public class TLcdPropertyCanvasSW extends JLabel implements MouseListener, PropertyChangeListener
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This Component can be used to edit a property which PropertyEditor defines a custom editor (PropertyEditor.supportsCustomEditor). When clicking on this Canvas, a ILcdPropertyDialog that will contains the custom editor will be set visible.
See Also:
  • Constructor Details

    • TLcdPropertyCanvasSW

      public TLcdPropertyCanvasSW(PropertyEditor aPropertyEditor)
      Deprecated.
      Construct a TLcdPropertyCanvasSW with a PropertyEditor that supports custom editor.

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

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

    • TLcdPropertyCanvasSW

      public TLcdPropertyCanvasSW(PropertyEditor aPropertyEditor, Frame aParentFrame)
      Deprecated.
      Same as TLcdPropertyCanvasSW( PropertyEditor ) with a Frame to be used as parent Frame for the ILcdPropertyDialog.
  • Method Details

    • getPropertyEditor

      public PropertyEditor getPropertyEditor()
      Deprecated.
      Gets the PropertyEditor to be considered. aPropertyEditor must have a custom editor.
    • setPropertyEditor

      public void setPropertyEditor(PropertyEditor aPropertyEditor)
      Deprecated.
      Sets the PropertyEditor to be considered. aPropertyEditor must have a custom editor.
    • removeNotify

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

      public void propertyChange(PropertyChangeEvent aEvent)
      Deprecated.
      Repaints itself.
      Specified by:
      propertyChange in interface PropertyChangeListener
    • paintComponent

      public void paintComponent(Graphics g)
      Deprecated.
      Redefines Component.paint(Graphics).

      If the set PropertyEditor is paintable, the PropertyEditor.paint method will be called. If not the String returned by PropertyEditor.getAsText with drawn.

      Overrides:
      paintComponent in class JComponent
    • mouseReleased

      public void mouseReleased(MouseEvent evt)
      Deprecated.
      Makes a ILcdPropertyDialog visible with the set PropertyEditor.
      Specified by:
      mouseReleased in interface MouseListener
    • 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.