Package com.luciad.beans.swing
Class TLcdXMLCustomizerComponentBuilder
java.lang.Object
com.luciad.beans.swing.TLcdXMLCustomizerComponentBuilder
- All Implemented Interfaces:
ILcdCustomizerComponentBuilder
@Deprecated
public class TLcdXMLCustomizerComponentBuilder
extends Object
implements ILcdCustomizerComponentBuilder
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This class uses an
TLdBeanGuiFactory and an xml description of the
gui to create a gui for the bean object set in the TLdBeanGUIFactory
The creation of that gui is invoked by createGUI(). Another useful method is
setBeanGUIFactory. Also in development phase, don't forget to set
trace to true (or use debug="true" in description tag in xml), this will give you
useful information.
The xml description is retrieved from the BeanInfo object.
To add a xml description to a BeanInfo object, add the following line in the
getBeanDescriptor() method of the BeanInfo object:
descriptorToReturn.setValue(TLcdXMLCustomizerComponentBuilder.XML_FILE_NAME, "aFileNameHere.xml");
The file should be defined relative to the classpath.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new emptyTLcdXMLCustomizerComponentBuilderobject. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildProperty(PropertyDescriptor aPropertyDescriptor, PropertyEditor aPropertyEditor, Component aPropertyEditorComponent) Deprecated.Build a property.voidDeprecated.After a call to this method, the xml source will be parsed again.Deprecated.Returns theComponentthis builder has build.Deprecated.Returns the help id string that is associated with the component getCustomizerComponent().booleanDeprecated.This method has been deprecated.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.voidstartBuilding(Object aBean, BeanDescriptor aBeanDescriptor) Deprecated.Indicates that we want to start building theComponentof ourCustomizer.voidDeprecated.Indicates that building if finished.
-
Field Details
-
XML_FILE_NAME
Deprecated.Key to point a property descriptor towards the xml file it should use. For example:PropertyDescriptor descriptor = ... descriptor.setValue( TLcdXMLCustomizerComponentBuilder.XML_FILE_NAME, "aFileNameHere.xml");- See Also:
-
XML_FILE_EXTENSION
Deprecated.Assumed extension of xml files describing a layout. Only used when file is not explicitly given by means of XML_FILE_NAME.- See Also:
-
-
Constructor Details
-
TLcdXMLCustomizerComponentBuilder
public TLcdXMLCustomizerComponentBuilder()Deprecated.Creates a new emptyTLcdXMLCustomizerComponentBuilderobject. A parser will be created at the time you use it.
-
-
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.
-
startBuilding
Deprecated.Description copied from interface:ILcdCustomizerComponentBuilderIndicates that we want to start building theComponentof ourCustomizer.- Specified by:
startBuildingin interfaceILcdCustomizerComponentBuilder- Parameters:
aBean- The bean this customizer will serve for.aBeanDescriptor- The bean descriptor of that bean, or null if no descriptor is available.
-
buildProperty
public void buildProperty(PropertyDescriptor aPropertyDescriptor, PropertyEditor aPropertyEditor, Component aPropertyEditorComponent) Deprecated.Description copied from interface:ILcdCustomizerComponentBuilderBuild a property.- Specified by:
buildPropertyin interfaceILcdCustomizerComponentBuilder- Parameters:
aPropertyDescriptor- ThePropertyDescriptorof the property to buildaPropertyEditor- ThePropertyEditorof the property to buildaPropertyEditorComponent- TheComponentused to represent the property to build
-
stopBuilding
public void stopBuilding()Deprecated.Description copied from interface:ILcdCustomizerComponentBuilderIndicates that building if finished. Implementations can use this method to perform cleaning tasks, remove temporary data structures, ...- Specified by:
stopBuildingin interfaceILcdCustomizerComponentBuilder
-
getCustomizerComponent
Deprecated.Description copied from interface:ILcdCustomizerComponentBuilderReturns theComponentthis builder has build. Can only be used after stopBuilding() is invoked.- Specified by:
getCustomizerComponentin interfaceILcdCustomizerComponentBuilder- Returns:
- the
Componentthis builder has build.
-
getHelpIDString
Deprecated.Description copied from interface:ILcdCustomizerComponentBuilderReturns the help id string that is associated with the component getCustomizerComponent().- Specified by:
getHelpIDStringin interfaceILcdCustomizerComponentBuilder- Returns:
- The help ID for context sensitive help for getCustomizerComponent(), or null if no such help id is available.
-
flushParsedCache
public void flushParsedCache()Deprecated.After a call to this method, the xml source will be parsed again. The cached, parsed version is flushed.
-