?? sysconfig.java
字號(hào):
package cn.hxex.exam.config;
import java.util.Hashtable;
/**
* 系統(tǒng)參數(shù)對(duì)象
*
* @author galaxy
*
*/
public class SysConfig
{
private Hashtable<String, String> properties;
/**
* 增加系統(tǒng)參數(shù)
* @param property 增加的參數(shù)對(duì)象
*/
public void addProperty( Property property )
{
if( properties==null )
properties = new Hashtable<String, String>();
properties.put( property.getName(), property.getValue() );
}
/**
* 根據(jù)名字得到系統(tǒng)參數(shù)的值
*
* @param name 參數(shù)的名稱
* @return 參數(shù)的值
*/
public String getPropertyValue( String name )
{
if( properties==null ) return null;
return properties.get( name );
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -