actionmessage.java

来自「雷霆论坛是用J2EE技术开发的功能强大、扩展性强、易于定制」· Java 代码 · 共 29 行

JAVA
29
字号
package lightningboard;

import java.io.Serializable;

/**
 * Message in action
 * @version 0.3.5
 * @author Xiaobo Liu
 */
public class ActionMessage implements Serializable {
  private String key = null;
  private String value = null;
  /**
   * Constructor, Create a new ActionMessage object.
   * @param key a certain key define in properties file.
   */
  public ActionMessage(String key) {
    this.key = key;
    Configuration cfg=Configuration.getInstance();
    this.value = cfg.getValue("MSG."+key);
  }
  /**
   * Return value for a certain key.
   * @return value for a certain key.
   */
  public String getValue() {
    return (this.value);
  }
}

⌨️ 快捷键说明

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