| com.xoetrope.builder.ms.infopath.InfopathBuilder
InfopathBuilder | public class InfopathBuilder extends XuiBuilder (Code) | | An experimental build for another XAML format with some bovine connections
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.7 $
|
Method Summary | |
protected void | addCell(XmlElement cellNode) | protected Component | addComponent(String childName, XmlElement childNode) Adds an individual component element to the page (this method may be called
recursively for nested elements). | protected void | applyAttributes(JComponent comp, Hashtable attribs) | protected String | getComponentRenderType(String childType) | protected String | getEventType(String event) | public String | getType() | protected Color | parseColorAttribute(String colorName) | protected void | readButton(XmlElement btnNode) | protected void | readCanvas(XmlElement selectNode, int tagId) | protected void | readCheckBox(XmlElement lblNode) | protected void | readCode(XmlElement codeNode) | protected void | readDockPanel(XmlElement selectNode, int tagId) | protected void | readFlowPanel(XmlElement selectNode, int tagId) | protected void | readForm(XmlElement model) | protected XModel | readItem(XmlElement itemsetNode) | protected XModel | readItemset(XmlElement itemsetNode) | protected void | readList(XmlElement model) | public PageSupport | readPage(Reader reader, String pageName, boolean include) Read an XML description of the page and construct a new XPage. | protected void | readScrollbar(XmlElement model, boolean isHorizontal) | protected void | readSlider(XmlElement model, boolean isHorizontal) | protected void | readTable(XmlElement tableNode) | protected void | readText(XmlElement btnNode) | protected void | readTextBox(XmlElement btnNode) | protected void | setupFormTags() | protected void | setupPage(XmlElement model, String pageName, boolean include) |
BORDER | final public static int BORDER(Code) | | |
BUTTON | final public static int BUTTON(Code) | | |
CANVAS | final public static int CANVAS(Code) | | |
CHECKBOX | final public static int CHECKBOX(Code) | | |
CODE | final public static int CODE(Code) | | |
DOCKPANEL | final public static int DOCKPANEL(Code) | | |
DOCK_PANEL_AREA_BOTTOM | final public static int DOCK_PANEL_AREA_BOTTOM(Code) | | |
DOCK_PANEL_AREA_FILL | final public static int DOCK_PANEL_AREA_FILL(Code) | | |
DOCK_PANEL_AREA_LEFT | final public static int DOCK_PANEL_AREA_LEFT(Code) | | |
DOCK_PANEL_AREA_RIGHT | final public static int DOCK_PANEL_AREA_RIGHT(Code) | | |
DOCK_PANEL_AREA_TOP | final public static int DOCK_PANEL_AREA_TOP(Code) | | |
FLOWPANEL | final public static int FLOWPANEL(Code) | | |
HORIZONTALSCROLLBAR | final public static int HORIZONTALSCROLLBAR(Code) | | |
HORIZONTALSLIDER | final public static int HORIZONTALSLIDER(Code) | | |
LISTBOX | final public static int LISTBOX(Code) | | |
RADIOBUTTON | final public static int RADIOBUTTON(Code) | | |
TABLE | final public static int TABLE(Code) | | |
TEXT | final public static int TEXT(Code) | | |
TEXTBOX | final public static int TEXTBOX(Code) | | |
VERTICALSCROLLBAR | final public static int VERTICALSCROLLBAR(Code) | | |
VERTICALSLIDER | final public static int VERTICALSLIDER(Code) | | |
XAML_DEF_XMLNS | final public static String XAML_DEF_XMLNS(Code) | | |
dockPanelPositions | final protected static String dockPanelPositions(Code) | | |
InfopathBuilder | public InfopathBuilder(XProject project)(Code) | | |
addComponent | protected Component addComponent(String childName, XmlElement childNode)(Code) | | Adds an individual component element to the page (this method may be called
recursively for nested elements). Several methods will be attempted until a
component is successfully created. Firstly the built-in component types are
checked, then any additional registered component constructors. The types
can be specified by type ID, type name or class name.
Parameters: childName - the name of the child element Parameters: childNode - the XML element containing the component specification. the new component |
getType | public String getType()(Code) | | Get the page loader type - a unique name identifying the loader
"infopath" |
parseColorAttribute | protected Color parseColorAttribute(String colorName)(Code) | | Gets a color value from a name or an RGB value
Parameters: colorName - the color or null if no color can be matched |
readCanvas | protected void readCanvas(XmlElement selectNode, int tagId)(Code) | | Read a select node
Parameters: selectNode - the xml representing the select item Parameters: tagId - the enumerated tag type for this node |
readDockPanel | protected void readDockPanel(XmlElement selectNode, int tagId)(Code) | | Read a select node
Parameters: selectNode - the xml representing the select item Parameters: tagId - the enumerated tag type for this node |
readFlowPanel | protected void readFlowPanel(XmlElement selectNode, int tagId)(Code) | | Read a flowpanel node
Parameters: selectNode - the xml representing the select item Parameters: tagId - the enumerated tag type for this node |
readForm | protected void readForm(XmlElement model)(Code) | | Read a form element
Parameters: model - the XML true if the children require further processing |
readPage | public PageSupport readPage(Reader reader, String pageName, boolean include)(Code) | | Read an XML description of the page and construct a new XPage. An instance
of the class specified by the class attribute is constructed or else an
instance of XPage if no class attribute is specified. The new page is
populated but is not yet added to its parent.
The startup file parameter 'DefaultClass' is used to obtain a default for
each page's class if a class parameter is not specified in the page's XML
The startup file parameter 'Validations' is used to obtain a default for
each page's set of validation rules
Parameters: reader - a input stream from which to read the page Parameters: pageName - the name of the page Parameters: include - the page to be loaded is being included in another page the page |
readScrollbar | protected void readScrollbar(XmlElement model, boolean isHorizontal)(Code) | | |
readSlider | protected void readSlider(XmlElement model, boolean isHorizontal)(Code) | | |
setupFormTags | protected void setupFormTags()(Code) | | |
|
|