optionlabelvalue.java
来自「我在加拿大学习的一个比较复杂的在线银行程序.」· Java 代码 · 共 76 行
JAVA
76 行
package com.ebusiness.ebank.util ;import java.io.Serializable;/** * OptionLabelValue : Value/Label * @ version 1.0 * @ author unascribed */public class OptionLabelValue implements Serializable { public String label = null; public String value = null; /** * Construct a new OptionLabelValue with the specified values. * * @param label The label to be displayed to the user * @param value The value to be returned to the server */ public OptionLabelValue(String label, String value) { this.label = label; this.value = value; } /** * Getter of the label */ public String getLabel() { return label; } /** * Getter of the value */ public String getValue() { return value; } /** * Setter of the label */ public void setLabel(String label) { this.label = label; } /** * Setter of the value */ public void setValue(String value) { this.value = value; } /** * Setter of the Value/Label */ public void setLabelValue(String label, String value) { setLabel(label); setValue(value); } /** * Return a string representation of this object. */ public String toString() { StringBuffer sb = new StringBuffer("OptionLabelValue["); sb.append(this.label); sb.append(", "); sb.append(this.value); sb.append("]"); return (sb.toString()); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?