class Tag
Direct Known Subclasses:
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.
| Constructor Summary |
|---|
| void | The instance initializer. |
| Method Summary |
|---|
| void | Sdds a child to the list of this tag's children; may be vetoed by onAppendChild(). |
| Array<jsx3.html.Tag> | Returns the children tags. |
| String | Returns the cssClass field. |
| jsx3.html.Tag | Returns the first child tag of type type. |
| String | Returns the id field. |
| jsx3.html.Tag | Returns the parent tag. |
| String | Returns an attribute of this HTML element. |
| String | Returns a style of this HTML element. |
| String | Returns the namespace of this HTML element. |
| String | Returns the name of this HTML element, such as "table" or "div". |
| protected boolean | Called before appending a child. |
| protected boolean | Called before removing a child. |
| String | Serializes this HTML element to an HTML string using various overridable methods in this class. |
| HTMLElement | Prepares this HTML element for insertion into the live browser DOM and returns the underlying native HTML element. |
| protected void | This method is called on each HTML tag before it is painted to screen. |
| void | Releases all bi-directional references between this instance and its children. |
| void | Removes a child from the list of this tag's children; may be vetoed by onRemoveChild(). |
| void | Removes all the children of this tag. |
| void | Removes any number of properties from this HTML element. |
| void | Removes any number of styles from this HTML element. |
| void | Replaces a child of this tag. |
| void | Sets the cssClass field, the HTML 'class' attribute. |
| void | Sets the extraStyles field, this string is prepended as-is to the generated value for the style attribute of the tag. |
| void | Sets the id field. |
| void | Sets an attribute of this HTML element. |
| void | Sets a style of this HTML element. |
| String | |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
The instance initializer.
Parameters:
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
Returns the children tags.
Returns:
children
Returns the cssClass field.
Returns:
cssClass
Returns the first child tag of type type.
Parameters:
type – the fully-qualified class name or the class constructor function.
Returns:
Returns the id field.
Returns:
id
Returns the parent tag.
Returns:
parent
Returns an attribute of this HTML element.
Parameters:
strName – the name of the attribute.
Returns:
the value of the attribute.
Returns a style of this HTML element.
Parameters:
strName – the name of the style.
Returns:
the value of the style.
Returns the namespace of this HTML element.
Returns:
the tag name
Returns the name of this HTML element, such as "table" or "div".
Returns:
the tag name
Called before appending a child.
Parameters:
Returns:
true to allow the append, false to veto.
Called before removing a child.
Parameters:
Returns:
true to allow the removal, false to veto.
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.
Returns:
this tag serialized to HTML.
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.
Returns:
the native browser html element.
protected void paintUpdate()
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().
void release()
Releases all bi-directional references between this instance and its children.
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
void removeChildren()
Removes all the children of this tag.
void removeProperty(strName
: String...)
Removes any number of properties from this HTML element.
Parameters:
strName – the names of the attributes.
void removeStyle(strName
: String...)
Removes any number of styles from this HTML element.
Parameters:
strName – the names of the styles.
Replaces a child of this tag.
Parameters:
child – the new child.
oldChild – the child to replace.
void setClassName(cssClass
: String)
Sets the cssClass field, the HTML 'class' attribute.
Parameters:
cssClass – the new value for cssClass
void setExtraStyles(extraStyles
: String)
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
Sets the id field.
Parameters:
id – the new value for id
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.
strValue – the value of the attribute. If null, the attribute is removed.
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.
strValue – the value of the style.
Copyright © 2001-2007, TIBCO Software Inc.