001 package railo.runtime.tag; 002 003 import railo.runtime.exp.TagNotSupported; 004 import railo.runtime.ext.tag.BodyTagImpl; 005 006 public final class Formitem extends BodyTagImpl { 007 008 private int type; 009 private String style; 010 private int width=-1; 011 private int height=-1; 012 private boolean enabled=true; 013 private boolean visible=true; 014 private String tooltip; 015 private String bind; 016 017 018 public Formitem() throws TagNotSupported { 019 throw new TagNotSupported("formitem"); 020 // TODO impl. Tag formItem 021 } 022 023 @Override 024 public void release() { 025 super.release(); 026 style=null; 027 width=-1; 028 height=-1; 029 enabled=true; 030 visible=true; 031 tooltip=null; 032 bind=null; 033 034 } 035 036 /** 037 * @param type the type to set 038 */ 039 public void setType(String type) { 040 //this.type = type; 041 } 042 043 /** 044 * @param bind the bind to set 045 */ 046 public void setBind(String bind) { 047 this.bind = bind; 048 } 049 050 /** 051 * @param enabled the enabled to set 052 */ 053 public void setEnabled(boolean enabled) { 054 this.enabled = enabled; 055 } 056 057 /** 058 * @param height the height to set 059 */ 060 public void setHeight(double height) { 061 this.height = (int) height; 062 } 063 064 /** 065 * @param style the style to set 066 */ 067 public void setStyle(String style) { 068 this.style = style; 069 } 070 071 /** 072 * @param tooltip the tooltip to set 073 */ 074 public void setTooltip(String tooltip) { 075 this.tooltip = tooltip; 076 } 077 078 /** 079 * @param visible the visible to set 080 */ 081 public void setVisible(boolean visible) { 082 this.visible = visible; 083 } 084 085 /** 086 * @param width the width to set 087 */ 088 public void setWidth(double width) { 089 this.width = (int) width; 090 } 091 092 093 }