⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 labelvaluebean.java

📁 一个很好的开源项目管理系统源代码
💻 JAVA
字号:
package net.java.workeffort.infrastructure;import java.io.Serializable;/** * The LabelValueBean as available in Struts distribution. * <p> * Generally used to hold values for list of values. Only difference is both * value and label are of type Object rather than String. No modifications have * been made to the code. */public class LabelValueBean implements Serializable {    // ----------------------------------------------------------- Constructors    /**     * Construct an instance with the supplied property values.     * @param label The label to be displayed to the user.     * @param value The value to be returned to the server.     */    public LabelValueBean(Object label, Object value) {        this.label = label;        this.value = value;    }    // ------------------------------------------------------------- Properties    /**     * The property which supplies the option label visible to the end user.     */    private Object label;    public Object getLabel() {        return this.label;    }    public void setLabel(Object label) {        this.label = label;    }    /**     * The property which supplies the value returned to the server.     */    private Object value;    public Object getValue() {        return this.value;    }    public void setValue(Object value) {        this.value = value;    }    // --------------------------------------------------------- Public Methods    /**     * Return a string representation of this object.     */    public String toString() {        StringBuffer sb = new StringBuffer("LabelValueBean[");        sb.append(this.label);        sb.append(", ");        sb.append(this.value);        sb.append("]");        return (sb.toString());    }}

⌨️ 快捷键说明

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