actionmessage.java

来自「用java实现的一个论坛,可以供大家参考」· Java 代码 · 共 48 行

JAVA
48
字号
/*******************************************************************\
*                                                                   *
*			   LightningBoard			    *
*                                                                   *
*          http://sourceforge.net/projects/lightningboard/          *
*			                                            *
*	            Copyright (c) 2002 Xiaobo Liu	            *
*                                                                   *
*********************************************************************
*                        LICENSE INFORMATION                        *
*                                                                   *
*  LightningBoard is free software; you can redistribute it and/or  *
*  modify it under the terms of the GNU General Public License as   *
*  published by the Free Software Foundation; either version 2 of   *
*  the License, or any later version.                               *
*                                                                   *
*  We don't charge anything for the use of LightningBoard, we only  *
*  require you to keep the copyright present on your site and in    *
*  the source files.                                                *
*                                                                   *
*  LightningBoard is distributed in the hope that it will be useful,*
*  but without any warranty; without even the implied warranty of   *
*  merchantability or fitness for a particular purpose. See the GNU *
*  General Public License for more details.                         *
*                                                                   *
\*******************************************************************/


package liuxiaobo.lb;

import java.util.*;
import java.io.Serializable;

public class ActionMessage implements Serializable {
  private String key = null;
  private String value = null;
  public ActionMessage(String key) {
    this.key = key;
    PropertyResourceBundle prb=(PropertyResourceBundle)PropertyResourceBundle.getBundle("/MSG");
    this.value = prb.getString("MSG."+key);
  }
  public String getKey() {
    return (this.key);
  }
  public String getValue() {
    return (this.value);
  }
}

⌨️ 快捷键说明

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