001    package railo.runtime.tag;
002    
003    import railo.runtime.exp.TagNotSupported;
004    import railo.runtime.ext.tag.TagImpl;
005    
006    public final class Applet extends TagImpl {
007    
008            /** The text to display if a page containing a Java applet-based cfform control is opened by a browser that does not support Java or has Java support disabled. */
009            private String notsupported;
010    
011            /** The width of the applet, in pixels. */
012            private double width;
013    
014            /** The height of the applet, in pixels. */
015            private double height;
016    
017            /** Alignment */
018            private String align;
019    
020            /** Space on each side of the applet, in pixels. */
021            private double hspace;
022    
023            /** The name of a registered parameter for the applet. */
024            private String paramn;
025    
026            /** Space above and below applet, in pixels. */
027            private double vspace;
028    
029            /** The form variable name for the applet. */
030            private String name;
031    
032            /** The name of the registered applet. */
033            private String appletsource;
034    
035    
036            /**
037            * constructor for the tag class
038             * @throws TagNotSupported 
039            **/
040            public Applet() throws TagNotSupported {
041                    throw new TagNotSupported("Applet");
042            }
043    
044            /** set the value notsupported
045            *  The text to display if a page containing a Java applet-based cfform control is opened by a browser that does not support Java or has Java support disabled.
046            * @param notsupported value to set
047            **/
048            public void setNotsupported(String notsupported)        {
049                    this.notsupported=notsupported;
050            }
051    
052            /** set the value width
053            *  The width of the applet, in pixels.
054            * @param width value to set
055            **/
056            public void setWidth(double width)      {
057                    this.width=width;
058            }
059    
060            /** set the value height
061            *  The height of the applet, in pixels.
062            * @param height value to set
063            **/
064            public void setHeight(double height)    {
065                    this.height=height;
066            }
067    
068            /** set the value align
069            *  Alignment
070            * @param align value to set
071            **/
072            public void setAlign(String align)      {
073                    this.align=align;
074            }
075    
076            /** set the value hspace
077            *  Space on each side of the applet, in pixels.
078            * @param hspace value to set
079            **/
080            public void setHspace(double hspace)    {
081                    this.hspace=hspace;
082            }
083    
084            /** set the value paramn
085            * @param paramn value to set
086            **/
087            public void setParamn(String paramn)    {
088                    this.paramn=paramn;
089            }
090    
091            /** set the value vspace
092            *  Space above and below applet, in pixels.
093            * @param vspace value to set
094            **/
095            public void setVspace(double vspace)    {
096                    this.vspace=vspace;
097            }
098    
099            /** set the value name
100            *  The form variable name for the applet.
101            * @param name value to set
102            **/
103            public void setName(String name)        {
104                    this.name=name;
105            }
106    
107            /** set the value appletsource
108            *  The name of the registered applet.
109            * @param appletsource value to set
110            **/
111            public void setAppletsource(String appletsource)        {
112                    this.appletsource=appletsource;
113            }
114    
115    
116            /**
117            * @see javax.servlet.jsp.tagext.Tag#doStartTag()
118            */
119            public int doStartTag() {
120                    return SKIP_BODY;
121            }
122    
123            /**
124            * @see javax.servlet.jsp.tagext.Tag#doEndTag()
125            */
126            public int doEndTag()   {
127                    return EVAL_PAGE;
128            }
129    
130            /**
131            * @see javax.servlet.jsp.tagext.Tag#release()
132            */
133            public void release()   {
134                    super.release();
135                    notsupported="";
136                    width=0d;
137                    height=0d;
138                    align="";
139                    hspace=0d;
140                    paramn="";
141                    vspace=0d;
142                    name="";
143                    appletsource="";
144            }
145    }