Java Doc for XEditorXuiBuilder.java in  » XML-UI » XUI » net » xoetrope » builder » editor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML UI » XUI » net.xoetrope.builder.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
protected  XEditorProjectcurrentProject
    
protected  XPageResourcecurrentResource
    
protected  XAttributeEvaluatorevaluator
    
protected  XPageHolderpageHolder
    

Constructor Summary
public  XEditorXuiBuilder(XEditorProject project, XStyleFactory stylefact, XPageHolder ph)
    

Method Summary
protected  voidaddBindings(XPage page, XmlElement model)
     Adds data bindings to the page.
protected  ComponentaddComponent(XmlElement childNode)
     Adds an individual component element to the page (this method may be called recursively for nested elements).
protected  voidaddHandler(XPage xPage, Component targetComp, String typeStr, String name)
     Overrides the super method.
public  ObjectevaluateAttribute(XPage page, String attributeValue)
     Get the value of an attribute.
protected  XPageloadClass(String className)
     Loads a class as the basis for a page.
public  XPageloadPage(String defPackageName, String pageName, boolean include, boolean fullPathProvided)
     Loads an XPage via a reader obtained from the XResourceManager (searches the classpath).
public  voidsetAttributeEvaluator(XAttributeEvaluator e)
     Set the attribute evaluator object.
public  voidsetPageAttribute(Component c, String attributeName, String attributeValue)
    
protected  voidsetPageName(String pageName)
    

Field Detail
currentProject
protected XEditorProject currentProject(Code)



currentResource
protected XPageResource currentResource(Code)



evaluator
protected XAttributeEvaluator evaluator(Code)



pageHolder
protected XPageHolder pageHolder(Code)




Constructor Detail
XEditorXuiBuilder
public XEditorXuiBuilder(XEditorProject project, XStyleFactory stylefact, XPageHolder ph)(Code)
Construct a new builder and set a custom XStyleFactory
Parameters:
  stylefact - A custom XStyleFactory




Method Detail
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



loadClass
protected XPage loadClass(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException(Code)
Loads a class as the basis for a page. Reloads the class each time so that the code can be recompiled and reloaded for preview mode.
Parameters:
  className - the full class name an instance of the XPage class or a derivative
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -
throws:
  InstantiationException -



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



setPageAttribute
public void setPageAttribute(Component c, String attributeName, String attributeValue)(Code)



setPageName
protected void setPageName(String pageName)(Code)



Fields inherited from net.xoetrope.builder.XuiBuilder
protected Object checkBoxGroup(Code)(Java Doc)
protected XStyleFactory componentFactory(Code)(Java Doc)
protected static Hashtable currentAttributes(Code)(Java Doc)
protected XLayoutHelper layoutHelper(Code)(Java Doc)
protected XAppender menuBar(Code)(Java Doc)
protected String packageName(Code)(Java Doc)
protected XPage page(Code)(Java Doc)
protected XPage rootPage(Code)(Java Doc)
protected Hashtable validationFactories(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.