|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.millstone.webadapter.WebPaintTarget
User Interface Description Language Target.
Constructor Summary | |
WebPaintTarget(HttpVariableMap variableMap,
UIDLTransformerType type,
WebAdapterServlet webAdapterServlet,
Theme theme)
Create a new XMLPrintWriter, without automatic line flushing. |
Method Summary | |
void |
addAttribute(java.lang.String name,
boolean value)
Adds a boolean attribute to component. |
void |
addAttribute(java.lang.String name,
int value)
Adds a integer attribute to component. |
void |
addAttribute(java.lang.String name,
long value)
Adds a long attribute to component. |
void |
addAttribute(java.lang.String name,
Resource value)
Adds a resource attribute to component. |
void |
addAttribute(java.lang.String name,
java.lang.String value)
Adds a string attribute to component. |
void |
addSection(java.lang.String sectionTagName,
java.lang.String sectionData)
Print single text section. |
void |
addText(java.lang.String str)
Print XML-escaped text. |
void |
addUIDL(java.lang.String xml)
Add XML dirctly to UIDL |
void |
addUploadStreamVariable(VariableOwner owner,
java.lang.String name)
Add a upload stream type variable. |
void |
addVariable(VariableOwner owner,
java.lang.String name,
boolean value)
Add a boolean type variable. |
void |
addVariable(VariableOwner owner,
java.lang.String name,
int value)
Add a int type variable. |
void |
addVariable(VariableOwner owner,
java.lang.String name,
java.lang.String value)
Add a string type variable. |
void |
addVariable(VariableOwner owner,
java.lang.String name,
java.lang.String[] value)
Add a string array type variable. |
void |
addXMLSection(java.lang.String sectionTagName,
java.lang.String sectionData,
java.lang.String namespace)
Add XML section with namespace |
void |
close()
Close the paint target. |
void |
endTag(java.lang.String tagName)
Print element end tag. |
static java.lang.String |
escapeXML(java.lang.String xml)
Substitute the XML sensitive characters with predefined XML entities. |
static java.lang.StringBuffer |
escapeXML(java.lang.StringBuffer xml)
Substitute the XML sensitive characters with predefined XML entities. |
java.lang.String |
getUIDL()
Get the UIDL already printed to stream. |
void |
startTag(java.lang.String tagName)
Print element start tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebPaintTarget(HttpVariableMap variableMap, UIDLTransformerType type, WebAdapterServlet webAdapterServlet, Theme theme) throws PaintException
Method Detail |
public void startTag(java.lang.String tagName) throws PaintException
Todo: Checking of input values
startTag
in interface PaintTarget
tagName
- The name of the start tag
PaintException
public void endTag(java.lang.String tagName) throws PaintException
endTag
in interface PaintTarget
PaintException
public static java.lang.String escapeXML(java.lang.String xml)
public static java.lang.StringBuffer escapeXML(java.lang.StringBuffer xml)
xml
- the String to be substituted
public void addText(java.lang.String str) throws PaintException
addText
in interface PaintTarget
str
- Text to add
PaintException
public void addAttribute(java.lang.String name, boolean value) throws PaintException
addAttribute
in interface PaintTarget
name
- Attribute namevalue
- Attribute value
PaintException
public void addAttribute(java.lang.String name, Resource value) throws PaintException
addAttribute
in interface PaintTarget
name
- Attribute namevalue
- Attribute value
PaintException
public void addAttribute(java.lang.String name, int value) throws PaintException
addAttribute
in interface PaintTarget
name
- Attribute namevalue
- Attribute value
PaintException
public void addAttribute(java.lang.String name, long value) throws PaintException
addAttribute
in interface PaintTarget
name
- Attribute namevalue
- Attribute value
PaintException
public void addAttribute(java.lang.String name, java.lang.String value) throws PaintException
addAttribute
in interface PaintTarget
name
- Boolean attribute namevalue
- Boolean attribute value
PaintException
public void addVariable(VariableOwner owner, java.lang.String name, java.lang.String value) throws PaintException
addVariable
in interface PaintTarget
owner
- Listener for variable changesname
- Variable namevalue
- Variable initial value
PaintException
public void addVariable(VariableOwner owner, java.lang.String name, int value) throws PaintException
addVariable
in interface PaintTarget
owner
- Listener for variable changesname
- Variable namevalue
- Variable initial value
PaintException
public void addVariable(VariableOwner owner, java.lang.String name, boolean value) throws PaintException
addVariable
in interface PaintTarget
owner
- Listener for variable changesname
- Variable namevalue
- Variable initial value
PaintException
public void addVariable(VariableOwner owner, java.lang.String name, java.lang.String[] value) throws PaintException
addVariable
in interface PaintTarget
owner
- Listener for variable changesname
- Variable namevalue
- Variable initial value
PaintException
public void addUploadStreamVariable(VariableOwner owner, java.lang.String name) throws PaintException
addUploadStreamVariable
in interface PaintTarget
owner
- Listener for variable changesname
- Variable name
PaintException
public void addSection(java.lang.String sectionTagName, java.lang.String sectionData) throws PaintException
addSection
in interface PaintTarget
PaintException
public void addUIDL(java.lang.String xml) throws PaintException
addUIDL
in interface PaintTarget
PaintException
public void addXMLSection(java.lang.String sectionTagName, java.lang.String sectionData, java.lang.String namespace) throws PaintException
addXMLSection
in interface PaintTarget
PaintException
PaintTarget.addXMLSection(String, String, String)
public java.lang.String getUIDL()
public void close() throws PaintException
PaintException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |