@Deprecated public class TLcdBeanGUIFactory extends Object implementsILcdBeanEditor, Serializable
After calling that method, the PropertyEditors and PropertyDescriptors are available, as well as Components that are each capable of editing one property taking a corresponding PropertyEditor into account.
If its AutoUpdateFromPropertyEditors property is true
, a instance of
TLcdBeanGUIFactory
will automatically update the bean with the values of its
properties stored in the corresponding PropertyEditor
(PropertyEditor.getValue()). This update will be done each
time one of the PropertyEditor fires a PropertyChangeEvent.
Note that only the values that have been changed by their corresponding
PropertyEditor will be set (the test will be done using Object
.equals()). If
the AutoUpdateFromPropertyEditors property is not set, the
update of the object properties from the corresponding PropertyEditor can
be done manually by calling updateObjectFromPropertyEditors().
in the PropertyEditors.
Modifier and Type | Field and Description |
---|---|
static ILcdPropertyEditorFinder |
defaultPropertyEditorFinder
Deprecated.
|
Constructor and Description |
---|
TLcdBeanGUIFactory()
Deprecated.
|
TLcdBeanGUIFactory(Object aObject)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
Deprecated.
|
static Component |
createPropertyEditorComponent(PropertyEditor aPropertyEditor,
ILcdBeanEditor aBeanEditor)
Deprecated.
|
void |
filterNonValidPropertyEditors()
Deprecated.
This method will filter the null PropertyEditors, Labels, and Components
generated by the setObject.
|
static PropertyEditor |
findPropertyEditor(Object aObject,
Object aPropertyValue,
PropertyDescriptor aPropertyDescriptor)
Deprecated.
|
static PropertyEditor |
findPropertyEditor(Object aBean,
String aPropertyDisplayName)
Deprecated.
Try to find a PropertyEditor for the property named aPropertyDisplayName in the
Object aBean. |
protected void |
firePropertyChangeEvent(PropertyChangeEvent aPropertyChangeEvent)
Deprecated.
|
BeanDescriptor |
getBeanDescriptor()
Deprecated.
|
static Class |
getClassCustomizer(Object aBean)
Deprecated.
Look if the given bean has a Customizer or not.
|
Component[] |
getComponents()
Deprecated.
|
Customizer |
getCustomizer()
Deprecated.
Try to get the Customizer of the Bean set with the setObject method
|
static Customizer |
getCustomizer(Object aBean)
Deprecated.
Look if the given bean has a Customizer or not.
|
static String |
getDisplayName(Object aBean)
Deprecated.
Try to get the display name of the given Bean
|
Object |
getObject()
Deprecated.
|
PropertyDescriptor[] |
getPropertyDescriptors()
Deprecated.
|
PropertyEditor[] |
getPropertyEditors()
Deprecated.
|
static ILcdBeanGUIFactory |
getSharedBeanGUIFactory()
Deprecated.
|
boolean |
hasCustomizer()
Deprecated.
|
boolean |
isAutoUpdateFromPropertyEditors()
Deprecated.
Tests if this
TLcdBeanGUIFactory is in auto update property mode. |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static int |
numberOfProperties(Object aBean)
Deprecated.
Gets the number of editable properties of the given
Object |
void |
removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
Deprecated.
|
void |
setAutoUpdateFromPropertyEditors(boolean newAutoUpdateProperties)
Deprecated.
When this property if
true , the current TLcdBeanGUIFactory will update the properties
of its Object bean each time one one of the Object bean PropertyEditor
sends a PropertyChangeEvent. |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setObject(Object aObject)
Deprecated.
Set the bean to be analyzed.
|
void |
setObject(Object aObject,
boolean withSetValues)
Deprecated.
Set the bean to be analyzed.
|
static void |
setSharedBeanGUIFactory(ILcdBeanGUIFactory aBeanGUIFactory)
Deprecated.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
updateObjectFromPropertyEditors()
Deprecated.
This method will set all the properties of the bean set using setObject,
that have been changed by their corresponding PropertyEditor.
|
boolean |
wasNewClass()
Deprecated.
|
public static ILcdPropertyEditorFinder defaultPropertyEditorFinder
public TLcdBeanGUIFactory()
public TLcdBeanGUIFactory(Object aObject)
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.public static ILcdBeanGUIFactory getSharedBeanGUIFactory()
public static void setSharedBeanGUIFactory(ILcdBeanGUIFactory aBeanGUIFactory)
public BeanDescriptor getBeanDescriptor()
public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
protected void firePropertyChangeEvent(PropertyChangeEvent aPropertyChangeEvent)
public boolean hasCustomizer()
public static int numberOfProperties(Object aBean)
Object
public static Customizer getCustomizer(Object aBean)
Customizer
,
BeanInfo.getBeanDescriptor()
public static Class getClassCustomizer(Object aBean)
Customizer
,
BeanInfo.getBeanDescriptor()
public static String getDisplayName(Object aBean)
FeatureDescriptor.getDisplayName()
public Customizer getCustomizer()
Customizer
public void setObject(Object aObject)
setObject
in interface ILcdBeanEditor
public void setObject(Object aObject, boolean withSetValues)
aObject
- the bean to be analyzedwithSetValues
- if true
, the valid PropertyEditors will receive
the property value (PropertyEditor.setValue()). The PropertyEditors, Labels,
Components to editing the properties can be get by calling getEditors(),
getLabels and getComponent(). Note that some of them might be null.public static PropertyEditor findPropertyEditor(Object aObject, Object aPropertyValue, PropertyDescriptor aPropertyDescriptor)
public static PropertyEditor findPropertyEditor(Object aBean, String aPropertyDisplayName)
Object
aBean.public static Component createPropertyEditorComponent(PropertyEditor aPropertyEditor, ILcdBeanEditor aBeanEditor)
public void filterNonValidPropertyEditors()
public void updateObjectFromPropertyEditors()
Object
.equals().updateObjectFromPropertyEditors
in interface ILcdBeanEditor
public boolean wasNewClass()
true
if the Class of the last bean set using the setObject method
is different from the Class of the previous one.public Object getObject()
getObject
in interface ILcdBeanEditor
public PropertyDescriptor[] getPropertyDescriptors()
public PropertyEditor[] getPropertyEditors()
public Component[] getComponents()
public void setAutoUpdateFromPropertyEditors(boolean newAutoUpdateProperties)
true
, the current TLcdBeanGUIFactory
will update the properties
of its Object
bean each time one one of the Object
bean PropertyEditor
sends a PropertyChangeEvent. The property update is done by calling
updateObjectFromPropertyEditors();setAutoUpdateFromPropertyEditors
in interface ILcdBeanEditor
public boolean isAutoUpdateFromPropertyEditors()
TLcdBeanGUIFactory
is in auto update property mode.isAutoUpdateFromPropertyEditors
in interface ILcdBeanEditor
setAutoUpdateFromPropertyEditors(boolean)