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 lucee.runtime.exp.TagNotSupported; 022import lucee.runtime.ext.tag.BodyTagImpl; 023 024public final class Formgroup extends BodyTagImpl { 025 026 private int type; 027 private Query query; 028 private int startrow=0; 029 private int maxrows=-1; 030 private String label; 031 private String style; 032 private int selectedIndex=-1; 033 private int width=-1; 034 private int height=-1; 035 private boolean enabled=true; 036 private boolean visible=true; 037 private String onChange; 038 private String tooltip; 039 private String id; 040 041 public Formgroup() throws TagNotSupported { 042 throw new TagNotSupported("formgroup"); 043 // TODO impl tag formgroup 044 } 045 046 @Override 047 public void release() { 048 super.release(); 049 query=null; 050 startrow=0; 051 maxrows=-1; 052 label=null; 053 style=null; 054 selectedIndex=-1; 055 width=-1; 056 height=-1; 057 enabled=true; 058 visible=true; 059 onChange=null; 060 tooltip=null; 061 id=null; 062 063 } 064 065 066 067 /** 068 * @param type the type to set 069 */ 070 public void setType(String type) { 071 //this.type = type; 072 } 073 074 /** 075 * @param label the label to set 076 */ 077 public void setLabel(String label) { 078 this.label = label; 079 } 080 081 /** 082 * @param maxrows the maxrows to set 083 */ 084 public void setMaxrows(double maxrows) { 085 this.maxrows = (int) maxrows; 086 } 087 088 /** 089 * @param onChange the onChange to set 090 */ 091 public void setOnchange(String onChange) { 092 this.onChange = onChange; 093 } 094 095 /** 096 * @param query the query to set 097 */ 098 public void setQuery(String queryName) { 099 //this.query = query; 100 } 101 102 /** 103 * @param selectedIndex the selectedIndex to set 104 */ 105 public void setSelectedindex(double selectedIndex) { 106 this.selectedIndex = (int) selectedIndex; 107 } 108 109 /** 110 * @param startrow the startrow to set 111 */ 112 public void setStartrow(double startrow) { 113 this.startrow = (int) startrow; 114 } 115 116 /** 117 * @param style the style to set 118 */ 119 public void setStyle(String style) { 120 this.style = style; 121 } 122 123 /** 124 * @param tooltip the tooltip to set 125 */ 126 public void setTooltip(String tooltip) { 127 this.tooltip = tooltip; 128 } 129 130 /** 131 * @param visible the visible to set 132 */ 133 public void setVisible(boolean visible) { 134 this.visible = visible; 135 } 136 137 /** 138 * @param width the width to set 139 */ 140 public void setWidth(double width) { 141 this.width = (int) width; 142 } 143 144 145}