|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.html.HtmlElement | +--weblogic.html.StringElement
A StringElement is used to add String objects to an HtmlPage. A StringElement may be a dbKona Record object that is part of a DataSet retrieved in a database query. Any arbitrary HtmlElement can be returned as a String with the HtmlElement.toString() method.
Record
,
HtmlElement.toString(java.lang.String)
Field Summary | |
protected java.lang.String |
contents
Deprecated. |
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
StringElement()
Deprecated. Constructs a StringElement. |
|
StringElement(HtmlElement val)
Deprecated. Constructs a StringElement with the specified HtmlElement. |
|
StringElement(Record rec)
Deprecated. Constructs a StringElement with the specified Record from a DataSet. |
|
StringElement(Record rec,
int[] maxwidths)
Deprecated. Constructs a StringElement with the specified Record from a DataSet. |
|
StringElement(java.lang.String val)
Deprecated. Constructs a StringElement with the specified String. |
Method Summary | |
StringElement |
escape()
Deprecated. Escapes a StringElement using HTML entities. |
void |
output(java.io.OutputStream out)
Deprecated. Outputs to the specified OutputStream. |
void |
output(java.io.OutputStream out,
java.lang.String codeset)
Deprecated. Outputs to the specified OutputStream. |
void |
output(java.io.PrintWriter pw)
Deprecated. |
StringElement |
replace(java.lang.String oldstr,
HtmlElement elem)
Deprecated. Replaces a string in a StringElement with the string representation of an HtmlElement. |
StringElement |
replace(java.lang.String oldstr,
java.lang.String newstr)
Deprecated. Replaces a string with a new string in a StringElement. |
StringElement |
replaceWithElement(java.lang.String oldstr,
java.lang.String classname)
Deprecated. Replaces a string in a StringElement with a SinglePartElement or one of its subclasses specified by the classname. |
StringElement |
setContents(java.lang.String val)
Deprecated. Sets the contents of a StringElement to the specified value. |
StringElement |
setContentsWithFile(java.lang.String filename)
Deprecated. Sets the contents of a StringElement to the contents of the specified filename. |
int |
widthAsLiteral()
Deprecated. Returns the number of characters in a StringElement. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String contents
Constructor Detail |
public StringElement()
public StringElement(java.lang.String val)
val
- String objectpublic StringElement(HtmlElement val)
val
- HtmlElement objectpublic StringElement(Record rec, int[] maxwidths) throws java.sql.SQLException, DataSetException, java.io.IOException
val
- HtmlElement objectpublic StringElement(Record rec) throws java.sql.SQLException, DataSetException, java.io.IOException
val
- HtmlElement objectMethod Detail |
public StringElement replaceWithElement(java.lang.String oldstr, java.lang.String classname) throws HtmlException
oldstr
- String to replaceclassname
- Classname of the SinglePartElementpublic StringElement replace(java.lang.String oldstr, HtmlElement elem) throws java.io.IOException
oldstr
- String to replaceelem
- HtmlElement objectpublic StringElement replace(java.lang.String oldstr, java.lang.String newstr) throws java.io.IOException
oldstr
- String to replacenewstr
- MultiPartElement objectpublic int widthAsLiteral()
public StringElement setContents(java.lang.String val)
val
- Stringpublic StringElement setContentsWithFile(java.lang.String filename) throws HtmlException
filename
- Filename enclosed in double quotespublic void output(java.io.OutputStream out) throws java.io.IOException
ostr
- Output streampublic void output(java.io.OutputStream out, java.lang.String codeset) throws java.io.IOException
ostr
- Output streamcodeset
- Java Codesetpublic void output(java.io.PrintWriter pw) throws java.io.IOException
public StringElement escape()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |