|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.util.html.WrapElement
public class WrapElement
This class is used for html tags that are begin/end paired. For
example, the html
<code>wrapped element</code>
would have
a wrapString of code, and an element of "wrapped element"
Field Summary | |
---|---|
protected Element |
e
the element that gets wrapped |
protected java.lang.String |
paramString
params for the tag open |
protected java.lang.String |
wrapString
the html tag to "wrap" around the contained element |
Constructor Summary | |
---|---|
WrapElement(java.lang.String wrapString)
Construct a WrapElement with just a wrapping string |
|
WrapElement(java.lang.String wrapString,
Element e)
Construct a WrapElement with a wrapping string and element |
|
WrapElement(java.lang.String wrapString,
java.lang.String paramString)
Construct a WrapElement with a wrapping string and params |
|
WrapElement(java.lang.String wrapString,
java.lang.String paramString,
Element e)
Construct a WrapElement with a wrapping string, params and element |
Method Summary | |
---|---|
void |
generate(java.io.Writer out)
convert representation to html and write it out |
Element |
getElement()
Accessor for the element attribute |
void |
setElement(Element e)
Writer for the Element attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String wrapString
protected java.lang.String paramString
protected Element e
Constructor Detail |
---|
public WrapElement(java.lang.String wrapString)
wrapString
- the html tag that gets wrapped around the
elementpublic WrapElement(java.lang.String wrapString, Element e)
wrapString
- the html tag that gets wrapped around the
elemente
- the element that gets containedpublic WrapElement(java.lang.String wrapString, java.lang.String paramString)
wrapString
- the html tag that gets wrapped around the
elementparamString
- the string that gets containedpublic WrapElement(java.lang.String wrapString, java.lang.String paramString, Element e)
wrapString
- the html tag that gets wrapped around the
elemente
- the element that gets containedMethod Detail |
---|
public void setElement(Element e)
e
- the new element valuepublic Element getElement()
public void generate(java.io.Writer out) throws java.io.IOException
generate
in interface Element
out
- the output Writer
java.io.IOException
- an IO error occurred accessing
out
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |