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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
formatRegisteredBean
(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 theString
returned by the getName method of theObject
set 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 theObject
set with the setValue method of this PropertyEditor.static boolean
isActive()
Deprecated.Gets the propertyactive
.static boolean
isRegistered
(Object aBean) Deprecated.Test if the givenObject
has been already registered.static int
Deprecated.Register aComponent
that would like to use thatTLcdBeanManager
as PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation.static int
register
(Object aBean, ILcdFormatter aFormatter) Deprecated.Register anObject
that would like to use thatTLcdBeanManager
as PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation.static Object
retrieveBeanByName
(String aName, Class aBeanClass) Deprecated.This method will return the first registeredObject
which getName method equals aName and which is an instance of aBeanClass, ornull
if noObject
has been found.static void
setActive
(boolean aActive) Deprecated.Sets the propertyactive
toaActive
.void
Deprecated.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, supportsCustomEditor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 propertyactive
toaActive
. If the property is set to false this avoids registeringComponent
objects. -
isActive
public static boolean isActive()Deprecated.Gets the propertyactive
.- Returns:
- the property
active
. If the property is returns false registeringComponent
objects is avoided.
-
register
Deprecated.Register aComponent
that would like to use thatTLcdBeanManager
as PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation. -
register
Deprecated.Register anObject
that would like to use thatTLcdBeanManager
as PropertyEditor, when editing the bean as a property in an IDE that does not support source code generation. -
isRegistered
Deprecated.Test if the givenObject
has been already registered. -
retrieveBeanByName
Deprecated.This method will return the first registeredObject
which getName method equals aName and which is an instance of aBeanClass, ornull
if noObject
has been found. If aBeanClass isnull
, this method returns the firstObject
found that matches aName. -
getTags
Deprecated.Get tags that are the display names of all the registeredObject
, which Class matches the Class of theObject
set with the setValue method of this PropertyEditor.- Specified by:
getTags
in interfacePropertyEditor
- Overrides:
getTags
in classPropertyEditorSupport
-
formatRegisteredBean
Deprecated.This method is used internally to format a bean (i.e. associate a display name to it). By default it retrieves theILcdFormatter
that 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
- theObject
to format.
-
getAsText
Deprecated.This method will return theString
returned by the getName method of theObject
set with the setValue method, or theString
"<none>" if this value isnull
.- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-
setAsText
Deprecated.Call retrieveBeanByName( text,getValue().getClass()
), and call setValue if the returned value if notnull
.- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-