001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.runtime.tag; 020 021import java.util.ArrayList; 022import java.util.List; 023 024import lucee.runtime.exp.ApplicationException; 025import lucee.runtime.exp.TagNotSupported; 026import lucee.runtime.ext.tag.BodyTagImpl; 027 028public final class Tree extends BodyTagImpl { 029 030 private String name; 031 private boolean required; 032 private String delimiter; 033 private String completepath; 034 private boolean appendkey; 035 private boolean highlightref; 036 private String onvalidate; 037 private String message; 038 private String onerror; 039 private String lookandfeel; 040 private String font; 041 private double fontsize; 042 private boolean italic; 043 private boolean bold; 044 private double height; 045 private double width; 046 private double vspace; 047 private String align; 048 private boolean border; 049 private boolean hscroll; 050 private boolean vscroll; 051 private String notsupported; 052 private String onblur; 053 private String onfocus; 054 private String format; 055 private String onchange; 056 private String style; 057 private String tooltip; 058 private boolean visible; 059 060 private String enabled; 061 private List items=new ArrayList(); 062 063 064 public Tree() throws ApplicationException{ 065 throw new TagNotSupported("tree"); 066 } 067 068 069 /** 070 * @param align the align to set 071 */ 072 public void setAlign(String align) { 073 this.align = align; 074 } 075 076 /** 077 * @param appendkey the appendkey to set 078 */ 079 public void setAppendkey(boolean appendkey) { 080 this.appendkey = appendkey; 081 } 082 083 /** 084 * @param bold the bold to set 085 */ 086 public void setBold(boolean bold) { 087 this.bold = bold; 088 } 089 090 /** 091 * @param border the border to set 092 */ 093 public void setBorder(boolean border) { 094 this.border = border; 095 } 096 097 /** 098 * @param completepath the completepath to set 099 */ 100 public void setCompletepath(String completepath) { 101 this.completepath = completepath; 102 } 103 104 /** 105 * @param delimiter the delimiter to set 106 */ 107 public void setDelimiter(String delimiter) { 108 this.delimiter = delimiter; 109 } 110 111 /** 112 * @param enabled the enabled to set 113 */ 114 public void setEnabled(String enabled) { 115 this.enabled = enabled; 116 } 117 118 /** 119 * @param font the font to set 120 */ 121 public void setFont(String font) { 122 this.font = font; 123 } 124 125 /** 126 * @param fontsize the fontsize to set 127 */ 128 public void setFontsize(double fontsize) { 129 this.fontsize = fontsize; 130 } 131 132 /** 133 * @param format the format to set 134 */ 135 public void setFormat(String format) { 136 this.format = format; 137 } 138 139 /** 140 * @param height the height to set 141 */ 142 public void setHeight(double height) { 143 this.height = height; 144 } 145 146 /** 147 * @param highlightref the highlightref to set 148 */ 149 public void setHighlightref(boolean highlightref) { 150 this.highlightref = highlightref; 151 } 152 153 /** 154 * @param hscroll the hscroll to set 155 */ 156 public void setHscroll(boolean hscroll) { 157 this.hscroll = hscroll; 158 } 159 160 /** 161 * @param italic the italic to set 162 */ 163 public void setItalic(boolean italic) { 164 this.italic = italic; 165 } 166 167 /** 168 * @param lookandfeel the lookandfeel to set 169 */ 170 public void setLookandfeel(String lookandfeel) { 171 this.lookandfeel = lookandfeel; 172 } 173 174 /** 175 * @param message the message to set 176 */ 177 public void setMessage(String message) { 178 this.message = message; 179 } 180 181 /** 182 * @param name the name to set 183 */ 184 public void setName(String name) { 185 this.name = name; 186 } 187 188 /** 189 * @param notsupported the notsupported to set 190 */ 191 public void setNotsupported(String notsupported) { 192 this.notsupported = notsupported; 193 } 194 195 /** 196 * @param onblur the onblur to set 197 */ 198 public void setOnblur(String onblur) { 199 this.onblur = onblur; 200 } 201 202 /** 203 * @param onchange the onchange to set 204 */ 205 public void setOnchange(String onchange) { 206 this.onchange = onchange; 207 } 208 209 /** 210 * @param onerror the onerror to set 211 */ 212 public void setOnerror(String onerror) { 213 this.onerror = onerror; 214 } 215 216 /** 217 * @param onfocus the onfocus to set 218 */ 219 public void setOnfocus(String onfocus) { 220 this.onfocus = onfocus; 221 } 222 223 /** 224 * @param onvalidate the onvalidate to set 225 */ 226 public void setOnvalidate(String onvalidate) { 227 this.onvalidate = onvalidate; 228 } 229 230 /** 231 * @param required the required to set 232 */ 233 public void setRequired(boolean required) { 234 this.required = required; 235 } 236 237 /** 238 * @param style the style to set 239 */ 240 public void setStyle(String style) { 241 this.style = style; 242 } 243 244 /** 245 * @param tooltip the tooltip to set 246 */ 247 public void setTooltip(String tooltip) { 248 this.tooltip = tooltip; 249 } 250 251 /** 252 * @param visible the visible to set 253 */ 254 public void setVisible(boolean visible) { 255 this.visible = visible; 256 } 257 258 /** 259 * @param vscroll the vscroll to set 260 */ 261 public void setVscroll(boolean vscroll) { 262 this.vscroll = vscroll; 263 } 264 265 /** 266 * @param vspace the vspace to set 267 */ 268 public void setVspace(double vspace) { 269 this.vspace = vspace; 270 } 271 272 /** 273 * @param width the width to set 274 */ 275 public void setWidth(double width) { 276 this.width = width; 277 } 278 279 280 public void addTreeItem(TreeItemBean item) { 281 items.add(item); 282 } 283 284}