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 /** 024 * 025 * @see railo.runtime.ext.tag.BodyTagImpl#release() 026 */ 027 public void release() { 028 super.release(); 029 String label=null; 030 style=null; 031 width=-1; 032 height=-1; 033 enabled=true; 034 visible=true; 035 tooltip=null; 036 bind=null; 037 038 } 039 040 /** 041 * @param type the type to set 042 */ 043 public void setType(String type) { 044 //this.type = type; 045 } 046 047 /** 048 * @param bind the bind to set 049 */ 050 public void setBind(String bind) { 051 this.bind = bind; 052 } 053 054 /** 055 * @param enabled the enabled to set 056 */ 057 public void setEnabled(boolean enabled) { 058 this.enabled = enabled; 059 } 060 061 /** 062 * @param height the height to set 063 */ 064 public void setHeight(double height) { 065 this.height = (int) height; 066 } 067 068 /** 069 * @param style the style to set 070 */ 071 public void setStyle(String style) { 072 this.style = style; 073 } 074 075 /** 076 * @param tooltip the tooltip to set 077 */ 078 public void setTooltip(String tooltip) { 079 this.tooltip = tooltip; 080 } 081 082 /** 083 * @param visible the visible to set 084 */ 085 public void setVisible(boolean visible) { 086 this.visible = visible; 087 } 088 089 /** 090 * @param width the width to set 091 */ 092 public void setWidth(double width) { 093 this.width = (int) width; 094 } 095 096 097 }