| java.lang.Object net.xoetrope.builder.editor.XuiWriter
XuiWriter | public class XuiWriter (Code) | | Write out the XML description of an XUI page.
Copyright: Copyright (c) Xoetrope Ltd., 2002-2003
version: $Revision: 1.24 $ |
implementingClassName | protected String implementingClassName(Code) | | |
addPluginProperties | protected void addPluginProperties(IXMLElement element)(Code) | | Allow each plugin to add attributes to the pages
Parameters: element - |
addPluginProperties | protected void addPluginProperties(Component comp, IXMLElement childXml)(Code) | | Allow each plugin to add attributes to the pages
Parameters: element - |
writeBindings | protected int writeBindings(XPage page, IXMLElement element)(Code) | | Write out the component data bindings and their attributes. Each 'bind'
node must have the 'target' and 'source' attributes and may optionally have
the 'output' and 'type' attributes. The 'target' attributes identifies the
target component or the component whose content/state will be modified. The
'source' node identifies the data source in the data model while the
'output' node identifies the node where the component state or output is
saved. The output node is optional and is used to distinguish initial data
or content from the selection state or user input values. The 'type'
attribute is used to distinguish the type of binding where a component may
have multiple bindings, for example a radio button may have a text and a
state binding.
Parameters: page - the page being loaded Parameters: element - the bindings xml element the number of elements written |
writeComponents | protected void writeComponents(Container page, IXMLElement element)(Code) | | Write out the components and their attributes
Parameters: page - Parameters: element - |
writeEvent | public int writeEvent(IXMLElement element, String methodName, String target, String handlerName)(Code) | | Append the XML for an event node
Parameters: element - the parent element Parameters: method - the response method name Parameters: target - the componentto which the method responds Parameters: handlerName - the name/type of event handler to be used |
writeEvents | protected int writeEvents(Container page, IXMLElement element)(Code) | | Write out the component events and their attributes
Parameters: page - the target page Parameters: element - the XML element to which the node is added the number of elements written |
writeValidations | protected int writeValidations(Container page, IXMLElement element)(Code) | | Append the XML for the validations
Parameters: element - the parent element Parameters: method - the response method name Parameters: target - the componentto which the method responds Parameters: handlerName - the name/type of event handler to be used |
|
|