|
| HTMLGenerator () |
|
| HTMLGenerator (Writer out) |
|
String | toString () |
|
void | setOut (Writer out) |
|
void | setExtraAttributes (String extraAttributes) |
|
HTMLGenerator | doTag (String tag) |
|
HTMLGenerator | doTag (String tag, String attributes) |
|
HTMLGenerator | doTag (String tag, String[] attributes) |
|
HTMLGenerator | startTag (String tag) |
|
HTMLGenerator | startTag (String tag, String attributes) |
|
HTMLGenerator | startTag (String tag, String[] attributes) |
|
HTMLGenerator | startExtAnchor (String url, String hint) |
|
HTMLGenerator | startTargetAnchor (String url, String target, String hint) |
|
HTMLGenerator | startAnchor (String url, String hint) |
|
HTMLGenerator | startAnchor (String url, String hint, String cssClass) |
|
HTMLGenerator | startAnchor (String url, String hint, String cssClass, String onClick) |
|
HTMLGenerator | startTable (String attributes) |
|
HTMLGenerator | startTable (String[] attributes) |
|
HTMLGenerator | endTable () |
|
HTMLGenerator | startTableRow (String attributes) |
|
HTMLGenerator | startTableRow (String[] attributes) |
|
HTMLGenerator | endTableRow () |
|
HTMLGenerator | startTableCol (String attributes) |
|
HTMLGenerator | startTableCol (String[] attributes) |
|
HTMLGenerator | endTableCol () |
|
HTMLGenerator | endTag () |
|
HTMLGenerator | endTag (String tag) |
|
HTMLGenerator | endBeforeTag (String tag) |
|
HTMLGenerator | endAllTags () |
|
boolean | checkTag (String tag) |
|
HTMLGenerator | write (String value) |
|
HTMLGenerator | writeNewLine () |
|
HTMLGenerator | writeSeparator () |
|
HTMLGenerator | writeHorizontalStrut (int pixels) |
|
HTMLGenerator | startJavaScript () |
|
HTMLGenerator | endJavaScript () |
|
HTMLGenerator | startCSS () |
|
HTMLGenerator | endCSS () |
|
HTMLGenerator | addCSSLink (String cssFile) |
|
HTMLGenerator | addJavaScriptLink (String jsFile) |
|
|
Stack | tags = new Stack() |
|
Writer | out = null |
|
◆ HTMLGenerator() [1/2]
org.turro.html.HTMLGenerator.HTMLGenerator |
( |
| ) |
|
◆ HTMLGenerator() [2/2]
org.turro.html.HTMLGenerator.HTMLGenerator |
( |
Writer |
out | ) |
|
◆ addCSSLink()
HTMLGenerator org.turro.html.HTMLGenerator.addCSSLink |
( |
String |
cssFile | ) |
|
Definition at line 266 of file HTMLGenerator.java.
267 return write(
"<link rel=\"stylesheet\" type=\"text/css\" href=\"" +
HTMLGenerator write(String value)
◆ addJavaScriptLink()
HTMLGenerator org.turro.html.HTMLGenerator.addJavaScriptLink |
( |
String |
jsFile | ) |
|
◆ checkTag()
boolean org.turro.html.HTMLGenerator.checkTag |
( |
String |
tag | ) |
|
◆ doTag() [1/3]
◆ doTag() [2/3]
HTMLGenerator org.turro.html.HTMLGenerator.doTag |
( |
String |
tag, |
|
|
String |
attributes |
|
) |
| |
◆ doTag() [3/3]
HTMLGenerator org.turro.html.HTMLGenerator.doTag |
( |
String |
tag, |
|
|
String[] |
attributes |
|
) |
| |
Definition at line 70 of file HTMLGenerator.java.
71 if(attributes !=
null) {
73 for(
int i = 0; i < attributes.length; i++) {
74 if(!Strings.isBlank(attributes[i])) {
75 write(
" " + attributes[i]);
81 return write(
"<" + tag +
" />");
◆ endAllTags()
◆ endBeforeTag()
HTMLGenerator org.turro.html.HTMLGenerator.endBeforeTag |
( |
String |
tag | ) |
|
Definition at line 203 of file HTMLGenerator.java.
206 while(!tag.equals(
tags.peek())) {
207 tmp = (String)
tags.pop();
208 write(
"</" + tmp +
">");
boolean checkTag(String tag)
◆ endCSS()
◆ endJavaScript()
◆ endTable()
◆ endTableCol()
◆ endTableRow()
◆ endTag() [1/2]
◆ endTag() [2/2]
◆ setExtraAttributes()
void org.turro.html.HTMLGenerator.setExtraAttributes |
( |
String |
extraAttributes | ) |
|
◆ setOut()
void org.turro.html.HTMLGenerator.setOut |
( |
Writer |
out | ) |
|
◆ startAnchor() [1/3]
HTMLGenerator org.turro.html.HTMLGenerator.startAnchor |
( |
String |
url, |
|
|
String |
hint |
|
) |
| |
◆ startAnchor() [2/3]
HTMLGenerator org.turro.html.HTMLGenerator.startAnchor |
( |
String |
url, |
|
|
String |
hint, |
|
|
String |
cssClass |
|
) |
| |
◆ startAnchor() [3/3]
HTMLGenerator org.turro.html.HTMLGenerator.startAnchor |
( |
String |
url, |
|
|
String |
hint, |
|
|
String |
cssClass, |
|
|
String |
onClick |
|
) |
| |
Definition at line 136 of file HTMLGenerator.java.
138 "href='" + url +
"'",
139 (hint !=
null ?
"title=\"" + hint +
"\"" :
""),
140 (hint !=
null ?
"alt=\"" + hint +
"\"" :
""),
141 (cssClass !=
null ?
"class='" + cssClass +
"'" :
""),
142 (onClick !=
null ?
"onclick=\"" + onClick +
"\"" :
"")
HTMLGenerator startTag(String tag)
◆ startCSS()
◆ startExtAnchor()
HTMLGenerator org.turro.html.HTMLGenerator.startExtAnchor |
( |
String |
url, |
|
|
String |
hint |
|
) |
| |
Definition at line 113 of file HTMLGenerator.java.
HTMLGenerator startTargetAnchor(String url, String target, String hint)
◆ startJavaScript()
◆ startTable() [1/2]
HTMLGenerator org.turro.html.HTMLGenerator.startTable |
( |
String |
attributes | ) |
|
◆ startTable() [2/2]
HTMLGenerator org.turro.html.HTMLGenerator.startTable |
( |
String[] |
attributes | ) |
|
◆ startTableCol() [1/2]
HTMLGenerator org.turro.html.HTMLGenerator.startTableCol |
( |
String |
attributes | ) |
|
◆ startTableCol() [2/2]
HTMLGenerator org.turro.html.HTMLGenerator.startTableCol |
( |
String[] |
attributes | ) |
|
◆ startTableRow() [1/2]
HTMLGenerator org.turro.html.HTMLGenerator.startTableRow |
( |
String |
attributes | ) |
|
◆ startTableRow() [2/2]
HTMLGenerator org.turro.html.HTMLGenerator.startTableRow |
( |
String[] |
attributes | ) |
|
◆ startTag() [1/3]
HTMLGenerator org.turro.html.HTMLGenerator.startTag |
( |
String |
tag | ) |
|
◆ startTag() [2/3]
HTMLGenerator org.turro.html.HTMLGenerator.startTag |
( |
String |
tag, |
|
|
String |
attributes |
|
) |
| |
◆ startTag() [3/3]
HTMLGenerator org.turro.html.HTMLGenerator.startTag |
( |
String |
tag, |
|
|
String[] |
attributes |
|
) |
| |
Definition at line 93 of file HTMLGenerator.java.
95 if(attributes !=
null) {
97 for(
int i = 0; i < attributes.length; i++) {
98 if(!Strings.isBlank(attributes[i])) {
99 write(
" " + attributes[i]);
102 if(!Strings.isBlank(extraAttributes)) {
103 write(
" " + extraAttributes);
104 extraAttributes =
null;
109 return write(
"<" + tag +
">");
◆ startTargetAnchor()
HTMLGenerator org.turro.html.HTMLGenerator.startTargetAnchor |
( |
String |
url, |
|
|
String |
target, |
|
|
String |
hint |
|
) |
| |
Definition at line 117 of file HTMLGenerator.java.
119 "href='" + url +
"'",
120 (hint !=
null ?
"title=\"" + hint +
"\"" :
""),
121 (hint !=
null ?
"alt=\"" + hint +
"\"" :
""),
122 "target='" + target +
"'",
123 "onclick='event.stopPropagation();'",
◆ toString()
String org.turro.html.HTMLGenerator.toString |
( |
| ) |
|
◆ write()
◆ writeHorizontalStrut()
HTMLGenerator org.turro.html.HTMLGenerator.writeHorizontalStrut |
( |
int |
pixels | ) |
|
◆ writeNewLine()
◆ writeSeparator()
◆ out
Writer org.turro.html.HTMLGenerator.out = null |
|
protected |
◆ tags
Stack org.turro.html.HTMLGenerator.tags = new Stack() |
|
protected |
The documentation for this class was generated from the following file: