@Deprecated public class TLcdBeanManager extends PropertyEditorSupport implements 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 String |
formatRegisteredBean(Object aBean)
Deprecated.
This method is used internally to format a bean
(i.e. associate a display name to it).
|
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 . |
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(Object aBean)
Deprecated.
Test if the given
Object has been already registered. |
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. |
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. |
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. |
static void |
setActive(boolean aActive)
Deprecated.
Sets the property
active to aActive . |
void |
setAsText(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getValue, isPaintable, paintValue, removePropertyChangeListener, 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(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(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(Object aBean)
Object
has been already registered.public static Object retrieveBeanByName(String aName, 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 String[] getTags()
Object
, which
Class matches the Class of the Object
set with the setValue method of this
PropertyEditor.getTags
in interface PropertyEditor
getTags
in class PropertyEditorSupport
protected static String formatRegisteredBean(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 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 PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String text) throws IllegalArgumentException
getValue().getClass()
), and
call setValue if the returned value if not null
.setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException