User Interface Description Language Target.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.terminal.web.WebPaintTarget
Parameters
out
A character-output stream.
Create a new XMLPrintWriter, without automatic line flushing.
Parameters
name
Attribute name
value
Attribute value
Adds a boolean attribute to component. Atributes must be added before any content is written.
Parameters
name
Attribute name
value
Attribute value
this object
Adds a integer attribute to component. Atributes must be added before any content is written.
Parameters
name
Attribute name
value
Attribute value
this object
Adds a long attribute to component. Atributes must be added before any content is written.
Parameters
name
Attribute name
value
Attribute value
Adds a resource attribute to component. Atributes must be added before any content is written.
Parameters
name
Boolean attribute name
value
Boolean attribute value
this object
Adds a string attribute to component. Atributes must be added before any content is written.
Parameters
text
Character data to add
3.1
Add CDATA node to target UIDL-tree.
Print single text section. Prints full text section. The section data is escaped from XML tags and surrounded by XML start and end-tags.
Parameters
owner
Listener for variable changes
name
Variable name
value
Variable initial value
Reference to this.
Add a upload stream type variable.
Parameters
owner
Listener for variable changes
name
Variable name
value
Variable initial value
Reference to this.
Add a boolean type variable.
Parameters
owner
Listener for variable changes
name
Variable name
value
Variable initial value
Reference to this.
Add a int type variable.
Parameters
owner
Listener for variable changes
name
Variable name
value
Variable initial value
Reference to this.
Add a string type variable.
Parameters
owner
Listener for variable changes
name
Variable name
value
Variable initial value
Reference to this.
Add a string array type variable.
Add XML section with namespace
Close the paint target. Paint target must be closed before the getUIDL() cn be called. Subsequent attempts to write to paint target. If the target was already closed, call to this function is ignored. will generate an exception.
Parameters
tag
The name of the end tag
Print element end tag. If the parent tag is closed before every child tag is closed a PaintException is raised.
Parameters
A new string instance where all occurrences of XML sensitive characters are substituted with entities.
Substitute the XML sensitive characters with predefined XML entities.
Parameters
xml
the String to be substituted
A new StringBuffer instance where all occurrences of XML sensitive characters are substituted with entities.
Substitute the XML sensitive characters with predefined XML entities.
Get the UIDL already printed to stream. Paint target must be closed before the getUIDL() cn be called.
Parameters
paintable
The paintable to start
tagName
The name of the start tag
false
3.1
Print element start tag of a paintable section. Starts a paintable section using the given tag. The PaintTarget may implement a caching scheme, that checks the paintable has actually changed or can a cached version be used instead. This method should call the startTag method.
If the Paintable is found in cache and this function returns true it may omit the content and close the tag, in which case cached content should be used.
Note: Web adapter does not currently implement caching and this function always returns false.