| 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 |
Method Summary | |
public void | appendChild(jsx3.html.Tag child) Sdds a child to the list of this tag's children; may be vetoed by onAppendChild(). | public void | getChildren(org.directwebremoting.proxy.Callback<Object[]> callback) Returns the children tags. | public void | getClassName(org.directwebremoting.proxy.Callback<String> callback) Returns the cssClass field. | public jsx3.html.Tag | getFirstChildOfType(String type) Returns the first child tag of type type. | public T | getFirstChildOfType(String type, Class<T> returnType) Returns the first child tag of type type. | public jsx3.html.Tag | getFirstChildOfType(org.directwebremoting.proxy.CodeBlock type) Returns the first child tag of type type. | public T | getFirstChildOfType(org.directwebremoting.proxy.CodeBlock type, Class<T> returnType) Returns the first child tag of type type. | public void | getId(org.directwebremoting.proxy.Callback<String> callback) Returns the id field. | public jsx3.html.Tag | getParent() Returns the parent tag. | public T | getParent(Class<T> returnType) Returns the parent tag. | public void | getProperty(String strName, org.directwebremoting.proxy.Callback<String> callback) Returns an attribute of this HTML element. | public void | getStyle(String strName, org.directwebremoting.proxy.Callback<String> callback) Returns a style of this HTML element. | public void | getTagNS(org.directwebremoting.proxy.Callback<String> callback) Returns the namespace of this HTML element. | public void | getTagName(org.directwebremoting.proxy.Callback<String> callback) Returns the name of this HTML element, such as "table" or "div". | public void | onAppendChild(jsx3.html.Tag child, org.directwebremoting.proxy.Callback<Boolean> callback) Called before appending a child. | public void | onRemoveChild(jsx3.html.Tag child, org.directwebremoting.proxy.Callback<Boolean> callback) Called before removing a child. | public void | paint(org.directwebremoting.proxy.Callback<String> callback) Serializes this HTML element to an HTML string using various overridable methods in this class. | public void | paintDom(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 void | paintUpdate() This method is called on each HTML tag before it is painted to screen. | public void | release() Releases all bi-directional references between this instance and its children. | public void | removeChild(jsx3.html.Tag child) Removes a child from the list of this tag's children; may be vetoed by onRemoveChild(). | public void | removeChildren() Removes all the children of this tag. | public void | removeProperty(String strName) Removes any number of properties from this HTML element. | public void | removeStyle(String strName) Removes any number of styles from this HTML element. | public void | replaceChild(jsx3.html.Tag child, jsx3.html.Tag oldChild) Replaces a child of this tag. | public void | setClassName(String cssClass) Sets the cssClass field, the HTML 'class' attribute. | public void | setExtraStyles(String extraStyles) Sets the extraStyles field, this string is prepended as-is to the generated value for the style attribute of the tag. | public void | setId(String id) Sets the id field. | public void | setProperty(String strName, String strValue) Sets an attribute of this HTML element. | public void | setStyle(String strName, String strValue) Sets a style of this HTML element. |
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 - |
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 |
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 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 |
getParent | public T getParent(Class<T> returnType)(Code) | | Returns the parent tag.
Parameters: returnType - The expected return type parent |
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)
|
|
|