|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.xpshared.htmlconstructs.PTConstruct
public class PTConstruct
Constructor Summary | |
---|---|
PTConstruct(PTConstructType type,
HTMLElement e)
Constructor creates a new PTConstruct object. |
Method Summary | |
---|---|
void |
AddElementToNestedElement(ElementName enContainer,
HTMLElement element)
Call this method to insert an HTMLElement into an HTMLElement object nested within this construct. |
void |
AddHTMLEncodedStringToNestedElement(ElementName enContainer,
java.lang.String s)
Call this method to insert an HTML string into an HTMLElement object nested within this construct. |
void |
AddHTMLStringToNestedElement(ElementName enContainer,
java.lang.String s)
Call this method to insert an HTML string into an HTMLElement object nested within this construct. |
XPArrayList |
GetAllElements()
Call this method to obtain an XPArrayList containing all of the HTMLElement objects constituting this construct. |
java.lang.String |
GetDescription()
Get the description of this construct. |
HTMLElement |
GetHTMLElement()
Call this method to obtain the root HTMLElement of this construct. |
HTMLElement |
GetNestedElement(ElementName eName)
Call this method to obtain an HTMLElement nested within this construct. |
XPHashtable |
GetStringMap()
Call this method to obtain an XPStringDictionary describing those HTMLElements of this construct containing strings that can be updated. |
PTConstructType |
GetType()
Call this method to obtain a PTConstructType specifying the specific type of this construct. |
void |
ReplaceNestedElementsWithElement(ElementName enContainer,
HTMLElement element)
Call this method to set the inner HTML element of a specific element within this construct. |
void |
ReplaceNestedElementsWithHTMLEncodedString(ElementName enContainer,
java.lang.String s)
Call this method to set the inner HTML string of a specific element within this construct. |
void |
ReplaceNestedElementsWithHTMLString(ElementName enContainer,
java.lang.String s)
Call this method to set the inner HTML string of a specific element within this construct. |
void |
SetElementInnerHTMLElement(ElementName eName,
HTMLElement element)
Deprecated. Use ReplaceNestedElementsWithElement |
void |
SetElementInnerHTMLEncodedString(ElementName eName,
java.lang.String s)
Deprecated. Use ReplaceNestedElementsWithHTMLString |
void |
SetElementInnerHTMLString(ElementName eName,
java.lang.String s)
Deprecated. Use ReplaceNestedElementsWithHTMLString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTConstruct(PTConstructType type, HTMLElement e)
type
- Pass PTConstructTypee
- Pass HTMLElement structure for this construct.Method Detail |
---|
public void AddElementToNestedElement(ElementName enContainer, HTMLElement element)
enContainer
- Pass an ElementName object specifying an HTMLElement
object nested within this construct. The HTMLElement passed to
this method will be appended to any HTML existing within the
container element. If no HTMLElement object having the
specified ElementName can be found, an Exception will be
thrown. element
- Pass an HTMLElement. This element will be appended to
any html existing within the container HTMLElement object
specified by the enContainer parameter.
java.lang.Exception
public void AddHTMLStringToNestedElement(ElementName enContainer, java.lang.String s)
enContainer
- Pass an ElementName object specifying an HTMLElement
object nested within this construct. The HTML string passed to
this method will be appended to any HTML existing within this
element. If no HTMLElement object having the specified
ElementName can be found, an Exception will be thrown. s
- Pass an HTML string. This html will be appended to any html
existing within the container HTMLElement object specified by
the enContainer parameter.
java.lang.Exception
public void AddHTMLEncodedStringToNestedElement(ElementName enContainer, java.lang.String s)
enContainer
- Pass an ElementName object specifying an HTMLElement
object nested within this construct. The HTML string passed to
this method will be appended to any HTML existing within this
element. If no HTMLElement object having the specified
ElementName can be found, an Exception will be thrown. s
- Pass an HTML string. This html will be appended to any html
existing within the container HTMLElement object specified by
the enContainer parameter.
java.lang.Exception
public XPArrayList GetAllElements()
public java.lang.String GetDescription()
public HTMLElement GetHTMLElement()
public HTMLElement GetNestedElement(ElementName eName)
eName
-
java.lang.Exception
public XPHashtable GetStringMap()
public PTConstructType GetType()
public void ReplaceNestedElementsWithElement(ElementName enContainer, HTMLElement element)
enContainer
- Pass an ElementName indicating an HTMLElement nested
within this construct. All HTMLElements nested within the
HTMLElement indicated by this ElementName will be replaced.
ElementName objects are available from the specific
PTConstructType used to obtain this construct. element
- Pass an HTMLElement. This HTMLElement will be nested
within the HTMLElement indicated by the ElementName passed.
java.lang.Exception
public void ReplaceNestedElementsWithHTMLString(ElementName enContainer, java.lang.String s)
enContainer
- Pass an ElementName indicating an HTMLElement nested
within this construct. All HTMLElements nested within the
HTMLElement indicated by this ElementName will be replaced.
ElementName objects are available from the specific
PTConstructType used to obtain this construct. s
- Pass an HTML string. This string will be nested within the
HTMLElement indicated by the ElementName passed.
java.lang.Exception
public void ReplaceNestedElementsWithHTMLEncodedString(ElementName enContainer, java.lang.String s)
enContainer
- Pass an ElementName indicating an HTMLElement nested
within this construct. All HTMLElements nested within the
HTMLElement indicated by this ElementName will be replaced.
ElementName objects are available from the specific
PTConstructType used to obtain this construct. s
- Pass an HTML string. This string will be nested within the
HTMLElement indicated by the ElementName passed.
java.lang.Exception
public void SetElementInnerHTMLElement(ElementName eName, HTMLElement element)
eName
- element
- public void SetElementInnerHTMLString(ElementName eName, java.lang.String s)
eName
- s
-
java.lang.Exception
public void SetElementInnerHTMLEncodedString(ElementName eName, java.lang.String s)
eName
- s
-
java.lang.Exception
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |