Java Doc for Tag.java in  » Ajax » dwr » jsx3 » html » 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 » Ajax » dwr » jsx3.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.directwebremoting.proxy.io.Context
      jsx3.lang.Object
         jsx3.html.Tag

All known Subclasses:   jsx3.vector.Fill,  jsx3.vector.Stroke,  jsx3.html.Text,  jsx3.html.BlockTag,
Tag
public class Tag extends jsx3.lang.Object (Code)
Represents an HTML element. Provides an object oriented way of painting to screen. This class is available only when the Charting add-in is enabled.
author:
   Joe Walker [joe at getahead dot org]
author:
   DRAPGEN - Dwr Reverse Ajax Proxy GENerator



Constructor Summary
public  Tag(Context context, String extension, ScriptProxy scriptProxy)
    
public  Tag(String strTagNS, String strTagName)
     The instance initializer.

Method Summary
public  voidappendChild(jsx3.html.Tag child)
     Sdds a child to the list of this tag's children; may be vetoed by onAppendChild().
public  voidgetChildren(org.directwebremoting.proxy.Callback<Object[]> callback)
     Returns the children tags.
public  voidgetClassName(org.directwebremoting.proxy.Callback<String> callback)
     Returns the cssClass field.
public  jsx3.html.TaggetFirstChildOfType(String type)
     Returns the first child tag of type type.
public  TgetFirstChildOfType(String type, Class<T> returnType)
     Returns the first child tag of type type.
public  jsx3.html.TaggetFirstChildOfType(org.directwebremoting.proxy.CodeBlock type)
     Returns the first child tag of type type.
public  TgetFirstChildOfType(org.directwebremoting.proxy.CodeBlock type, Class<T> returnType)
     Returns the first child tag of type type.
public  voidgetId(org.directwebremoting.proxy.Callback<String> callback)
     Returns the id field.
public  jsx3.html.TaggetParent()
     Returns the parent tag.
public  TgetParent(Class<T> returnType)
     Returns the parent tag.
public  voidgetProperty(String strName, org.directwebremoting.proxy.Callback<String> callback)
     Returns an attribute of this HTML element.
public  voidgetStyle(String strName, org.directwebremoting.proxy.Callback<String> callback)
     Returns a style of this HTML element.
public  voidgetTagNS(org.directwebremoting.proxy.Callback<String> callback)
     Returns the namespace of this HTML element.
public  voidgetTagName(org.directwebremoting.proxy.Callback<String> callback)
     Returns the name of this HTML element, such as "table" or "div".
public  voidonAppendChild(jsx3.html.Tag child, org.directwebremoting.proxy.Callback<Boolean> callback)
     Called before appending a child.
public  voidonRemoveChild(jsx3.html.Tag child, org.directwebremoting.proxy.Callback<Boolean> callback)
     Called before removing a child.
public  voidpaint(org.directwebremoting.proxy.Callback<String> callback)
     Serializes this HTML element to an HTML string using various overridable methods in this class.
public  voidpaintDom(org.directwebremoting.proxy.Callback<String> callback)
     Prepares this HTML element for insertion into the live browser DOM and returns the underlying native HTML element.
public  voidpaintUpdate()
     This method is called on each HTML tag before it is painted to screen.
public  voidrelease()
     Releases all bi-directional references between this instance and its children.
public  voidremoveChild(jsx3.html.Tag child)
     Removes a child from the list of this tag's children; may be vetoed by onRemoveChild().
public  voidremoveChildren()
     Removes all the children of this tag.
public  voidremoveProperty(String strName)
     Removes any number of properties from this HTML element.
public  voidremoveStyle(String strName)
     Removes any number of styles from this HTML element.
public  voidreplaceChild(jsx3.html.Tag child, jsx3.html.Tag oldChild)
     Replaces a child of this tag.
public  voidsetClassName(String cssClass)
     Sets the cssClass field, the HTML 'class' attribute.
public  voidsetExtraStyles(String extraStyles)
     Sets the extraStyles field, this string is prepended as-is to the generated value for the style attribute of the tag.
public  voidsetId(String id)
     Sets the id field.
public  voidsetProperty(String strName, String strValue)
     Sets an attribute of this HTML element.
public  voidsetStyle(String strName, String strValue)
     Sets a style of this HTML element.


Constructor Detail
Tag
public Tag(Context context, String extension, ScriptProxy scriptProxy)(Code)
All reverse ajax proxies need context to work from
Parameters:
  scriptProxy - The place we are writing scripts to
Parameters:
  context - The script that got us to where we are now



Tag
public Tag(String strTagNS, String strTagName)(Code)
The instance initializer.
Parameters:
  strTagNS -
Parameters:
  strTagName -




Method Detail
appendChild
public void appendChild(jsx3.html.Tag child)(Code)
Sdds a child to the list of this tag's children; may be vetoed by onAppendChild().
Parameters:
  child - the child to add, must not already have a parent



getChildren
public void getChildren(org.directwebremoting.proxy.Callback<Object[]> callback)(Code)
Returns the children tags.
Parameters:
  callback - children



getClassName
public void getClassName(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the cssClass field.
Parameters:
  callback - cssClass



getFirstChildOfType
public jsx3.html.Tag getFirstChildOfType(String type)(Code)
Returns the first child tag of type type.
Parameters:
  type - the fully-qualified class name or the class constructor function.



getFirstChildOfType
public T getFirstChildOfType(String type, Class<T> returnType)(Code)
Returns the first child tag of type type.
Parameters:
  type - the fully-qualified class name or the class constructor function.
Parameters:
  returnType - The expected return type



getFirstChildOfType
public jsx3.html.Tag getFirstChildOfType(org.directwebremoting.proxy.CodeBlock type)(Code)
Returns the first child tag of type type.
Parameters:
  type - the fully-qualified class name or the class constructor function.



getFirstChildOfType
public T getFirstChildOfType(org.directwebremoting.proxy.CodeBlock type, Class<T> returnType)(Code)
Returns the first child tag of type type.
Parameters:
  type - the fully-qualified class name or the class constructor function.
Parameters:
  returnType - The expected return type



getId
public void getId(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the id field.
Parameters:
  callback - id



getParent
public jsx3.html.Tag getParent()(Code)
Returns the parent tag. parent



getParent
public T getParent(Class<T> returnType)(Code)
Returns the parent tag.
Parameters:
  returnType - The expected return type parent



getProperty
public void getProperty(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns an attribute of this HTML element.
Parameters:
  strName - the name of the attribute.
Parameters:
  callback - the value of the attribute.



getStyle
public void getStyle(String strName, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns a style of this HTML element.
Parameters:
  strName - the name of the style.
Parameters:
  callback - the value of the style.



getTagNS
public void getTagNS(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the namespace of this HTML element.
Parameters:
  callback - the tag name



getTagName
public void getTagName(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the name of this HTML element, such as "table" or "div".
Parameters:
  callback - the tag name



onAppendChild
public void onAppendChild(jsx3.html.Tag child, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)
Called before appending a child.
Parameters:
  child -
Parameters:
  callback - true to allow the append, false to veto.



onRemoveChild
public void onRemoveChild(jsx3.html.Tag child, org.directwebremoting.proxy.Callback<Boolean> callback)(Code)
Called before removing a child.
Parameters:
  child -
Parameters:
  callback - true to allow the removal, false to veto.



paint
public void paint(org.directwebremoting.proxy.Callback<String> callback)(Code)
Serializes this HTML element to an HTML string using various overridable methods in this class. This method is only available in the VML version of this class.
Parameters:
  callback - this tag serialized to HTML.



paintDom
public void paintDom(org.directwebremoting.proxy.Callback<String> callback)(Code)
Prepares this HTML element for insertion into the live browser DOM and returns the underlying native HTML element. This method is only available in the SVG version of this class.
Parameters:
  callback - the native browser html element.



paintUpdate
public void paintUpdate()(Code)
This method is called on each HTML tag before it is painted to screen. Methods in subclasses of this class that override this method should begin with a call to jsxsuper().



release
public void release()(Code)
Releases all bi-directional references between this instance and its children.



removeChild
public void removeChild(jsx3.html.Tag child)(Code)
Removes a child from the list of this tag's children; may be vetoed by onRemoveChild().
Parameters:
  child - the child to remove, must exist in the list of children



removeChildren
public void removeChildren()(Code)
Removes all the children of this tag.



removeProperty
public void removeProperty(String strName)(Code)
Removes any number of properties from this HTML element.
Parameters:
  strName - the names of the attributes.



removeStyle
public void removeStyle(String strName)(Code)
Removes any number of styles from this HTML element.
Parameters:
  strName - the names of the styles.



replaceChild
public void replaceChild(jsx3.html.Tag child, jsx3.html.Tag oldChild)(Code)
Replaces a child of this tag.
Parameters:
  child - the new child.
Parameters:
  oldChild - the child to replace.



setClassName
public void setClassName(String cssClass)(Code)
Sets the cssClass field, the HTML 'class' attribute.
Parameters:
  cssClass - the new value for cssClass



setExtraStyles
public void setExtraStyles(String extraStyles)(Code)
Sets the extraStyles field, this string is prepended as-is to the generated value for the style attribute of the tag.
Parameters:
  extraStyles - the new value for extraStyles



setId
public void setId(String id)(Code)
Sets the id field.
Parameters:
  id - the new value for id



setProperty
public void setProperty(String strName, String strValue)(Code)
Sets an attribute of this HTML element. This method may be called with a variable number of arguments, which are interpreted as name/value pairs, i.e.: tag.setProperty(n1, p1, n2, p2);.
Parameters:
  strName - the name of the attribute.
Parameters:
  strValue - the value of the attribute. If null, the attribute is removed.



setStyle
public void setStyle(String strName, String strValue)(Code)
Sets a style of this HTML element. This method may be called with a variable number of arguments, which are interpreted as name/value pairs, i.e.: tag.setStyle(n1, s1, n2, s2);.
Parameters:
  strName - the name of the style.
Parameters:
  strValue - the value of the style.



Methods inherited from jsx3.lang.Object
public void ignoreReturn()(Code)(Java Doc)

Methods inherited from org.directwebremoting.proxy.io.Context
protected String getContextPath()(Code)(Java Doc)
protected ScriptBuffer getInitScript()(Code)(Java Doc)
protected ScriptProxy getScriptProxy()(Code)(Java Doc)
protected void setInitScript(ScriptBuffer initScript)(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.