📄 jremconfigproperties.java
字号:
/* * Copyright (C) 2007 Filippo Di Vattimo - See LICENSE * */package fildiv.jremcntl.server.core;public class JRemConfigProperties { // Define here new properties private static Object[] propertiesArr = new Object[] { JRemProperties.PROP_NAME, "name", "name", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_ID, "id", "ID", JRemPropertyValueMappers.intValueMapper, JRemProperties.PROP_BASE_DIR, "basedir", "baseDir", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_DEF_VIEW, "def-view", "defView", JRemPropertyValueMappers.defViewValueMapper, JRemProperties.PROP_EXE_PATH, "exepath", "exePath", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_DESCRIPTION, "description", "desc", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_MOBILE_KEY, "key", "key", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_QUESTION, "question", "question", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_CLASS_NAME, "className", "className", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_ON_CONNECT, "onConnectExePath", "onConnectExePath", JRemPropertyValueMappers.stringValueMapper, JRemProperties.PROP_ON_DISCONNECT, "onDisconnectExePath", "onDisconnectExePath", JRemPropertyValueMappers.stringValueMapper }; // Config properties private static String[] configPropertiesArr = new String[] { JRemProperties.PROP_NAME, JRemProperties.PROP_BASE_DIR, JRemProperties.PROP_ON_CONNECT, JRemProperties.PROP_ON_DISCONNECT }; // Context properties private static String[] contextPropertiesArr = new String[] { JRemProperties.PROP_ID, JRemProperties.PROP_DESCRIPTION, JRemProperties.PROP_DEF_VIEW, JRemProperties.PROP_BASE_DIR }; // Context properties private static String[] commandPropertiesArr = new String[] { JRemProperties.PROP_ID, JRemProperties.PROP_DESCRIPTION, JRemProperties.PROP_EXE_PATH, JRemProperties.PROP_MOBILE_KEY, JRemProperties.PROP_QUESTION }; // Extension properties private static String[] extensionPropertiesArr = new String[] { JRemProperties.PROP_CLASS_NAME }; public static final String OBJ_CONFIG_NAME = "config"; public static final String OBJ_CONTEXT_NAME = "context"; public static final String OBJ_COMMAND_NAME = "command"; public static final String OBJ_EXTENSION_NAME = "extension"; protected static synchronized JRemPropertyMapper createPropertiesMapper() { JRemPropertyMapper propertyMapper = new JRemPropertyMapper(propertiesArr); propertyMapper.registerSupportedProperties(OBJ_CONFIG_NAME, configPropertiesArr); propertyMapper.registerSupportedProperties(OBJ_CONTEXT_NAME, contextPropertiesArr); propertyMapper.registerSupportedProperties(OBJ_COMMAND_NAME, commandPropertiesArr); propertyMapper.registerSupportedProperties(OBJ_EXTENSION_NAME, extensionPropertiesArr); return propertyMapper; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -