Class TLcdPropertySheetAWT
- All Implemented Interfaces:
ILcdBeanEditor
,ILcdPropertySheet
,Customizer
The setObjectCloner should be used to provide a way to this class to clone
the Object
and allow canceling the editing process.
It makes use of a TLcdBeanGUIFactory
instance to perform the bean analysis and
find, for each property, a PropertyEditor
as well as an AWT Component
to
display and edit the property value.
This sheet can have a button Panel
with an Apply button and optionally
OK and Cancel buttons. This can be specified by setting the ButtonPanelVisible
property.
This class can be used as a Customizer
or as a PropertyEditor
custom editor.
For a Customizer, the setObject method is used. For a custom editor, the
PropertyEditor
must be set.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated.Default constructor.TLcdPropertySheetAWT
(boolean aButtonPanelVisible) Deprecated.Constructor with a flag to indicate if the Apply, OK, Cancel button Panel has to be visible or not.TLcdPropertySheetAWT
(boolean aButtonPanelVisible, PropertyEditor aPropertyEditor) Deprecated.Same asTLcdPropertySheetAWT
(PropertyEditor
), with a flag to indicate if the Apply, OK, Cancel buttonPanel
has to be visible or not.TLcdPropertySheetAWT
(PropertyEditor aPropertyEditor) Deprecated.Constructor with a PropertyEditor, when this class needs to be used as a custom editor for aPropertyEditor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aListener) Deprecated.Registers a listener for the PropertyChange event.void
firePropertyChange
(PropertyChangeEvent aPropertyChangeEvent) Deprecated.Fires aPropertyChangeEvent
to all registered PropertyChangeListeners.Deprecated.Deprecated.Deprecated.boolean
Deprecated.Tests if the AutoUpdateFromPropertyEditors property istrue
or not.boolean
Deprecated.Tests if the Apply, OK, Cancel buttonPanel
is currently visible or not.boolean
Deprecated.This method has been deprecated.boolean
Deprecated.void
Deprecated.Removes a listener for the PropertyChange event.void
setAutoUpdateFromPropertyEditors
(boolean aBoolean) Deprecated.When this property istrue
, the property values will be automatically set to the bean set using the setObject method, each time one of its property value has been changed by the correspondingPropertyEditor
(thePropertyEditor
fires then a PropertyChangeEvent).void
setButtonPanelVisible
(boolean aButtonPanelVisible) Deprecated.Sets the visibility of the Apply, OK, Cancel button Panel.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setHelpIDString
(String aHelpIDString) Deprecated.Sets the help id for this panel.void
Deprecated.ImplementsCustomizer.setObject()
andILcdBeanEditor.setObject
void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.void
setVisible
(boolean aVisible) Deprecated.void
Deprecated.Updates the properties of the bean set, from the values stored in the corresponding PropertyEditors.
-
Constructor Details
-
TLcdPropertySheetAWT
public TLcdPropertySheetAWT()Deprecated.Default constructor. -
TLcdPropertySheetAWT
public TLcdPropertySheetAWT(boolean aButtonPanelVisible) Deprecated.Constructor with a flag to indicate if the Apply, OK, Cancel button Panel has to be visible or not. Default isfalse
.- Parameters:
aButtonPanelVisible
- indicates whether the button button panel should be visible.
-
TLcdPropertySheetAWT
Deprecated.Constructor with a PropertyEditor, when this class needs to be used as a custom editor for aPropertyEditor.aPropertyEditor
must therefore support custom editor (aPropertyEditor.supportCustomEditor must returntrue
), and aPropertyEditor.getCustomEditor must return an instance of this class that has been instantiated using this constructor.- Parameters:
aPropertyEditor
- the property editor to display in this panel.
-
TLcdPropertySheetAWT
Deprecated.Same asTLcdPropertySheetAWT
(PropertyEditor
), with a flag to indicate if the Apply, OK, Cancel buttonPanel
has to be visible or not.- Parameters:
aButtonPanelVisible
- indicates whether the button button panel should be visible.aPropertyEditor
- the property editor to display in this panel.
-
-
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.
-
getObject
Deprecated.- Specified by:
getObject
in interfaceILcdBeanEditor
-
setObject
Deprecated.ImplementsCustomizer.setObject()
andILcdBeanEditor.setObject
- Specified by:
setObject
in interfaceCustomizer
- Specified by:
setObject
in interfaceILcdBeanEditor
- Parameters:
aObject
- the object to be customized. If the property sheet is used as a custom editor of a property editor, the object must have a publicclone()
method, or anIllegalArgumentException
will be thrown.
-
getHelpIDString
Deprecated.- Specified by:
getHelpIDString
in interfaceILcdPropertySheet
- Returns:
- The help id string associated with this panel, default is null.
-
setHelpIDString
Deprecated.Description copied from interface:ILcdPropertySheet
Sets the help id for this panel. Pressing the help button will have the effect that the help item for the given help id will be displayed. Setting null means to remove the current help id. The help button is only present when help id is set and the button panel is set visible and a valid help action factory is set.- Specified by:
setHelpIDString
in interfaceILcdPropertySheet
- Parameters:
aHelpIDString
- The help id for this panel.
-
isButtonPanelVisible
public boolean isButtonPanelVisible()Deprecated.Tests if the Apply, OK, Cancel buttonPanel
is currently visible or not.- Specified by:
isButtonPanelVisible
in interfaceILcdPropertySheet
-
setButtonPanelVisible
public void setButtonPanelVisible(boolean aButtonPanelVisible) Deprecated.Sets the visibility of the Apply, OK, Cancel button Panel.- Specified by:
setButtonPanelVisible
in interfaceILcdPropertySheet
-
isAutoUpdateFromPropertyEditors
public boolean isAutoUpdateFromPropertyEditors()Deprecated.Tests if the AutoUpdateFromPropertyEditors property istrue
or not.- Specified by:
isAutoUpdateFromPropertyEditors
in interfaceILcdBeanEditor
- See Also:
-
setAutoUpdateFromPropertyEditors
public void setAutoUpdateFromPropertyEditors(boolean aBoolean) Deprecated.When this property istrue
, the property values will be automatically set to the bean set using the setObject method, each time one of its property value has been changed by the correspondingPropertyEditor
(thePropertyEditor
fires then a PropertyChangeEvent).If this property is
false
, one can make this update manually by calling updateObjectFromPropertyEditors.- Specified by:
setAutoUpdateFromPropertyEditors
in interfaceILcdBeanEditor
- See Also:
-
updateObjectFromPropertyEditors
public void updateObjectFromPropertyEditors()Deprecated.Updates the properties of the bean set, from the values stored in the corresponding PropertyEditors. If the bean has been set using aPropertyEditor
(the bean object is then the value returned byPropertyEditor.getValue()
), thePropertyEditor.setValue()
is called with the updated bean.- Specified by:
updateObjectFromPropertyEditors
in interfaceILcdBeanEditor
- See Also:
-
addPropertyChangeListener
Deprecated.Registers a listener for the PropertyChange event.- Specified by:
addPropertyChangeListener
in interfaceCustomizer
- Specified by:
addPropertyChangeListener
in interfaceILcdPropertySheet
- Parameters:
aListener
- an object to be invoked when a PropertyChange event is fired.
-
removePropertyChangeListener
Deprecated.Removes a listener for the PropertyChange event.- Specified by:
removePropertyChangeListener
in interfaceCustomizer
- Specified by:
removePropertyChangeListener
in interfaceILcdPropertySheet
- Parameters:
aListener
- the PropertyChange listener to be removed.
-
firePropertyChange
Deprecated.Fires aPropertyChangeEvent
to all registered PropertyChangeListeners.- Parameters:
aPropertyChangeEvent
- contains the changes of which the listeners should be notified.
-
getComponent
Deprecated.- Specified by:
getComponent
in interfaceILcdPropertySheet
-
isVisible
public boolean isVisible()Deprecated. -
setVisible
public void setVisible(boolean aVisible) Deprecated.
-