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
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a new emptyTLcdXMLCustomizerComponentBuilder
object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildProperty
(PropertyDescriptor aPropertyDescriptor, PropertyEditor aPropertyEditor, Component aPropertyEditorComponent) Deprecated.Build a property.void
Deprecated.After a call to this method, the xml source will be parsed again.Deprecated.Returns theComponent
this builder has build.Deprecated.Returns the help id string that is associated with the component getCustomizerComponent().boolean
Deprecated.This method has been deprecated.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.void
startBuilding
(Object aBean, BeanDescriptor aBeanDescriptor) Deprecated.Indicates that we want to start building theComponent
of ourCustomizer
.void
Deprecated.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 emptyTLcdXMLCustomizerComponentBuilder
object. 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 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.
-
startBuilding
Deprecated.Description copied from interface:ILcdCustomizerComponentBuilder
Indicates that we want to start building theComponent
of ourCustomizer
.- Specified by:
startBuilding
in 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:ILcdCustomizerComponentBuilder
Build a property.- Specified by:
buildProperty
in interfaceILcdCustomizerComponentBuilder
- Parameters:
aPropertyDescriptor
- ThePropertyDescriptor
of the property to buildaPropertyEditor
- ThePropertyEditor
of the property to buildaPropertyEditorComponent
- TheComponent
used to represent the property to build
-
stopBuilding
public void stopBuilding()Deprecated.Description copied from interface:ILcdCustomizerComponentBuilder
Indicates that building if finished. Implementations can use this method to perform cleaning tasks, remove temporary data structures, ...- Specified by:
stopBuilding
in interfaceILcdCustomizerComponentBuilder
-
getCustomizerComponent
Deprecated.Description copied from interface:ILcdCustomizerComponentBuilder
Returns theComponent
this builder has build. Can only be used after stopBuilding() is invoked.- Specified by:
getCustomizerComponent
in interfaceILcdCustomizerComponentBuilder
- Returns:
- the
Component
this builder has build.
-
getHelpIDString
Deprecated.Description copied from interface:ILcdCustomizerComponentBuilder
Returns the help id string that is associated with the component getCustomizerComponent().- Specified by:
getHelpIDString
in 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.
-