@Deprecated public class TLcdXMLCustomizerComponentBuilder extends Object implementsILcdCustomizerComponentBuilder
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.Modifier and Type | Field and Description |
---|---|
static String |
XML_FILE_EXTENSION
Deprecated.
Assumed extension of xml files describing a layout.
|
static String |
XML_FILE_NAME
Deprecated.
Key to point a property descriptor towards the xml file it should use.
|
Constructor and Description |
---|
TLcdXMLCustomizerComponentBuilder()
Deprecated.
Creates a new empty
TLcdXMLCustomizerComponentBuilder object. |
Modifier and Type | Method and Description |
---|---|
void |
buildProperty(PropertyDescriptor aPropertyDescriptor,
PropertyEditor aPropertyEditor,
Component aPropertyEditorComponent)
Deprecated.
Build a property.
|
void |
flushParsedCache()
Deprecated.
After a call to this method, the xml source will be parsed again.
|
Component |
getCustomizerComponent()
Deprecated.
Returns the
Component this builder has build. |
String |
getHelpIDString()
Deprecated.
Returns the help id string that is associated with the component getCustomizerComponent().
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
startBuilding(Object aBean,
BeanDescriptor aBeanDescriptor)
Deprecated.
Indicates that we want to start building the
Component of our Customizer . |
void |
stopBuilding()
Deprecated.
Indicates that building if finished.
|
public static final String XML_FILE_NAME
PropertyDescriptor descriptor = ...
descriptor.setValue( TLcdXMLCustomizerComponentBuilder.XML_FILE_NAME, "aFileNameHere.xml");
public static final String XML_FILE_EXTENSION
public TLcdXMLCustomizerComponentBuilder()
TLcdXMLCustomizerComponentBuilder
object.
A parser will be created at the time you use it.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.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.public boolean isTraceOn()
true
if tracing is enabled for this class.public void startBuilding(Object aBean, BeanDescriptor aBeanDescriptor)
ILcdCustomizerComponentBuilder
Component
of our Customizer
.startBuilding
in interface ILcdCustomizerComponentBuilder
aBean
- The bean this customizer will serve for.aBeanDescriptor
- The bean descriptor of that bean, or null if no descriptor is available.public void buildProperty(PropertyDescriptor aPropertyDescriptor, PropertyEditor aPropertyEditor, Component aPropertyEditorComponent)
ILcdCustomizerComponentBuilder
buildProperty
in interface ILcdCustomizerComponentBuilder
aPropertyDescriptor
- The PropertyDescriptor
of the property to buildaPropertyEditor
- The PropertyEditor
of the property to buildaPropertyEditorComponent
- The Component
used to represent the property to buildpublic void stopBuilding()
ILcdCustomizerComponentBuilder
stopBuilding
in interface ILcdCustomizerComponentBuilder
public Component getCustomizerComponent()
ILcdCustomizerComponentBuilder
Component
this builder has build. Can only be used after
stopBuilding() is invoked.getCustomizerComponent
in interface ILcdCustomizerComponentBuilder
Component
this builder has build.public String getHelpIDString()
ILcdCustomizerComponentBuilder
getHelpIDString
in interface ILcdCustomizerComponentBuilder
public void flushParsedCache()