Class TLcdBeanGUIFactory
- All Implemented Interfaces:
ILcdBeanEditor
,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.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) Deprecated.static Component
createPropertyEditorComponent
(PropertyEditor aPropertyEditor, ILcdBeanEditor aBeanEditor) Deprecated.void
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 theObject
aBean.protected void
firePropertyChangeEvent
(PropertyChangeEvent aPropertyChangeEvent) Deprecated.Deprecated.static Class
getClassCustomizer
(Object aBean) Deprecated.Look if the given bean has a Customizer or not.Deprecated.Deprecated.Try to get the Customizer of the Bean set with the setObject methodstatic 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 BeanDeprecated.Deprecated.Deprecated.static ILcdBeanGUIFactory
Deprecated.boolean
Deprecated.boolean
Deprecated.Tests if thisTLcdBeanGUIFactory
is in auto update property mode.boolean
Deprecated.This method has been deprecated.static int
numberOfProperties
(Object aBean) Deprecated.Gets the number of editable properties of the givenObject
void
removePropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) Deprecated.void
setAutoUpdateFromPropertyEditors
(boolean newAutoUpdateProperties) Deprecated.When this property iftrue
, the currentTLcdBeanGUIFactory
will update the properties of itsObject
bean each time one one of theObject
bean PropertyEditor sends a PropertyChangeEvent.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
Deprecated.Set the bean to be analyzed.void
Deprecated.Set the bean to be analyzed.static void
setSharedBeanGUIFactory
(ILcdBeanGUIFactory aBeanGUIFactory) Deprecated.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.void
Deprecated.This method will set all the properties of the bean set using setObject, that have been changed by their corresponding PropertyEditor.boolean
Deprecated.
-
Field Details
-
defaultPropertyEditorFinder
Deprecated.
-
-
Constructor Details
-
TLcdBeanGUIFactory
public TLcdBeanGUIFactory()Deprecated. -
TLcdBeanGUIFactory
Deprecated.
-
-
Method Details
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Parameters:
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.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getBeanDescriptor
Deprecated. -
addPropertyChangeListener
Deprecated. -
removePropertyChangeListener
Deprecated. -
firePropertyChangeEvent
Deprecated. -
hasCustomizer
public boolean hasCustomizer()Deprecated. -
numberOfProperties
Deprecated.Gets the number of editable properties of the givenObject
-
getCustomizer
Deprecated.Look if the given bean has a Customizer or not.- Returns:
- a Customizer if the bean has one, or null if not
- See Also:
-
getClassCustomizer
Deprecated.Look if the given bean has a Customizer or not.- Returns:
- a Class that implements Customizer if the bean has one, or null if not
- See Also:
-
getDisplayName
Deprecated.Try to get the display name of the given Bean- See Also:
-
getCustomizer
Deprecated.Try to get the Customizer of the Bean set with the setObject method- See Also:
-
setObject
Deprecated.Set the bean to be analyzed. Call setObject(aObject,true).- Specified by:
setObject
in interfaceILcdBeanEditor
-
setObject
Deprecated.Set the bean to be analyzed.- Parameters:
aObject
- the bean to be analyzedwithSetValues
- iftrue
, 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.
-
findPropertyEditor
public static PropertyEditor findPropertyEditor(Object aObject, Object aPropertyValue, PropertyDescriptor aPropertyDescriptor) Deprecated. -
findPropertyEditor
Deprecated.Try to find a PropertyEditor for the property named aPropertyDisplayName in theObject
aBean. -
createPropertyEditorComponent
public static Component createPropertyEditorComponent(PropertyEditor aPropertyEditor, ILcdBeanEditor aBeanEditor) Deprecated. -
filterNonValidPropertyEditors
public void filterNonValidPropertyEditors()Deprecated.This method will filter the null PropertyEditors, Labels, and Components generated by the setObject. This method is not called in setObject for performance consideration. -
updateObjectFromPropertyEditors
public void updateObjectFromPropertyEditors()Deprecated.This method will set all the properties of the bean set using setObject, that have been changed by their corresponding PropertyEditor. The test will be done usingObject
.equals().- Specified by:
updateObjectFromPropertyEditors
in interfaceILcdBeanEditor
-
wasNewClass
public boolean wasNewClass()Deprecated.- Returns:
true
if the Class of the last bean set using the setObject method is different from the Class of the previous one.
-
getObject
Deprecated.- Specified by:
getObject
in interfaceILcdBeanEditor
- Returns:
- the last bean set using the setObject method.
-
getPropertyDescriptors
Deprecated.- Returns:
- an array of PropertyDescriptor that have been found by the setObject method. Note that some of the PropertyDescriptor might be null, unless a call of filterNonValidPropertyEditors has been done after the setObject.
-
getPropertyEditors
Deprecated.- Returns:
- an array of PropertyEditor that have been found by the setObject method. Note that some of the PropertyEditor might be null, unless a call of filterNonValidPropertyEditors has been done after the setObject.
-
getComponents
Deprecated.- Returns:
- an array of Components (for editing the bean properties) that have been found by the setObject method. Note that some of the Components might be null, unless a call of filterNonValidPropertyEditors has been done after the setObject.
-
setAutoUpdateFromPropertyEditors
public void setAutoUpdateFromPropertyEditors(boolean newAutoUpdateProperties) Deprecated.When this property iftrue
, the currentTLcdBeanGUIFactory
will update the properties of itsObject
bean each time one one of theObject
bean PropertyEditor sends a PropertyChangeEvent. The property update is done by calling updateObjectFromPropertyEditors();- Specified by:
setAutoUpdateFromPropertyEditors
in interfaceILcdBeanEditor
-
isAutoUpdateFromPropertyEditors
public boolean isAutoUpdateFromPropertyEditors()Deprecated.Tests if thisTLcdBeanGUIFactory
is in auto update property mode.- Specified by:
isAutoUpdateFromPropertyEditors
in interfaceILcdBeanEditor
- See Also:
-