001: /*
002: * MyGWT Widget Library
003: * Copyright(c) 2007, MyGWT.
004: * licensing@mygwt.net
005: *
006: * http://mygwt.net/license
007: */
008: package net.mygwt.ui.client.util;
009:
010: /**
011: * Raw html content.
012: */
013: public class Markup {
014:
015: public static String ITEM;
016:
017: public static String ITEM_CHECK;
018:
019: public static String BUTTON;
020:
021: public static String BOTTOM_BOX;
022:
023: public static String BOX;
024:
025: public static String TREE_ITEM;
026:
027: public static String SHADOW;
028:
029: public static String TREETABLE_ITEM;
030:
031: static {
032: StringBuffer sb = new StringBuffer();
033: sb
034: .append("<table class={0} cellpadding=0 cellspacing=0><tbody><tr>");
035: sb.append("<td class={0}-l><div> </div></td>");
036: sb.append("<td class={0}-ml></td>");
037: sb.append("<td class={0}-c><span class={0}-text></span></td>");
038: sb.append("<td class={0}-mr></td>");
039: sb.append("<td class={0}-r><div> </div></td>");
040: sb.append("</tr></tbody></table>");
041:
042: ITEM = sb.toString();
043:
044: sb = new StringBuffer();
045: sb
046: .append("<table class={0} cellpadding=0 cellspacing=0><tbody><tr>");
047: sb.append("<td class={0}-l><div> </div></td>");
048: sb.append("<td class={0}-ml></td>");
049: sb
050: .append("<td class={0}-c><button class={0}-text></button></td>");
051: sb.append("<td class={0}-mr></td>");
052: sb.append("<td class={0}-r><div> </div></td>");
053: sb.append("</tr></tbody></table>");
054:
055: BUTTON = sb.toString();
056:
057: sb = new StringBuffer();
058: sb
059: .append("<table class={0} cellpadding=0 cellspacing=0><tbody><tr>");
060: sb.append("<td class={0}-l><div> </div></td>");
061: sb.append("<td class={0}-check></td>");
062: sb.append("<td class={0}-ml></td>");
063: sb.append("<td class={0}-c><span class={0}-text></span></td>");
064: sb.append("<td class={0}-mr></td>");
065: sb.append("<td class={0}-r><div> </div></td>");
066: sb.append("</tr></tbody></table>");
067:
068: ITEM_CHECK = sb.toString();
069:
070: sb = new StringBuffer();
071: sb
072: .append("<div><table class={0} cellpadding=0 cellspacing=0><tbody>");
073: sb
074: .append("<tr><td class={0}-ml><div></div></td><td class={0}-mc></td><td class={0}-mr><div></div></td></tr>");
075: sb
076: .append("<tr><td class={0}-bl><div></div></td><td class={0}-bc></td><td class={0}-br><div></div></td></tr>");
077: sb.append("</tbody></table></div>");
078:
079: BOTTOM_BOX = sb.toString();
080:
081: sb = new StringBuffer();
082: sb
083: .append("<table class={0} cellpadding=0 cellspacing=0><tbody>");
084: sb
085: .append("<tr class={0}-trow><td class={0}-tl><div> </div></td><td class={0}-tc></td><td class={0}-tr><div> </div></td></tr>");
086: sb
087: .append("<tr><td class={0}-ml></td><td class={0}-mc></td><td class={0}-mr></td></tr>");
088: sb
089: .append("<tr class={0}-brow><td class={0}-bl></td><td class={0}-bc></td><td class={0}-br></td></tr>");
090: sb.append("</tr></tbody></table>");
091:
092: BOX = sb.toString();
093:
094: sb = new StringBuffer();
095: sb.append("<table cellpadding=0 cellspacing=0>");
096: sb
097: .append("<tbody><tr><td><div class=my-tree-indent></div></td>");
098: sb
099: .append("<td class=my-tree-joint align=center valign=middle><div> </div></td>");
100: sb.append("<td class=my-tree-left><div></div></td>");
101: sb
102: .append("<td class=my-tree-check><div class=my-tree-notchecked></div></td>");
103: sb.append("<td class=my-tree-icon><div> </div></td>");
104: sb.append("<td class=my-tree-item-text><span>{0}</span></td>");
105: sb
106: .append("<td class=my-tree-right><div></div></td></tr></tbody></table>");
107: sb.append("<div class=my-tree-ct style='display: none'></div>");
108:
109: TREE_ITEM = sb.toString();
110:
111: sb = new StringBuffer();
112: sb
113: .append("<div class=my-shadow><div class=my-shadow-t><div class=my-shadow-tl></div><div class=my-shadow-tc></div><div class=my-shadow-tr></div></div>");
114: sb
115: .append("<div class=my-shadow-c><div class=my-shadow-ml></div><div class=my-shadow-mc></div><div class=my-shadow-mr></div></div>");
116: sb
117: .append("<div class=my-shadow-b><div class=my-shadow-bl></div><div class=my-shadow-bc></div><div class=my-shadow-br></div></div></div>");
118:
119: SHADOW = sb.toString();
120:
121: sb = new StringBuffer();
122: sb
123: .append("<div class=my-treetbl-item><table cellpadding=0 cellspacing=0 tabIndex=1 style='table-layout: fixed;'><tbody><tr>");
124: sb
125: .append("<td class=my-treetbl-cell index=0><div class=my-treetbl-cell-overflow><div class=my-treetbl-cell-text>");
126: sb.append("<table cellpadding=0 cellspacing=0>");
127: sb
128: .append("<tbody><tr><td><div class=my-treetbl-indent></div></td>");
129: sb
130: .append("<td class=my-treetbl-joint align=center valign=middle><div> </div></td>");
131: sb.append("<td class=my-treetbl-left><div></div></td>");
132: sb
133: .append("<td class=my-treetbl-check><div class=my-treetbl-notchecked></div></td>");
134: sb.append("<td class=my-treetbl-icon><div> </div></td>");
135: sb
136: .append("<td class=my-treetbl-item-text><span>{0}</span></td>");
137: sb
138: .append("<td class=my-treetbl-right><div></div></td></tr></tbody></table></div></div></td></tr></tbody></table></div>");
139: sb
140: .append("<div class=my-treetbl-ct style='display: none'></div>");
141:
142: TREETABLE_ITEM = sb.toString();
143:
144: }
145:
146: }
|