Class TLcdBeanManager

java.lang.Object
java.beans.PropertyEditorSupport
com.luciad.beans.TLcdBeanManager
All Implemented Interfaces:
PropertyEditor

@Deprecated public class TLcdBeanManager extends PropertyEditorSupport implements PropertyEditor
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This is a PropertyEditor that will be used for any registered Class (register( Object aBean, Class aBeansClass )) when using at design time an IDE (Integrated Development Environment) that does not support source code generation, such as Sun BDK (Beans Development Kit) or Sun JavaStudio.
  • Constructor Details

    • TLcdBeanManager

      public TLcdBeanManager()
      Deprecated.
  • Method Details

    • setActive

      public static void setActive(boolean aActive)
      Deprecated.
      Sets the property active to aActive. If the property is set to false this avoids registering Component objects.
    • isActive

      public static boolean isActive()
      Deprecated.
      Gets the property active.
      Returns:
      the property active. If the property is returns false registering Component objects is avoided.
    • register

      public static int register(Component aBean)
      Deprecated.
      Register a Component that would like to use that TLcdBeanManager as PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation.
    • register

      public static int register(Object aBean, ILcdFormatter aFormatter)
      Deprecated.
      Register an Object that would like to use that TLcdBeanManager as PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation.
    • isRegistered

      public static boolean isRegistered(Object aBean)
      Deprecated.
      Test if the given Object has been already registered.
    • retrieveBeanByName

      public static Object retrieveBeanByName(String aName, Class aBeanClass)
      Deprecated.
      This method will return the first registered Object which getName method equals aName and which is an instance of aBeanClass, or null if no Object has been found. If aBeanClass is null, this method returns the first Object found that matches aName.
    • getTags

      public String[] getTags()
      Deprecated.
      Get tags that are the display names of all the registered Object, which Class matches the Class of the Object set with the setValue method of this PropertyEditor.
      Specified by:
      getTags in interface PropertyEditor
      Overrides:
      getTags in class PropertyEditorSupport
    • formatRegisteredBean

      protected static String formatRegisteredBean(Object aBean)
      Deprecated.
      This method is used internally to format a bean (i.e. associate a display name to it). By default it retrieves the ILcdFormatter that has been passed when aBean has been registered, and calls format(aBean). This method can be redefined in order to modify this default behavior.
      Parameters:
      aBean - the Object to format.
    • getAsText

      public String getAsText()
      Deprecated.
      This method will return the String returned by the getName method of the Object set with the setValue method, or the String "<none>" if this value is null.
      Specified by:
      getAsText in interface PropertyEditor
      Overrides:
      getAsText in class PropertyEditorSupport
    • setAsText

      public void setAsText(String text) throws IllegalArgumentException
      Deprecated.
      Call retrieveBeanByName( text, getValue().getClass() ), and call setValue if the returned value if not null.
      Specified by:
      setAsText in interface PropertyEditor
      Overrides:
      setAsText in class PropertyEditorSupport
      Throws:
      IllegalArgumentException