@Deprecated
public class TLcdBeanManager
extends java.beans.PropertyEditorSupport
implements java.beans.PropertyEditor
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 and Description |
---|
TLcdBeanManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
formatRegisteredBean(java.lang.Object aBean)
Deprecated.
This method is used internally to format a bean
(i.e. associate a display name to it).
|
java.lang.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 . |
java.lang.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. |
static boolean |
isActive()
Deprecated.
Gets the property
active . |
static boolean |
isRegistered(java.lang.Object aBean)
Deprecated.
Test if the given
Object has been already registered. |
static int |
register(java.awt.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. |
static int |
register(java.lang.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. |
static java.lang.Object |
retrieveBeanByName(java.lang.String aName,
java.lang.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. |
static void |
setActive(boolean aActive)
Deprecated.
Sets the property
active to aActive . |
void |
setAsText(java.lang.String text)
Deprecated.
Call retrieveBeanByName( text,
getValue().getClass() ), and
call setValue if the returned value if not null . |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public static void setActive(boolean aActive)
active
to aActive
.
If the property is set to false this avoids registering
Component
objects.public static boolean isActive()
active
.active
.
If the property is returns false registering
Component
objects is avoided.public static int register(java.awt.Component aBean)
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.public static int register(java.lang.Object aBean, ILcdFormatter aFormatter)
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.public static boolean isRegistered(java.lang.Object aBean)
Object
has been already registered.public static java.lang.Object retrieveBeanByName(java.lang.String aName, java.lang.Class aBeanClass)
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.public java.lang.String[] getTags()
Object
, which
Class matches the Class of the Object
set with the setValue method of this
PropertyEditor.getTags
in interface java.beans.PropertyEditor
getTags
in class java.beans.PropertyEditorSupport
protected static java.lang.String formatRegisteredBean(java.lang.Object aBean)
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.aBean
- the Object
to format.public java.lang.String getAsText()
String
returned by the getName method of the
Object
set with the setValue method, or the String
"<none>"
if this value is null
.getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
getValue().getClass()
), and
call setValue if the returned value if not null
.setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException