Package com.luciad.beans
Class TLcdBeanManager
java.lang.Object
java.beans.PropertyEditorSupport
com.luciad.beans.TLcdBeanManager
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringformatRegisteredBean(Object aBean) Deprecated.This method is used internally to format a bean (i.e. associate a display name to it).Deprecated.This method will return theStringreturned by the getName method of theObjectset with the setValue method, or theString"<none>" if this value isnull.String[]getTags()Deprecated.Get tags that are the display names of all the registeredObject, which Class matches the Class of theObjectset with the setValue method of this PropertyEditor.static booleanisActive()Deprecated.Gets the propertyactive.static booleanisRegistered(Object aBean) Deprecated.Test if the givenObjecthas been already registered.static intDeprecated.Register aComponentthat would like to use thatTLcdBeanManageras PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation.static intregister(Object aBean, ILcdFormatter aFormatter) Deprecated.Register anObjectthat would like to use thatTLcdBeanManageras PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation.static ObjectretrieveBeanByName(String aName, Class aBeanClass) Deprecated.This method will return the first registeredObjectwhich getName method equals aName and which is an instance of aBeanClass, ornullif noObjecthas been found.static voidsetActive(boolean aActive) Deprecated.Sets the propertyactivetoaActive.voidDeprecated.Call retrieveBeanByName( text,getValue().getClass()), and call setValue if the returned value if notnull.Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
-
Constructor Details
-
TLcdBeanManager
public TLcdBeanManager()Deprecated.
-
-
Method Details
-
setActive
public static void setActive(boolean aActive) Deprecated.Sets the propertyactivetoaActive. If the property is set to false this avoids registeringComponentobjects. -
isActive
public static boolean isActive()Deprecated.Gets the propertyactive.- Returns:
- the property
active. If the property is returns false registeringComponentobjects is avoided.
-
register
Deprecated.Register aComponentthat would like to use thatTLcdBeanManageras PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation. -
register
Deprecated.Register anObjectthat would like to use thatTLcdBeanManageras PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation. -
isRegistered
Deprecated.Test if the givenObjecthas been already registered. -
retrieveBeanByName
Deprecated.This method will return the first registeredObjectwhich getName method equals aName and which is an instance of aBeanClass, ornullif noObjecthas been found. If aBeanClass isnull, this method returns the firstObjectfound that matches aName. -
getTags
Deprecated.Get tags that are the display names of all the registeredObject, which Class matches the Class of theObjectset with the setValue method of this PropertyEditor.- Specified by:
getTagsin interfacePropertyEditor- Overrides:
getTagsin classPropertyEditorSupport
-
formatRegisteredBean
Deprecated.This method is used internally to format a bean (i.e. associate a display name to it). By default it retrieves theILcdFormatterthat has been passed when aBean has been registered, and callsformat(aBean). This method can be redefined in order to modify this default behavior.- Parameters:
aBean- theObjectto format.
-
getAsText
Deprecated.This method will return theStringreturned by the getName method of theObjectset with the setValue method, or theString"<none>" if this value isnull.- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-
setAsText
Deprecated.Call retrieveBeanByName( text,getValue().getClass()), and call setValue if the returned value if notnull.- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-