com.ontimize.builder.xml
Class XMLApplicationBuilder
java.lang.Object
com.ontimize.xml.XMLInterpreter
com.ontimize.builder.xml.XMLApplicationBuilder
- All Implemented Interfaces:
- ApplicationBuilder
- public class XMLApplicationBuilder
- extends XMLInterpreter
- implements ApplicationBuilder
This class creates an application from a XML file
<?xml version="1.0" encoding="ISO-8859-1" ?>
<MainApplication resources="untitled1.bundleComponentes" locale="en_US">
<ReferenceLocator class="com.ontimize.locator.ReferenceLocator" packageorhostname="untitled1."/><br>
<Menu archive="applicationmenu.xml"/><br>
<Toolbar archive="toolbarbuttons.xml"/><br>
<MenuListener class="untitled1.MenuListener"/> Must have an empty constructor<br>
<ToolbarListener class="untitled1.ToolbarListener"/> Must have an empty constructor<br>
<FormManager id="manager1" tree="treename1.xml"
form="formname1.xml"><br>
<InteractionManager form="formname2.xml" class="package.IManagerClassName"/><br>
<FManager form="formname3.xml" fmid="managerId"/><br>
</FormManager><br>
lt;/AplicacionGeneral>
Added: FManager form="" fmid=""
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FMID
protected static final java.lang.String FMID
- See Also:
- Constant Field Values
FMANAGER
public static final java.lang.String FMANAGER
- See Also:
- Constant Field Values
INTERACTION_MANAGER
public static final java.lang.String INTERACTION_MANAGER
- See Also:
- Constant Field Values
INTERACTION_MANAGER_ACTION
public static final java.lang.String INTERACTION_MANAGER_ACTION
- See Also:
- Constant Field Values
ID
protected static final java.lang.String ID
- See Also:
- Constant Field Values
TREE
protected static final java.lang.String TREE
- See Also:
- Constant Field Values
TREE_CLASS
protected static final java.lang.String TREE_CLASS
- See Also:
- Constant Field Values
FORM
protected static final java.lang.String FORM
- See Also:
- Constant Field Values
ACTION
protected static final java.lang.String ACTION
- See Also:
- Constant Field Values
MENULISTENER
protected static final java.lang.String MENULISTENER
- See Also:
- Constant Field Values
TOOLBARLISTENER
protected static final java.lang.String TOOLBARLISTENER
- See Also:
- Constant Field Values
TOOLBAR
protected static final java.lang.String TOOLBAR
- See Also:
- Constant Field Values
MENU
protected static final java.lang.String MENU
- See Also:
- Constant Field Values
REFLOCATOR
protected static final java.lang.String REFLOCATOR
- See Also:
- Constant Field Values
INCLUDE_DEFAULT_LABELS
public static boolean INCLUDE_DEFAULT_LABELS
FILE_TRANSFER_CLIENT
public static final java.lang.String FILE_TRANSFER_CLIENT
- See Also:
- Constant Field Values
clientApplicationParser
protected static ExtendedClientApplicationParser clientApplicationParser
equivalentLabelsList
protected java.util.Hashtable equivalentLabelsList
uRILabelsFile
protected java.lang.String uRILabelsFile
packageA
protected java.lang.String packageA
menuBuilder
protected XMLMenuBuilder menuBuilder
builder
protected static XMLApplicationBuilder builder
XMLApplicationBuilder
public XMLApplicationBuilder(java.lang.String labelsFileURI,
java.lang.String packageName)
throws java.lang.Exception
XMLApplicationBuilder
public XMLApplicationBuilder(java.lang.String labelsFileURI)
throws java.lang.Exception
buildApplication
public Application buildApplication(java.lang.String fileURI)
- Description copied from interface:
ApplicationBuilder
- Create an
Application from the definition specified
- Specified by:
buildApplication in interface ApplicationBuilder
- Parameters:
fileURI - URI to the definition file
- Returns:
analyzeChildren
protected java.util.Map analyzeChildren(CustomNode node)
instance
protected java.lang.Object instance(CustomNode node)
- Creates a new instance of the class indicated by the node parameter and
return it
- Parameters:
node -
- Returns:
instance
protected java.lang.Object instance(CustomNode node,
java.util.Hashtable param)
- Creates a new instance of the class indicated by the node parameter and
returns it
- Parameters:
node - param -
- Returns:
instance
public java.lang.Object instance(java.lang.String nameInstance,
java.util.Hashtable param)
performExtendedClientApplication
protected org.w3c.dom.Document performExtendedClientApplication(org.w3c.dom.Document doc,
java.lang.String fileURI)
createFormManager
public FormManager createFormManager(java.lang.String className,
java.util.Hashtable parameters)
getMenuBuilder
public MenuBuilder getMenuBuilder()
setXMLApplicationBuilder
public static void setXMLApplicationBuilder(XMLApplicationBuilder builder)
getXMLApplicationBuilder
public static XMLApplicationBuilder getXMLApplicationBuilder()