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.TagImpl; 023 024public final class Applet extends TagImpl { 025 026 /** 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. */ 027 private String notsupported; 028 029 /** The width of the applet, in pixels. */ 030 private double width; 031 032 /** The height of the applet, in pixels. */ 033 private double height; 034 035 /** Alignment */ 036 private String align; 037 038 /** Space on each side of the applet, in pixels. */ 039 private double hspace; 040 041 /** The name of a registered parameter for the applet. */ 042 private String paramn; 043 044 /** Space above and below applet, in pixels. */ 045 private double vspace; 046 047 /** The form variable name for the applet. */ 048 private String name; 049 050 /** The name of the registered applet. */ 051 private String appletsource; 052 053 054 /** 055 * constructor for the tag class 056 * @throws TagNotSupported 057 **/ 058 public Applet() throws TagNotSupported { 059 throw new TagNotSupported("Applet"); 060 } 061 062 /** set the value notsupported 063 * 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. 064 * @param notsupported value to set 065 **/ 066 public void setNotsupported(String notsupported) { 067 this.notsupported=notsupported; 068 } 069 070 /** set the value width 071 * The width of the applet, in pixels. 072 * @param width value to set 073 **/ 074 public void setWidth(double width) { 075 this.width=width; 076 } 077 078 /** set the value height 079 * The height of the applet, in pixels. 080 * @param height value to set 081 **/ 082 public void setHeight(double height) { 083 this.height=height; 084 } 085 086 /** set the value align 087 * Alignment 088 * @param align value to set 089 **/ 090 public void setAlign(String align) { 091 this.align=align; 092 } 093 094 /** set the value hspace 095 * Space on each side of the applet, in pixels. 096 * @param hspace value to set 097 **/ 098 public void setHspace(double hspace) { 099 this.hspace=hspace; 100 } 101 102 /** set the value paramn 103 * @param paramn value to set 104 **/ 105 public void setParamn(String paramn) { 106 this.paramn=paramn; 107 } 108 109 /** set the value vspace 110 * Space above and below applet, in pixels. 111 * @param vspace value to set 112 **/ 113 public void setVspace(double vspace) { 114 this.vspace=vspace; 115 } 116 117 /** set the value name 118 * The form variable name for the applet. 119 * @param name value to set 120 **/ 121 public void setName(String name) { 122 this.name=name; 123 } 124 125 /** set the value appletsource 126 * The name of the registered applet. 127 * @param appletsource value to set 128 **/ 129 public void setAppletsource(String appletsource) { 130 this.appletsource=appletsource; 131 } 132 133 134 @Override 135 public int doStartTag() { 136 return SKIP_BODY; 137 } 138 139 @Override 140 public int doEndTag() { 141 return EVAL_PAGE; 142 } 143 144 @Override 145 public void release() { 146 super.release(); 147 notsupported=""; 148 width=0d; 149 height=0d; 150 align=""; 151 hspace=0d; 152 paramn=""; 153 vspace=0d; 154 name=""; 155 appletsource=""; 156 } 157}