📄 textareatag.java
字号:
/* * 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;/** * Text area tag. * * @author Rickard 謆erg (rickard@dreambean.com) * @version $Revision: 1.4 $ */public class TextAreaTag extends AbstractHTMLComponentTag{ // Attributes ---------------------------------------------------- protected String readonlyAttr; protected String onkeyupAttr; protected String cols; protected String rows; // Public -------------------------------------------------------- public String getTemplate() { return "textarea"; } public void setCols(String aSize) { this.cols = aSize; } public void setRows(String aSize) { this.rows = aSize; } public void setReadonly(String readonly) { this.readonlyAttr = readonly; } public void setOnkeyup(String onkeyup) { this.onkeyupAttr = onkeyup; } // BodyTag implementation ---------------------------------------- public int doEndTag() throws JspException { if (cols != null) this.addParameter("cols",findValue(cols)); if (rows != null) this.addParameter("rows",findValue(rows)); if (readonlyAttr != null) this.addParameter("readonly", findValue(readonlyAttr)); if (onkeyupAttr != null) this.addParameter("onkeyup", findValue(onkeyupAttr)); return super.doEndTag(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -