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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Deprecated.static ComponentcreatePropertyEditorComponent(PropertyEditor aPropertyEditor, ILcdBeanEditor aBeanEditor) Deprecated.voidDeprecated.This method will filter the null PropertyEditors, Labels, and Components generated by the setObject.static PropertyEditorfindPropertyEditor(Object aObject, Object aPropertyValue, PropertyDescriptor aPropertyDescriptor) Deprecated.static PropertyEditorfindPropertyEditor(Object aBean, String aPropertyDisplayName) Deprecated.Try to find a PropertyEditor for the property named aPropertyDisplayName in theObjectaBean.protected voidfirePropertyChangeEvent(PropertyChangeEvent aPropertyChangeEvent) Deprecated.Deprecated.static ClassgetClassCustomizer(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 CustomizergetCustomizer(Object aBean) Deprecated.Look if the given bean has a Customizer or not.static StringgetDisplayName(Object aBean) Deprecated.Try to get the display name of the given BeanDeprecated.Deprecated.Deprecated.static ILcdBeanGUIFactoryDeprecated.booleanDeprecated.booleanDeprecated.Tests if thisTLcdBeanGUIFactoryis in auto update property mode.booleanDeprecated.This method has been deprecated.static intnumberOfProperties(Object aBean) Deprecated.Gets the number of editable properties of the givenObjectvoidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Deprecated.voidsetAutoUpdateFromPropertyEditors(boolean newAutoUpdateProperties) Deprecated.When this property iftrue, the currentTLcdBeanGUIFactorywill update the properties of itsObjectbean each time one one of theObjectbean PropertyEditor sends a PropertyChangeEvent.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidDeprecated.Set the bean to be analyzed.voidDeprecated.Set the bean to be analyzed.static voidsetSharedBeanGUIFactory(ILcdBeanGUIFactory aBeanGUIFactory) Deprecated.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.voidDeprecated.This method will set all the properties of the bean set using setObject, that have been changed by their corresponding PropertyEditor.booleanDeprecated.
-
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 istruethen 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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen 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.Returnstrueif 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:
setObjectin 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 theObjectaBean. -
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:
updateObjectFromPropertyEditorsin interfaceILcdBeanEditor
-
wasNewClass
public boolean wasNewClass()Deprecated.- Returns:
trueif the Class of the last bean set using the setObject method is different from the Class of the previous one.
-
getObject
Deprecated.- Specified by:
getObjectin 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 currentTLcdBeanGUIFactorywill update the properties of itsObjectbean each time one one of theObjectbean PropertyEditor sends a PropertyChangeEvent. The property update is done by calling updateObjectFromPropertyEditors();- Specified by:
setAutoUpdateFromPropertyEditorsin interfaceILcdBeanEditor
-
isAutoUpdateFromPropertyEditors
public boolean isAutoUpdateFromPropertyEditors()Deprecated.Tests if thisTLcdBeanGUIFactoryis in auto update property mode.- Specified by:
isAutoUpdateFromPropertyEditorsin interfaceILcdBeanEditor- See Also:
-