public class Factory extends java.lang.Object implements GUIFactoryIF
Modifier and Type | Class and Description |
---|---|
protected class |
Factory.Base |
static class |
Factory.ToolTipUI |
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
baseRef |
protected java.util.HashMap |
objRef |
Constructor and Description |
---|
Factory()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(java.lang.Object ref,
org.w3c.dom.Node node)
Create an object from document node.
|
java.lang.Object |
create(java.lang.Object ref,
java.lang.String pattern)
Create an object using the first node in document that matches the given pattern.
|
org.w3c.dom.Document |
getDocument(java.lang.Object ref)
Get the reference for object.
|
static Factory |
getInstance()
Get an instance of the factory.
|
protected java.lang.reflect.Method |
getMethodForClass(java.lang.Class clazz,
java.lang.Class param)
Get a method for the given class using the second class as parameters.
|
protected java.lang.String |
getMethodName(org.w3c.dom.Attr attr)
Get a setter method name for given attribute.
|
java.lang.String |
getProperty(java.lang.Object ref,
java.lang.String key,
java.lang.String def)
Get a string property.
|
java.lang.Object |
getReference(java.lang.Object key)
Get the reference for object.
|
void |
initialize(java.lang.Object ref,
org.w3c.dom.Document doc)
Initialize the factory using the given document.
|
protected java.lang.String |
replaceProperty(Properties properties,
java.lang.String val)
Replace all properties located inside the given expression.
|
void |
showErrorMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
Send an error message.
|
void |
showInfoMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
Send an info message.
|
void |
showWarningMessage(java.awt.Container parent,
java.lang.String title,
java.lang.String message)
Send an warning message.
|
public static Factory getInstance()
public void initialize(java.lang.Object ref, org.w3c.dom.Document doc) throws java.lang.Exception
java.lang.Exception
protected java.lang.String replaceProperty(Properties properties, java.lang.String val)
protected java.lang.String getMethodName(org.w3c.dom.Attr attr)
public java.lang.String getProperty(java.lang.Object ref, java.lang.String key, java.lang.String def)
public java.lang.Object create(java.lang.Object ref, java.lang.String pattern) throws java.lang.Exception
create
in interface GUIFactoryIF
java.lang.Exception
public java.lang.Object create(java.lang.Object ref, org.w3c.dom.Node node) throws java.lang.Exception
create
in interface GUIFactoryIF
java.lang.Exception
public java.lang.Object getReference(java.lang.Object key)
getReference
in interface GUIFactoryIF
public org.w3c.dom.Document getDocument(java.lang.Object ref)
getDocument
in interface GUIFactoryIF
protected java.lang.reflect.Method getMethodForClass(java.lang.Class clazz, java.lang.Class param)
public void showErrorMessage(java.awt.Container parent, java.lang.String title, java.lang.String message)
showErrorMessage
in interface GUIFactoryIF
parent
- the parent of the dialog.title
- the title.message
- the message.public void showWarningMessage(java.awt.Container parent, java.lang.String title, java.lang.String message)
parent
- the parent of the dialog.title
- the title.message
- the message.public void showInfoMessage(java.awt.Container parent, java.lang.String title, java.lang.String message)
parent
- the parent of the dialog.title
- the title.message
- the message.