| java.lang.Object net.xoetrope.builder.XuiBuilder net.xoetrope.builder.editor.XEditorXuiBuilder
XEditorXuiBuilder | public class XEditorXuiBuilder extends XuiBuilder (Code) | | Subclasses the XuiBuilder primarily to listen for the events being registered
for components
Copyright (c) Xoetrope Ltd., 1998-2004
$Revision: 1.19 $
License: see license.txt
|
Method Summary | |
protected void | addBindings(XPage page, XmlElement model) Adds data bindings to the page. | protected Component | addComponent(XmlElement childNode) Adds an individual component element to the page (this method may be called
recursively for nested elements). | protected void | addHandler(XPage xPage, Component targetComp, String typeStr, String name) Overrides the super method. | public Object | evaluateAttribute(XPage page, String attributeValue) Get the value of an attribute. | protected XPage | loadClass(String className) Loads a class as the basis for a page. | public XPage | loadPage(String defPackageName, String pageName, boolean include, boolean fullPathProvided) Loads an XPage via a reader obtained from the XResourceManager (searches
the classpath). | public void | setAttributeEvaluator(XAttributeEvaluator e) Set the attribute evaluator object. | public void | setPageAttribute(Component c, String attributeName, String attributeValue) | protected void | setPageName(String pageName) |
addBindings | protected void addBindings(XPage page, XmlElement model)(Code) | | Adds data bindings to the page.
Parameters: page - the page to which the component/data bindings are added Parameters: model - the data model |
addComponent | protected Component addComponent(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: childNode - the XML element containing the component specification. |
addHandler | protected void addHandler(XPage xPage, Component targetComp, String typeStr, String name)(Code) | | Overrides the super method. First call the super method and then register
the event with the Project. This allows the editor to display the
methods for components when they are selected and also to save them.
Parameters: xpage - The page that contains the response methods Parameters: targetComp - the component to which the event handler is added Parameters: typeStr - the type of handler Parameters: name - the name of the response method |
evaluateAttribute | public Object evaluateAttribute(XPage page, String attributeValue)(Code) | | Get the value of an attribute.
Parameters: page - the page being loaded Parameters: attributeValue - the raw value of the attribute the evaluated value of the attribute |
loadPage | public XPage loadPage(String defPackageName, String pageName, boolean include, boolean fullPathProvided)(Code) | | Loads an XPage via a reader obtained from the XResourceManager (searches
the classpath). The pageName is assumed to be the name of an XML file. For
example if the pageName is 'welcome' then the 'welcome.xml' file is read as
a UTF8 encoded XML file.
Parameters: defPackageName - the package or path to the page Parameters: pageName - the page name or the name of the class implementing the page Parameters: include - true if the page to be loaded is being included in anotherpage in which case any class attribute of the included page is ignored Parameters: fullPathProvided - the full path to the page name is provided the page |
setAttributeEvaluator | public void setAttributeEvaluator(XAttributeEvaluator e)(Code) | | Set the attribute evaluator object.
Parameters: e - the new evaluator |
setPageName | protected void setPageName(String pageName)(Code) | | |
Methods inherited from net.xoetrope.builder.XuiBuilder | protected void addBindings(XPage page, XmlElement model)(Code)(Java Doc) protected Component addComponent(XmlElement childNode)(Code)(Java Doc) protected void addComponents(Component page, XmlElement model)(Code)(Java Doc) protected void addEvents(XPage page, XmlElement model)(Code)(Java Doc) protected void addHandler(XPage xpage, Component targetComp, String typeStr, String name)(Code)(Java Doc) protected void addMenu(XPage page, XmlElement model)(Code)(Java Doc) protected void addValidations(XPage page, XmlElement model)(Code)(Java Doc) public Object evaluateAttribute(XPage page, String attributeValue)(Code)(Java Doc) public static Hashtable getCurrentAttributes()(Code)(Java Doc) protected XDataBinding getFactoryBinding(Component compType, XModel model, XmlElement bindingNode)(Code)(Java Doc) protected int getInt(String s, int def)(Code)(Java Doc) protected Object getMenuItem(String name)(Code)(Java Doc) protected XValidationFactory getValidationFactory(String validationFileName)(Code)(Java Doc) protected void init(String packageName)(Code)(Java Doc) protected XPage loadClass(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException(Code)(Java Doc) public void loadFrames(String defPackageName, String frameSetName, XPageDisplay pageDisplay)(Code)(Java Doc) public XPage loadPage(String defPackageName, String pageName, boolean include)(Code)(Java Doc) public XPage readPage(Reader reader, String pageName, boolean include)(Code)(Java Doc) public static void registerBindingFactory(XDataBindingFactory fact)(Code)(Java Doc) protected void setComponentAttributes(Component comp, Hashtable attribs)(Code)(Java Doc) public void setPackageName(String defPackageName)(Code)(Java Doc) public void setPageAttribute(Component c, String name, String value)(Code)(Java Doc) protected void setPageName(String pageName)(Code)(Java Doc) protected void setupPage(XmlElement model, String pageName, boolean include)(Code)(Java Doc)
|
|
|