Class TLcdMultiBeanEditorPanel

java.lang.Object
com.luciad.beans.awt.TLcdMultiBeanEditorPanel
All Implemented Interfaces:
ItemSelectable
Direct Known Subclasses:
TLcdGXYPainterProviderCustomizer, TLcdProjectionCustomEditor

@Deprecated public class TLcdMultiBeanEditorPanel extends Object implements ItemSelectable
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This Panel allows to select one among several registered beans from a Choice, and edit its properties in a sub-Panel, either using the bean Customizer if it has one, or a TLcdPropertySheet.

The method register(String,Object) allows to register a bean in the Choice list using the given String. The method register(Object) registers the given bean using the displayName property of its property descriptor.

See Also:
  • Constructor Details

    • TLcdMultiBeanEditorPanel

      public TLcdMultiBeanEditorPanel()
      Deprecated.
      Default constructor.
    • TLcdMultiBeanEditorPanel

      public TLcdMultiBeanEditorPanel(String aLabel)
      Deprecated.
      Constructor with a String to display next to the bean choice.
  • 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.
    • getComponent

      public Component getComponent()
      Deprecated.
    • isTopContainerVisible

      public boolean isTopContainerVisible()
      Deprecated.
    • setTopContainerVisible

      public void setTopContainerVisible(boolean aTopContainerVisible)
      Deprecated.
    • isVisible

      public boolean isVisible()
      Deprecated.
    • setVisible

      public void setVisible(boolean aVisible)
      Deprecated.
    • addObject

      public void addObject(Object aObject)
      Deprecated.
      Add a bean in the Choice. The String used will be the displayName property of its property descriptor.
    • addObject

      public void addObject(String aLabel, Object aObject)
      Deprecated.
      Add a bean in the Choice using the given String.
    • getCurrentEditedObject

      public Object getCurrentEditedObject()
      Deprecated.
    • replaceObjectByClass

      public void replaceObjectByClass(Object aObject)
      Deprecated.
      This method will replace by aObject, all the registered instances which Class is the same as aObject.getClass() (using =).
    • updateChoice

      protected void updateChoice()
      Deprecated.
      Defines how to update the Choice.
    • setWindowToPack

      public void setWindowToPack(Window aWindowToPack)
      Deprecated.
      Sets a Window to be packed each time a new bean has been selected in the Choice.
    • getWindowToPack

      public Window getWindowToPack()
      Deprecated.
      Gets the Window to be packed each time a new bean has been selected in the Choice, or null if none has been set.
    • isAutoUpdateFromPropertyEditors

      public boolean isAutoUpdateFromPropertyEditors()
      Deprecated.
      Tests if the AutoUpdateFromPropertyEditors property is true or not.
      See Also:
    • setAutoUpdateFromPropertyEditors

      public void setAutoUpdateFromPropertyEditors(boolean aBoolean)
      Deprecated.
      Only valid when the selected bean has no Customizer and is therefore edited with an instance of ILcdPropertySheet.

      If true, the property values will be automatically set to the selected bean each time one of its property value (copy) has been changed by the corresponding PropertyEditor (the PropertyEditor fires then a PropertyChangeEvent).

      See Also:
    • fireItemSelectedEvents

      protected void fireItemSelectedEvents()
      Deprecated.
      Fires an ItemEvent to all registered ItemListener with the current selected bean.
    • editSelectedBean

      public void editSelectedBean()
      Deprecated.
      Defines how to edit the bean which name is currently selected in the Choice. Either its Customizer is used, if the bean has defined one, or a ILcdPropertySheet.
      See Also:
    • isButtonPanelVisible

      public boolean isButtonPanelVisible()
      Deprecated.
      Tests if the OK, Apply, Cancel Button Panel is currently visible.
    • setButtonPanelVisible

      public void setButtonPanelVisible(boolean aButtonPanelVisible)
      Deprecated.
      Asks the OK, Apply, Cancel Button Panel to be visible or not.
    • getSelectedObjects

      public Object[] getSelectedObjects()
      Deprecated.
      Returns the selected items or null if no items are selected.
      Specified by:
      getSelectedObjects in interface ItemSelectable
    • addItemListener

      public void addItemListener(ItemListener aListener)
      Deprecated.
      Adds a listener to receive item events when the state of an item changes.
      Specified by:
      addItemListener in interface ItemSelectable
      Parameters:
      aListener - the listener to receive events.
    • removeItemListener

      public void removeItemListener(ItemListener aListener)
      Deprecated.
      Removes an item listener.
      Specified by:
      removeItemListener in interface ItemSelectable
      Parameters:
      aListener - the listener being removed.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener aListener)
      Deprecated.
      Registers a listener for the PropertyChange event.
      Parameters:
      aListener - an object to be invoked when a PropertyChange event is fired.
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener aListener)
      Deprecated.
      Removes a listener for the PropertyChange event.
      Parameters:
      aListener - the PropertyChange listener to be removed.