📄 chatsetting.java
字号:
/**
* $RCSfile$
* $Revision: 19037 $
* $Date: 2005-06-13 17:01:53 -0700 (Mon, 13 Jun 2005) $
*
* Copyright (C) 1999-2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution, or a commercial license
* agreement with Jive.
*/
package org.jivesoftware.openfire.fastpath.settings.chat;
/**
* Represents a setting entry in the ChatSettings table.
*/
public class ChatSetting {
private String label;
private String workgroupNode;
private ChatSettings.SettingType type;
private KeyEnum key;
private String value;
private String defaultValue;
private String description;
public ChatSetting(KeyEnum key) {
this.key = key;
}
public ChatSetting(String key) {
for (KeyEnum keys : KeyEnum.values()) {
if (keys.toString().equals(key)) {
this.key = keys;
break;
}
}
}
public String getWorkgroupNode() {
return workgroupNode;
}
public void setWorkgroupNode(String workgroupNode) {
this.workgroupNode = workgroupNode;
}
public ChatSettings.SettingType getType() {
return type;
}
public void setType(ChatSettings.SettingType type) {
this.type = type;
}
public void setType(int type){
for(ChatSettings.SettingType key : ChatSettings.SettingType.values()){
if(key.getType() == type){
setType(key);
}
}
}
public KeyEnum getKey() {
return key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -