Java Doc for CompiledObject.java in  » XML-UI » JAXX » jaxx » compiler » 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 » JAXX » jaxx.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jaxx.compiler.CompiledObject

All known Subclasses:   jaxx.tags.swing.CompiledItemContainer,  jaxx.compiler.ScriptInitializer,
CompiledObject
public class CompiledObject (Code)
Represents an object in the .java file being generated during compilation. There is a CompiledObject for each class tag encountered, and certain tags may generate additional objects for various reasons.



Constructor Summary
public  CompiledObject(String id, ClassDescriptor objectClass, JAXXCompiler compiler)
     Creates a new CompiledObject.
public  CompiledObject(String id, ClassDescriptor objectClass, JAXXCompiler compiler, boolean force)
     Creates a new CompiledObject.
public  CompiledObject(String id, String javaCode, ClassDescriptor objectClass, JAXXCompiler compiler, boolean force)
     Creates a new CompiledObject.

Method Summary
public  voidaddChild(CompiledObject child, JAXXCompiler compiler)
     Adds a child component to this container.
public  voidaddChild(CompiledObject child, String constraints, JAXXCompiler compiler)
     Adds a child component to this container.
public  voidaddEventHandler(String eventId, Method addMethod, Method listenerMethod, String code, JAXXCompiler compiler)
    
public  voidaddEventHandler(String eventId, MethodDescriptor addMethod, MethodDescriptor listenerMethod, String code, JAXXCompiler compiler)
     Adds an event listener to this object.
public  voidaddProperty(String property, String value)
     Stores a property for this object.
public  voidappendAdditionCode(String code)
     Appends code to the addition code block.
public  voidappendInitializationCode(String code)
     Appends code to the initialization code block.
public  StringgetAdditionCode()
     Returns Java code to complete final setup on this object.
public  StringgetAdditionMethodName()
     Returns the name of the method that should be generated in the compiled .java file in order to add children to this object.
public  StringgetConstructorParams()
     Returns a list of comma-separated Java code snippets that represent the parameters to pass to this object's constructor.
public  StringgetCreationMethodName()
     Returns the name of the method that should be generated in the compiled .java file in order to create this object.
public  StringgetId()
     Returns this object's id.
public  StringgetInitializationCode(JAXXCompiler compiler)
     Returns the code that performs basic initialization of this object, after it has already been constructed.
protected  StringgetInitializationCode(EventHandler handler, JAXXCompiler compiler)
    
public  StringgetJavaCode()
     Returns Java code used to refer to this object in the compiled Java file.
public  ClassDescriptorgetObjectClass()
     Returns the type of this object.
public  CompiledObjectgetParent()
     Returns this object's parent container.
public  MapgetProperties()
     Returns all properties which have been set for this object.
public  StringgetStyleClass()
     Returns this object's CSS style class.
public  booleanisOverride()
     True if this object overrides an object in the superclass of the class being compiled.
public static  booleanisValidID(String id)
    
public  voidregisterDataBinding(String src, String property, String assignment, JAXXCompiler compiler)
    
public  voidsetConstructorParams(String constructorParams)
     Sets the parameters to pass to this object's constructor.
public  voidsetOverride(boolean override)
     Sets whether this class overrides an identically-named object in the parent class.
public  voidsetParent(CompiledObject parent)
     Sets this object's parent container.
public  voidsetStyleClass(String styleClass)
     Sets this object's CSS style class.
public  StringtoString()
    


Constructor Detail
CompiledObject
public CompiledObject(String id, ClassDescriptor objectClass, JAXXCompiler compiler)(Code)
Creates a new CompiledObject. To be useful, the object should be registered with a JAXXCompiler using JAXXCompiler.registerCompiledObject registerCompiledObject .
Parameters:
  id - the object's id
Parameters:
  objectClass - the object's class
Parameters:
  compiler - the current JAXXCompiler
throws:
  NullPointerException - if id or class is null



CompiledObject
public CompiledObject(String id, ClassDescriptor objectClass, JAXXCompiler compiler, boolean force)(Code)
Creates a new CompiledObject. To be useful, the object should be registered with a JAXXCompiler using JAXXCompiler.registerCompiledObject registerCompiledObject .
Parameters:
  id - the object's id
Parameters:
  objectClass - the object's class
Parameters:
  compiler - the current JAXXCompiler
Parameters:
  force - true to force acceptance of invalid ids
throws:
  NullPointerException - if id or class is null



CompiledObject
public CompiledObject(String id, String javaCode, ClassDescriptor objectClass, JAXXCompiler compiler, boolean force) throws CompilerException(Code)
Creates a new CompiledObject. To be useful, the object should be registered with a JAXXCompiler using JAXXCompiler.registerCompiledObject registerCompiledObject .
Parameters:
  id - the object's id
Parameters:
  javaCode - Java code referring to the object
Parameters:
  objectClass - the object's class
Parameters:
  force - true to force acceptance of invalid ids
Parameters:
  compiler - the current JAXXCompiler
throws:
  CompilerException - if the id is not a valid Java identifier
throws:
  NullPointerException - if id or class is null




Method Detail
addChild
public void addChild(CompiledObject child, JAXXCompiler compiler) throws CompilerException(Code)
Adds a child component to this container. The child is added without layout constraints.
Parameters:
  child - the component to add
Parameters:
  compiler - the current JAXXCompiler
throws:
  CompilerException - if this object is not a container
See Also:   CompiledObject.addChild(CompiledObject,String,JAXXCompiler)



addChild
public void addChild(CompiledObject child, String constraints, JAXXCompiler compiler) throws CompilerException(Code)
Adds a child component to this container. This variant allows the Java code for a layout constraints object to be specified.
Parameters:
  child - the component to add
Parameters:
  constraints - Java code for the layout constraints object
Parameters:
  compiler - the current JAXXCompiler
throws:
  CompilerException - if this object is not a container
See Also:   CompiledObject.addChild(CompiledObject,JAXXCompiler)



addEventHandler
public void addEventHandler(String eventId, Method addMethod, Method listenerMethod, String code, JAXXCompiler compiler)(Code)



addEventHandler
public void addEventHandler(String eventId, MethodDescriptor addMethod, MethodDescriptor listenerMethod, String code, JAXXCompiler compiler)(Code)
Adds an event listener to this object. The generated code will appear in the initialization block.
Parameters:
  eventId - unique (per CompiledObject) identifier for the event handler
Parameters:
  addMethod - the method which adds the event listener
Parameters:
  listenerMethod - the method (in the listener class) which is called when the event is fired
Parameters:
  code - the Java code for the listenerMethod's body
Parameters:
  compiler - the current JAXXCompiler
See Also:   CompiledObject.getInitializationCode



addProperty
public void addProperty(String property, String value)(Code)
Stores a property for this object. The only effect of calling this method is that the property will be returned by getProperties().
Parameters:
  property - the name of the property
Parameters:
  value - the property's value
See Also:   CompiledObject.getProperties



appendAdditionCode
public void appendAdditionCode(String code)(Code)
Appends code to the addition code block. A line separator is automatically appended to the end.
Parameters:
  code - the code to add to the addition block
See Also:   CompiledObject.getAdditionCode



appendInitializationCode
public void appendInitializationCode(String code)(Code)
Appends code to the initialization code block. A line separator is automatically appended to the end.
Parameters:
  code - the code to add to the initialization block
See Also:   CompiledObject.getInitializationCode



getAdditionCode
public String getAdditionCode()(Code)
Returns Java code to complete final setup on this object. This code may reference other CompiledObjects, as they are guaranteed to have all been created by this point. code which adds children and performs final setup



getAdditionMethodName
public String getAdditionMethodName()(Code)
Returns the name of the method that should be generated in the compiled .java file in order to add children to this object. This is just a suggestion and may be ignored. the suggested name of the method which completes this object's setup



getConstructorParams
public String getConstructorParams()(Code)
Returns a list of comma-separated Java code snippets that represent the parameters to pass to this object's constructor. the raw constructor params
See Also:   CompiledObject.setConstructorParams



getCreationMethodName
public String getCreationMethodName()(Code)
Returns the name of the method that should be generated in the compiled .java file in order to create this object. This is just a suggestion and may be ignored. the suggested name of the method which initializes this object



getId
public String getId()(Code)
Returns this object's id. Generally, a field with this name will be created in the compiled .java file in order to represent this object. the id used to refer to this object



getInitializationCode
public String getInitializationCode(JAXXCompiler compiler)(Code)
Returns the code that performs basic initialization of this object, after it has already been constructed. This basic code should not reference any other CompiledObjects as they may not have been created yet. the code which initializes this object



getInitializationCode
protected String getInitializationCode(EventHandler handler, JAXXCompiler compiler)(Code)



getJavaCode
public String getJavaCode()(Code)
Returns Java code used to refer to this object in the compiled Java file. This is usually the same as its id. the Java code for this object



getObjectClass
public ClassDescriptor getObjectClass()(Code)
Returns the type of this object. the class this CompiledObject represents



getParent
public CompiledObject getParent()(Code)
Returns this object's parent container. Non-visual components (and the root container) return null. the object's parent container



getProperties
public Map getProperties()(Code)
Returns all properties which have been set for this object. a Map containing all properties defined for this object
See Also:   CompiledObject.addProperty



getStyleClass
public String getStyleClass()(Code)
Returns this object's CSS style class. the value of the styleClass attribute



isOverride
public boolean isOverride()(Code)
True if this object overrides an object in the superclass of the class being compiled. For this to be true, the class currently being compiled must be a subclass of another JAXXObject which has an identically-named object. true if this object is an override
See Also:   CompiledObject.setOverride



isValidID
public static boolean isValidID(String id)(Code)



registerDataBinding
public void registerDataBinding(String src, String property, String assignment, JAXXCompiler compiler) throws CompilerException(Code)



setConstructorParams
public void setConstructorParams(String constructorParams)(Code)
Sets the parameters to pass to this object's constructor.
Parameters:
  constructorParams - comma-separated Java code snippets representing constructor params
See Also:   CompiledObject.getConstructorParams



setOverride
public void setOverride(boolean override)(Code)
Sets whether this class overrides an identically-named object in the parent class.
Parameters:
  override - true if this object is an override
See Also:   CompiledObject.isOverride



setParent
public void setParent(CompiledObject parent)(Code)
Sets this object's parent container.
Parameters:
  parent - the parent container



setStyleClass
public void setStyleClass(String styleClass)(Code)
Sets this object's CSS style class.
Parameters:
  styleClass - the new style class



toString
public String toString()(Code)



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.