001    package railo.runtime.tag;
002    
003    import railo.runtime.exp.TagNotSupported;
004    import railo.runtime.ext.tag.BodyTagImpl;
005    
006    public final class Formgroup extends BodyTagImpl {
007            
008            private int type;
009            private Query query;
010            private int startrow=0;
011            private int maxrows=-1;
012            private String label;
013            private String style;
014            private int selectedIndex=-1;
015            private int width=-1;
016            private int height=-1;
017            private boolean enabled=true;
018            private boolean visible=true;
019            private String onChange;
020            private String tooltip;
021            private  String id;
022            
023            public Formgroup() throws TagNotSupported {
024                    throw new TagNotSupported("formgroup");
025                    // TODO impl tag formgroup
026            }
027            
028            @Override
029            public void release() {
030                    super.release();
031                    query=null;
032                    startrow=0;
033                    maxrows=-1;
034                    label=null;
035                    style=null;
036                    selectedIndex=-1;
037                    width=-1;
038                    height=-1;
039                    enabled=true;
040                    visible=true;
041                    onChange=null;
042                    tooltip=null;
043                    id=null;
044                    
045            }
046    
047    
048    
049            /**
050             * @param type the type to set
051             */
052            public void setType(String type) {
053                    //this.type = type;
054            }
055            
056            /**
057             * @param label the label to set
058             */
059            public void setLabel(String label) {
060                    this.label = label;
061            }
062    
063            /**
064             * @param maxrows the maxrows to set
065             */
066            public void setMaxrows(double maxrows) {
067                    this.maxrows = (int) maxrows;
068            }
069    
070            /**
071             * @param onChange the onChange to set
072             */
073            public void setOnchange(String onChange) {
074                    this.onChange = onChange;
075            }
076    
077            /**
078             * @param query the query to set
079             */
080            public void setQuery(String queryName) {
081                    //this.query = query;
082            }
083    
084            /**
085             * @param selectedIndex the selectedIndex to set
086             */
087            public void setSelectedindex(double selectedIndex) {
088                    this.selectedIndex = (int) selectedIndex;
089            }
090    
091            /**
092             * @param startrow the startrow to set
093             */
094            public void setStartrow(double startrow) {
095                    this.startrow = (int) startrow;
096            }
097    
098            /**
099             * @param style the style to set
100             */
101            public void setStyle(String style) {
102                    this.style = style;
103            }
104    
105            /**
106             * @param tooltip the tooltip to set
107             */
108            public void setTooltip(String tooltip) {
109                    this.tooltip = tooltip;
110            }
111    
112            /**
113             * @param visible the visible to set
114             */
115            public void setVisible(boolean visible) {
116                    this.visible = visible;
117            }
118    
119            /**
120             * @param width the width to set
121             */
122            public void setWidth(double width) {
123                    this.width = (int) width;
124            }
125            
126            
127    }