001 package railo.runtime.tag; 002 003 import java.util.ArrayList; 004 import java.util.List; 005 006 import railo.runtime.exp.ApplicationException; 007 import railo.runtime.exp.TagNotSupported; 008 import railo.runtime.ext.tag.BodyTagImpl; 009 010 public final class Tree extends BodyTagImpl { 011 012 private String name; 013 private boolean required; 014 private String delimiter; 015 private String completepath; 016 private boolean appendkey; 017 private boolean highlightref; 018 private String onvalidate; 019 private String message; 020 private String onerror; 021 private String lookandfeel; 022 private String font; 023 private double fontsize; 024 private boolean italic; 025 private boolean bold; 026 private double height; 027 private double width; 028 private double vspace; 029 private String align; 030 private boolean border; 031 private boolean hscroll; 032 private boolean vscroll; 033 private String notsupported; 034 private String onblur; 035 private String onfocus; 036 private String format; 037 private String onchange; 038 private String style; 039 private String tooltip; 040 private boolean visible; 041 042 private String enabled; 043 private List items=new ArrayList(); 044 045 046 public Tree() throws ApplicationException{ 047 throw new TagNotSupported("tree"); 048 } 049 050 051 /** 052 * @param align the align to set 053 */ 054 public void setAlign(String align) { 055 this.align = align; 056 } 057 058 /** 059 * @param appendkey the appendkey to set 060 */ 061 public void setAppendkey(boolean appendkey) { 062 this.appendkey = appendkey; 063 } 064 065 /** 066 * @param bold the bold to set 067 */ 068 public void setBold(boolean bold) { 069 this.bold = bold; 070 } 071 072 /** 073 * @param border the border to set 074 */ 075 public void setBorder(boolean border) { 076 this.border = border; 077 } 078 079 /** 080 * @param completepath the completepath to set 081 */ 082 public void setCompletepath(String completepath) { 083 this.completepath = completepath; 084 } 085 086 /** 087 * @param delimiter the delimiter to set 088 */ 089 public void setDelimiter(String delimiter) { 090 this.delimiter = delimiter; 091 } 092 093 /** 094 * @param enabled the enabled to set 095 */ 096 public void setEnabled(String enabled) { 097 this.enabled = enabled; 098 } 099 100 /** 101 * @param font the font to set 102 */ 103 public void setFont(String font) { 104 this.font = font; 105 } 106 107 /** 108 * @param fontsize the fontsize to set 109 */ 110 public void setFontsize(double fontsize) { 111 this.fontsize = fontsize; 112 } 113 114 /** 115 * @param format the format to set 116 */ 117 public void setFormat(String format) { 118 this.format = format; 119 } 120 121 /** 122 * @param height the height to set 123 */ 124 public void setHeight(double height) { 125 this.height = height; 126 } 127 128 /** 129 * @param highlightref the highlightref to set 130 */ 131 public void setHighlightref(boolean highlightref) { 132 this.highlightref = highlightref; 133 } 134 135 /** 136 * @param hscroll the hscroll to set 137 */ 138 public void setHscroll(boolean hscroll) { 139 this.hscroll = hscroll; 140 } 141 142 /** 143 * @param italic the italic to set 144 */ 145 public void setItalic(boolean italic) { 146 this.italic = italic; 147 } 148 149 /** 150 * @param lookandfeel the lookandfeel to set 151 */ 152 public void setLookandfeel(String lookandfeel) { 153 this.lookandfeel = lookandfeel; 154 } 155 156 /** 157 * @param message the message to set 158 */ 159 public void setMessage(String message) { 160 this.message = message; 161 } 162 163 /** 164 * @param name the name to set 165 */ 166 public void setName(String name) { 167 this.name = name; 168 } 169 170 /** 171 * @param notsupported the notsupported to set 172 */ 173 public void setNotsupported(String notsupported) { 174 this.notsupported = notsupported; 175 } 176 177 /** 178 * @param onblur the onblur to set 179 */ 180 public void setOnblur(String onblur) { 181 this.onblur = onblur; 182 } 183 184 /** 185 * @param onchange the onchange to set 186 */ 187 public void setOnchange(String onchange) { 188 this.onchange = onchange; 189 } 190 191 /** 192 * @param onerror the onerror to set 193 */ 194 public void setOnerror(String onerror) { 195 this.onerror = onerror; 196 } 197 198 /** 199 * @param onfocus the onfocus to set 200 */ 201 public void setOnfocus(String onfocus) { 202 this.onfocus = onfocus; 203 } 204 205 /** 206 * @param onvalidate the onvalidate to set 207 */ 208 public void setOnvalidate(String onvalidate) { 209 this.onvalidate = onvalidate; 210 } 211 212 /** 213 * @param required the required to set 214 */ 215 public void setRequired(boolean required) { 216 this.required = required; 217 } 218 219 /** 220 * @param style the style to set 221 */ 222 public void setStyle(String style) { 223 this.style = style; 224 } 225 226 /** 227 * @param tooltip the tooltip to set 228 */ 229 public void setTooltip(String tooltip) { 230 this.tooltip = tooltip; 231 } 232 233 /** 234 * @param visible the visible to set 235 */ 236 public void setVisible(boolean visible) { 237 this.visible = visible; 238 } 239 240 /** 241 * @param vscroll the vscroll to set 242 */ 243 public void setVscroll(boolean vscroll) { 244 this.vscroll = vscroll; 245 } 246 247 /** 248 * @param vspace the vspace to set 249 */ 250 public void setVspace(double vspace) { 251 this.vspace = vspace; 252 } 253 254 /** 255 * @param width the width to set 256 */ 257 public void setWidth(double width) { 258 this.width = width; 259 } 260 261 262 public void addTreeItem(TreeItemBean item) { 263 items.add(item); 264 } 265 266 }