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
ConstructorsConstructorDescriptionDeprecated.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 buttonPanelhas 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 TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aListener) Deprecated.Registers a listener for the PropertyChange event.voidfirePropertyChange(PropertyChangeEvent aPropertyChangeEvent) Deprecated.Fires aPropertyChangeEventto all registered PropertyChangeListeners.Deprecated.Deprecated.Deprecated.booleanDeprecated.Tests if the AutoUpdateFromPropertyEditors property istrueor not.booleanDeprecated.Tests if the Apply, OK, Cancel buttonPanelis currently visible or not.booleanDeprecated.This method has been deprecated.booleanDeprecated.voidDeprecated.Removes a listener for the PropertyChange event.voidsetAutoUpdateFromPropertyEditors(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(thePropertyEditorfires then a PropertyChangeEvent).voidsetButtonPanelVisible(boolean aButtonPanelVisible) Deprecated.Sets the visibility of the Apply, OK, Cancel button Panel.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetHelpIDString(String aHelpIDString) Deprecated.Sets the help id for this panel.voidDeprecated.ImplementsCustomizer.setObject()andILcdBeanEditor.setObjectvoidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.voidsetVisible(boolean aVisible) Deprecated.voidDeprecated.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.aPropertyEditormust 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 buttonPanelhas 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 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.
-
getObject
Deprecated.- Specified by:
getObjectin interfaceILcdBeanEditor
-
setObject
Deprecated.ImplementsCustomizer.setObject()andILcdBeanEditor.setObject- Specified by:
setObjectin interfaceCustomizer- Specified by:
setObjectin 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 anIllegalArgumentExceptionwill be thrown.
-
getHelpIDString
Deprecated.- Specified by:
getHelpIDStringin interfaceILcdPropertySheet- Returns:
- The help id string associated with this panel, default is null.
-
setHelpIDString
Deprecated.Description copied from interface:ILcdPropertySheetSets 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:
setHelpIDStringin interfaceILcdPropertySheet- Parameters:
aHelpIDString- The help id for this panel.
-
isButtonPanelVisible
public boolean isButtonPanelVisible()Deprecated.Tests if the Apply, OK, Cancel buttonPanelis currently visible or not.- Specified by:
isButtonPanelVisiblein interfaceILcdPropertySheet
-
setButtonPanelVisible
public void setButtonPanelVisible(boolean aButtonPanelVisible) Deprecated.Sets the visibility of the Apply, OK, Cancel button Panel.- Specified by:
setButtonPanelVisiblein interfaceILcdPropertySheet
-
isAutoUpdateFromPropertyEditors
public boolean isAutoUpdateFromPropertyEditors()Deprecated.Tests if the AutoUpdateFromPropertyEditors property istrueor not.- Specified by:
isAutoUpdateFromPropertyEditorsin 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(thePropertyEditorfires then a PropertyChangeEvent).If this property is
false, one can make this update manually by calling updateObjectFromPropertyEditors.- Specified by:
setAutoUpdateFromPropertyEditorsin 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:
updateObjectFromPropertyEditorsin interfaceILcdBeanEditor- See Also:
-
addPropertyChangeListener
Deprecated.Registers a listener for the PropertyChange event.- Specified by:
addPropertyChangeListenerin interfaceCustomizer- Specified by:
addPropertyChangeListenerin 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:
removePropertyChangeListenerin interfaceCustomizer- Specified by:
removePropertyChangeListenerin interfaceILcdPropertySheet- Parameters:
aListener- the PropertyChange listener to be removed.
-
firePropertyChange
Deprecated.Fires aPropertyChangeEventto all registered PropertyChangeListeners.- Parameters:
aPropertyChangeEvent- contains the changes of which the listeners should be notified.
-
getComponent
Deprecated.- Specified by:
getComponentin interfaceILcdPropertySheet
-
isVisible
public boolean isVisible()Deprecated. -
setVisible
public void setVisible(boolean aVisible) Deprecated.
-