Class TLcdPropertyCanvas

java.lang.Object
java.awt.Component
java.awt.Canvas
com.luciad.beans.awt.TLcdPropertyCanvas
All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

@Deprecated public class TLcdPropertyCanvas extends Canvas 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 Link icon

    • TLcdPropertyCanvas Link icon

      public TLcdPropertyCanvas(PropertyEditor aPropertyEditor)
      Deprecated.
      Construct a TLcdPropertyCanvas 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 TLcdPropertyCanvas will register itself as PropertyChangeListener to the given PropertyEditor, and repaint itself each a PropertyChangeEvent has been fire.

    • TLcdPropertyCanvas Link icon

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

    • getPropertyEditor Link icon

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

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

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

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

      public void paint(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:
      paint in class Canvas
    • mouseReleased Link icon

      public void mouseReleased(MouseEvent evt)
      Deprecated.
      Makes a ILcdPropertyDialog visible with the set PropertyEditor.
      Specified by:
      mouseReleased in interface MouseListener
    • mousePressed Link icon

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

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

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

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

      public Component getComponent()
      Deprecated.
    • getCellEditorValue Link icon

      public Object getCellEditorValue()
      Deprecated.
    • isCellEditable Link icon

      public boolean isCellEditable(EventObject aEvent)
      Deprecated.
    • shouldSelectCell Link icon

      public boolean shouldSelectCell(EventObject aEvent)
      Deprecated.
    • stopCellEditing Link icon

      public boolean stopCellEditing()
      Deprecated.
    • cancelCellEditing Link icon

      public void cancelCellEditing()
      Deprecated.