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 Formitem extends BodyTagImpl {
025
026        private int type;
027        private String style;
028        private int width=-1;
029        private int height=-1;
030        private boolean enabled=true;
031        private boolean visible=true;
032        private String tooltip;
033        private  String bind;
034        
035
036        public Formitem() throws TagNotSupported {
037                throw new TagNotSupported("formitem");
038                // TODO impl. Tag formItem
039        }
040        
041        @Override
042        public void release() {
043                super.release();
044                style=null;
045                width=-1;
046                height=-1;
047                enabled=true;
048                visible=true;
049                tooltip=null;
050                bind=null;
051                
052        }
053
054        /**
055         * @param type the type to set
056         */
057        public void setType(String type) {
058                //this.type = type;
059        }
060
061        /**
062         * @param bind the bind to set
063         */
064        public void setBind(String bind) {
065                this.bind = bind;
066        }
067
068        /**
069         * @param enabled the enabled to set
070         */
071        public void setEnabled(boolean enabled) {
072                this.enabled = enabled;
073        }
074
075        /**
076         * @param height the height to set
077         */
078        public void setHeight(double height) {
079                this.height = (int) height;
080        }
081
082        /**
083         * @param style the style to set
084         */
085        public void setStyle(String style) {
086                this.style = style;
087        }
088
089        /**
090         * @param tooltip the tooltip to set
091         */
092        public void setTooltip(String tooltip) {
093                this.tooltip = tooltip;
094        }
095
096        /**
097         * @param visible the visible to set
098         */
099        public void setVisible(boolean visible) {
100                this.visible = visible;
101        }
102
103        /**
104         * @param width the width to set
105         */
106        public void setWidth(double width) {
107                this.width = (int) width;
108        }
109
110
111}