Class TLcdBeanEditorPopupMenuAWT

All Implemented Interfaces:
MenuContainer, Serializable, Accessible

@Deprecated public class TLcdBeanEditorPopupMenuAWT extends TLcdPopupMenu
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This is a support class for editing the properties of a Bean with a PopupMenu.

Using an instance of TLcdBeanGUIFactory, the setObject method will construct the Menu by creating one MenuItem per editable property.

See Also:
  • Constructor Details

    • TLcdBeanEditorPopupMenuAWT

      public TLcdBeanEditorPopupMenuAWT()
      Deprecated.
      Default constructor
    • TLcdBeanEditorPopupMenuAWT

      public TLcdBeanEditorPopupMenuAWT(Object aObject)
      Deprecated.
      Constructs the PopupMenu taking into account the properties of the given Object
  • 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.
    • getClassTraceOn

      public static boolean getClassTraceOn()
      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.
    • 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.
      Overrides:
      setTraceOn in class TLcdPopupMenu
      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.
    • getTraceOn

      public boolean getTraceOn()
      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.
    • show

      public void show(Object aBeanTarget, Component origin, int aX, int aY)
      Deprecated.
      Edit aBeanTarget on this ILcdPopupMenu that shall popup on the given Component at aX and aY.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
      Deprecated.
      Adds a PropertyChangeListener to this TLcdBeanEditorPopupMenuAWT.
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
      Deprecated.
      Removes a PropertyChangeListener from this TLcdBeanEditorPopupMenuAWT.
    • setObject

      public void setObject(Object aObject)
      Deprecated.
      Builds the PopupMenu taking into account aObject as a Bean to edit. If the bean has a Customizer, the PopupMenu will contains a single MenuItem with as a label the String returned by getMenuItemLabelCustomizer
    • builtAsPropertySheet

      protected void builtAsPropertySheet(Object aObject)
      Deprecated.
      Builds the PopupMenu taking into account aObject as a Bean to edit. This method will call builtAsPropertySheetSFCT() with this as a Menu.
    • builtAsPropertySheetSFCT

      public static void builtAsPropertySheetSFCT(Object aObject, TLcdBeanGUIFactory aBeanGUIFactory, Menu aMenuSCFT)
      Deprecated.
      Builds the given Menu taking into account aObject as a Bean to edit, and aBeanGUIFactory to find editable properties.