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 021public class TreeItemBean { 022 023 public static final int QUERY_AS_ROOT_YES = 1; 024 public static final int QUERY_AS_ROOT_NO = 0; 025 public static final int QUERY_AS_ROOT_CUSTOM = 2; 026 027 public static final int IMG_CD = 10; 028 public static final int IMG_COMPUTER = 11; 029 public static final int IMG_DOCUMENT = 12; 030 public static final int IMG_ELEMENT = 13; 031 public static final int IMG_FLOPPY = 14; 032 public static final int IMG_FOLDER = 15; 033 public static final int IMG_FIXED = 16; 034 public static final int IMG_REMOTE = 17; 035 public static final int IMG_CUSTOM = 18; 036 037 private String value; 038 private String display; 039 private String parent; 040 private int img=IMG_FOLDER; 041 private String imgCustom=null; 042 private int imgOpen=IMG_FOLDER; 043 private String imgOpenCustom; 044 private String href; 045 private String target; 046 //private String query; 047 //private int queryAsRoot=QUERY_AS_ROOT_YES; 048 //private String queryAsRootCustom; 049 boolean expand=true; 050 051 /** 052 * @return the display 053 */ 054 public String getDisplay() { 055 return display; 056 } 057 /** 058 * @param display the display to set 059 */ 060 public void setDisplay(String display) { 061 this.display = display; 062 } 063 /** 064 * @return the expand 065 */ 066 public boolean isExpand() { 067 return expand; 068 } 069 /** 070 * @param expand the expand to set 071 */ 072 public void setExpand(boolean expand) { 073 this.expand = expand; 074 } 075 /** 076 * @return the href 077 */ 078 public String getHref() { 079 return href; 080 } 081 /** 082 * @param href the href to set 083 */ 084 public void setHref(String href) { 085 this.href = href; 086 } 087 /** 088 * @return the img 089 */ 090 public int getImg() { 091 return img; 092 } 093 /** 094 * @param img the img to set 095 */ 096 public void setImg(int img) { 097 this.img = img; 098 } 099 /** 100 * @return the imgCustom 101 */ 102 public String getImgCustom() { 103 return imgCustom; 104 } 105 /** 106 * @param imgCustom the imgCustom to set 107 */ 108 public void setImgCustom(String imgCustom) { 109 this.imgCustom = imgCustom; 110 } 111 /** 112 * @return the imgOpen 113 */ 114 public int getImgOpen() { 115 return imgOpen; 116 } 117 /** 118 * @param imgOpen the imgOpen to set 119 */ 120 public void setImgOpen(int imgOpen) { 121 this.imgOpen = imgOpen; 122 } 123 /** 124 * @return the imgOpenCustom 125 */ 126 public String getImgOpenCustom() { 127 return imgOpenCustom; 128 } 129 /** 130 * @param imgOpenCustom the imgOpenCustom to set 131 */ 132 public void setImgOpenCustom(String imgOpenCustom) { 133 this.imgOpenCustom = imgOpenCustom; 134 } 135 /** 136 * @return the parent 137 */ 138 public String getParent() { 139 return parent; 140 } 141 /** 142 * @param parent the parent to set 143 */ 144 public void setParent(String parent) { 145 this.parent = parent; 146 } 147 148 /** 149 * @return the target 150 */ 151 public String getTarget() { 152 return target; 153 } 154 /** 155 * @param target the target to set 156 */ 157 public void setTarget(String target) { 158 this.target = target; 159 } 160 /** 161 * @return the value 162 */ 163 public String getValue() { 164 return value; 165 } 166 /** 167 * @param value the value to set 168 */ 169 public void setValue(String value) { 170 this.value = value; 171 } 172}