comboboxtag.java

来自「webwork source」· Java 代码 · 共 67 行

JAVA
67
字号
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.view.taglib.ui;import javax.servlet.jsp.JspException;/** *	Select list tag. * *	@author Rickard 謆erg (rickard@dreambean.com) *	@version $Revision: 1.4 $ */public class ComboBoxTag extends AbstractHTMLComponentTag{   // Attributes ----------------------------------------------------   protected String sizeAttr;   protected String maxlengthAttr;   protected String onkeyupAttr;   protected String list;    // Public --------------------------------------------------------   public void setSize(String aSize)   {      this.sizeAttr = aSize;   }   public void setMaxlength(String aMaxlength)   {      this.maxlengthAttr = aMaxlength;   }   public String getTemplate()   {      return "combobox";   }   public void setList(String aList)   {      this.list = aList;   }   public void setOnkeyup(String onkeyup)   {      this.onkeyupAttr = onkeyup;   }   // BodyTag implementation ----------------------------------------   public int doEndTag()      throws JspException   {      if (list != null)         this.addParameter("list",findValue(list));      if (sizeAttr != null)         this.addParameter("size",findValue(sizeAttr));      if (maxlengthAttr != null)         this.addParameter("maxlength",findValue(maxlengthAttr));      if (onkeyupAttr != null)         this.addParameter("onkeyup", findValue(onkeyupAttr));      return super.doEndTag();   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?