public class XMLButtonBarBuilder extends XMLInterpreter implements ButtonBarBuilder
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseClasspath |
protected String |
defaultPackage |
protected Hashtable |
equivalenceLabelList |
static boolean |
INCLUDE_DEFAULT_LABELS |
protected JToolBar |
toolbar |
protected static ExtendedMenuXmlParser |
toolbarParser |
IMPORT_TAG, LABELS_FILE, SILENT| Constructor and Description |
|---|
XMLButtonBarBuilder(Hashtable equivalenceLabels) |
XMLButtonBarBuilder(Hashtable equivalenceLabels,
String guiClassesPackage) |
XMLButtonBarBuilder(String uriLabelsFile)
Class used to create the application toolbar.
|
XMLButtonBarBuilder(String uriLabelsFile,
String guiClassesPackage)
Class used to create the application toolbar.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendButtonBar(JToolBar toolbar,
String xmlDefinition) |
JToolBar |
buildButtonBar(String uriFile)
Creates the application toolbar with the components specified in the file
(XML File).
|
String |
getBaseClasspath() |
protected Document |
performExtendedToolbar(Document doc,
String fileURI) |
protected void |
processChildren(CustomNode node,
Container parent) |
protected void |
processChildren(CustomNode node,
Container parent,
String moduleName) |
void |
processModules(String moduleId,
CustomNode node,
Container jToolbar) |
void |
setBaseClasspath(String baseClasspath) |
createComponent, getDefaultLabelList, getDocumentModel, getDocumentModel, getDocumentModel, getDocumentTreeModel, getExtendedDocument, getExtendedDocument, getRoot, interpreterTag, processLabelFileprotected String baseClasspath
public static boolean INCLUDE_DEFAULT_LABELS
protected String defaultPackage
protected Hashtable equivalenceLabelList
protected JToolBar toolbar
protected static ExtendedMenuXmlParser toolbarParser
public XMLButtonBarBuilder(String uriLabelsFile) throws Exception
uriLabelsFile - URI to the labels file. Example 'http://.../xml/labels.xml'.Exceptionpublic XMLButtonBarBuilder(String uriLabelsFile, String guiClassesPackage) throws Exception
uriLabelsFile - URI to the labels file. Example 'http://.../xml/labels.xml'.guiClassesPackage - Package where the gui classes are. This class uses reflection
to create all objects (Class.forName()).Exceptionpublic XMLButtonBarBuilder(Hashtable equivalenceLabels) throws Exception
Exceptionpublic void appendButtonBar(JToolBar toolbar, String xmlDefinition)
appendButtonBar in interface ButtonBarBuilderpublic JToolBar buildButtonBar(String uriFile)
ButtonBarBuilderbuildButtonBar in interface ButtonBarBuilderprotected void processChildren(CustomNode node, Container parent)
protected void processChildren(CustomNode node, Container parent, String moduleName)
public void processModules(String moduleId, CustomNode node, Container jToolbar)
public String getBaseClasspath()
public void setBaseClasspath(String baseClasspath)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.