|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaintTarget
This interface defines the methods for painting XML to the UIDL stream.
Method Summary | |
---|---|
void |
addAttribute(String name,
boolean value)
Adds a boolean attribute to component. |
void |
addAttribute(String name,
double value)
Adds a double attribute to component. |
void |
addAttribute(String name,
float value)
Adds a float attribute to component. |
void |
addAttribute(String name,
int value)
Adds a integer attribute to component. |
void |
addAttribute(String name,
long value)
Adds a long attribute to component. |
void |
addAttribute(String string,
Object[] keys)
|
void |
addAttribute(String name,
Resource value)
Adds a resource attribute to component. |
void |
addAttribute(String name,
String value)
Adds a string attribute to component. |
void |
addCharacterData(String text)
Adds CDATA node to target UIDL-tree. |
void |
addSection(String sectionTagName,
String sectionData)
Prints single XMLsection. |
void |
addText(String text)
Adds text node. |
void |
addUIDL(String uidl)
Adds UIDL directly. |
void |
addUploadStreamVariable(VariableOwner owner,
String name)
Adds a upload stream type variable. |
void |
addVariable(VariableOwner owner,
String name,
boolean value)
Adds a boolean type variable. |
void |
addVariable(VariableOwner owner,
String name,
double value)
Adds a double type variable. |
void |
addVariable(VariableOwner owner,
String name,
float value)
Adds a float type variable. |
void |
addVariable(VariableOwner owner,
String name,
int value)
Adds a int type variable. |
void |
addVariable(VariableOwner owner,
String name,
long value)
Adds a long type variable. |
void |
addVariable(VariableOwner owner,
String name,
String value)
Adds a string type variable. |
void |
addVariable(VariableOwner owner,
String name,
String[] value)
Adds a string array type variable. |
void |
addXMLSection(String sectionTagName,
String sectionData,
String namespace)
Prints single XML section. |
void |
endTag(String tagName)
Prints element end tag. |
void |
paintReference(Paintable paintable,
String referenceName)
Paints a component reference as an attribute to current tag. |
boolean |
startTag(Paintable paintable,
String tag)
Prints element start tag of a paintable section. |
void |
startTag(String tagName)
Prints element start tag. |
Method Detail |
---|
void addSection(String sectionTagName, String sectionData) throws PaintException
sectionTagName
- the name of the tag.sectionData
- the scetion data.
PaintException
- if the paint operation failed.boolean startTag(Paintable paintable, String tag) throws PaintException
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.
paintable
- the paintable to start.tag
- the name of the start tag.
true
if paintable found in cache, false
otherwise.
PaintException
- if the paint operation failed.startTag(String)
void paintReference(Paintable paintable, String referenceName) throws PaintException
paintable
- the Paintable to referencereferenceName
-
PaintException
void startTag(String tagName) throws PaintException
Todo: Checking of input values
tagName
- the name of the start tag.
PaintException
- if the paint operation failed.void endTag(String tagName) throws PaintException
tagName
- the name of the end tag.
PaintException
- if the paint operation failed.void addAttribute(String name, boolean value) throws PaintException
name
- the Attribute name.value
- the Attribute value.
PaintException
- if the paint operation failed.void addAttribute(String name, int value) throws PaintException
name
- the Attribute name.value
- the Attribute value.
PaintException
- if the paint operation failed.void addAttribute(String name, Resource value) throws PaintException
name
- the Attribute namevalue
- the Attribute value
PaintException
- if the paint operation failed.void addAttribute(String name, long value) throws PaintException
name
- the Attribute name.value
- the Attribute value.
PaintException
- if the paint operation failed.void addAttribute(String name, float value) throws PaintException
name
- the Attribute name.value
- the Attribute value.
PaintException
- if the paint operation failed.void addAttribute(String name, double value) throws PaintException
name
- the Attribute name.value
- the Attribute value.
PaintException
- if the paint operation failed.void addAttribute(String name, String value) throws PaintException
name
- the Boolean attribute name.value
- the Boolean attribute value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, String value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, int value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, long value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, float value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, double value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, boolean value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addVariable(VariableOwner owner, String name, String[] value) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.value
- the Variable initial value.
PaintException
- if the paint operation failed.void addUploadStreamVariable(VariableOwner owner, String name) throws PaintException
owner
- the Listener for variable changes.name
- the Variable name.
PaintException
- if the paint operation failed.void addXMLSection(String sectionTagName, String sectionData, String namespace) throws PaintException
Prints full XML section. The section data must be XML and it is surrounded by XML start and end-tags.
sectionTagName
- the tag name.sectionData
- the section data to be printed.namespace
- the namespace.
PaintException
- if the paint operation failed.void addUIDL(String uidl) throws PaintException
uidl
- the UIDL to be added.
PaintException
- if the paint operation failed.void addText(String text) throws PaintException
text
- the Text to add
PaintException
- if the paint operation failed.void addCharacterData(String text) throws PaintException
text
- the Character data to add
PaintException
- if the paint operation failed.void addAttribute(String string, Object[] keys)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |