battlemaptag.java
来自「struts框架的jsf组件的核心实用例子集合」· Java 代码 · 共 42 行
JAVA
42 行
package com.corejsf;import javax.faces.component.UIComponent;import javax.faces.webapp.UIComponentTag;public class BattleMapTag extends UIComponentTag { private String own; private String value; private String validator; private String buttons; // PROPERTY: own public void setOwn(String newValue) { own = newValue; } // PROPERTY: value public void setValue(String newValue) { value = newValue; } // PROPERTY: validator public void setValidator(String newValue) { validator = newValue; } // PROPERTY: buttons public void setButtons(String newValue) { buttons = newValue; } public void setProperties(UIComponent component) { super.setProperties(component); com.corejsf.util.Tags.setString(component, "value", value); com.corejsf.util.Tags.setBoolean(component, "own", own); com.corejsf.util.Tags.setValidator(component, validator); com.corejsf.util.Tags.setBoolean(component, "buttons", buttons); } public void release() { own = null; value = null; validator = null; buttons = null; } public String getRendererType() { return "com.corejsf.BattleMap"; } public String getComponentType() { return "com.corejsf.BattleMap"; } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?