|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.util.Config
This is the basic configuration used by all slaves programs.
| Field Summary | |
static java.lang.String |
BIN_PATH
Defines the bin directory. |
static java.lang.String |
CURSOR_PATH
Defines the cursor directory. |
private static boolean |
DEBUG
|
private static boolean |
DEBUG_EXCEPTION
|
static int |
DEBUG_EXCEPTION_KEY
|
private static boolean |
DEBUG_GRAPHIC
|
static int |
DEBUG_GRAPHIC_KEY
|
static int |
DEBUG_KEY
|
private static boolean |
DEBUG_LDAP
|
static int |
DEBUG_LDAP_KEY
|
private static boolean |
DEBUG_MESSAGE
|
static int |
DEBUG_MESSAGE_KEY
|
private static boolean |
DEBUG_NETWORK
|
static int |
DEBUG_NETWORK_KEY
|
private static boolean |
DEBUG_RESOURCE
|
static int |
DEBUG_RESOURCE_KEY
|
private static java.lang.String |
DEFAULT_SERVER
The server's host name |
private static java.lang.String |
DLAI_VERSION
Default version number. |
static java.lang.String |
EXTENSION_SEPARATOR
Defines the file extension separator. |
static java.lang.String |
FILE_SEPARATOR
Defines the file separator. |
private static java.awt.Font |
FONT
The defaut font used. |
static java.lang.String |
HELP_PATH
Defines the help directory. |
static java.awt.Dimension |
ICON_BIG
Defines teh default dimension of small icons. |
static java.lang.String |
ICON_PATH
Defines the icon directory. |
static java.awt.Dimension |
ICON_SMALL
Defines the default dimension of big icons. |
static java.lang.String |
IMAGE_PATH
Defines the image directory. |
private static boolean |
INITIALIZED
Indicates if the values from the config file have been loaded. |
static java.lang.String |
LIB_PATH
Defines the lib directory. |
private static java.net.InetAddress |
LOCAL_HOST
The adresse of the local host. |
private static java.util.Locale |
LOCALE
The default language used by the PPM and all slaves programs. |
private static javax.swing.LookAndFeel |
LOOK_N_FEEL
The default look'n feel. |
static java.lang.String |
MINI_ICON_PATH
Defines the miniicon directory. |
static java.lang.String |
MODULE_SEPARATOR
Separator to put between the module and the name of the file. |
static int |
MOUSE_AUTO_FOCUS
|
private static int |
MOUSE_FOCUS
Current value for mouse focus parameter. |
static int |
MOUSE_FOCUS_ON_CLICK
|
static java.lang.String |
PACKAGE_PATH
Defines the package directory. |
static java.lang.String |
PACKAGE_SEPARATOR
Defines the package separator. |
static java.lang.String |
RESOURCE_PATH
Defines the localized resource directory. |
private static java.lang.String[] |
SERVER_LIST
The list of all available servers. |
private static int |
SERVER_PORT
The port of the server on its host. |
private static java.lang.String |
SESSION_ID
The sessionID defined by the server, initially is equal to INIT until the server changes this. |
static java.lang.String |
SLAVE_PATH
Defines the slave directory. |
static java.lang.String |
SOUND_PATH
Defines the sound directory. |
private static java.lang.String |
TAG_SEPARATOR
Separator used when parsing config file. |
private static java.lang.String[] |
TOOL_LIST
Default list of tools. |
static java.lang.String |
TOOL_PATH
Defines the tool directory. |
static java.lang.String |
URL_SEPARATOR
Defines the URL separator. |
static int |
WINDOW_AUTO_RAISE
|
private static int |
WINDOW_RAISE
Current value for window raising parameter. |
static int |
WINDOW_RAISE_ON_CLICK
|
static java.lang.String |
WORK_PATH
Defines the working directory. |
static int |
X_GAP
Defines the vertical gap between the components. |
static int |
X_INSET
Defines the width of the right and left borders. |
static int |
Y_GAP
Defines the horizontal gap between the components. |
static int |
Y_INSET
Defines the height of the top and bottom borders. |
| Constructor Summary | |
Config()
|
|
| Method Summary | |
static boolean |
getDebugValue(int debugKey)
Return the value associated with a debug property. |
static java.lang.String |
getDefaultServer()
Returns the server's host name. |
static java.awt.Font |
getFont()
Return the current font. |
static java.util.Locale |
getLocale()
Returns the user's language. |
static java.lang.String |
getLocalHost()
Return the name of the local host. |
static javax.swing.LookAndFeel |
getLookAndFeel()
Return the current look and feel. |
static int |
getMouseFocus()
Gets the mouse focus mode. |
static java.lang.String[] |
getServerList()
Return the list of server. |
static int |
getServerPort()
Returns the server's port on the host. |
static java.lang.String |
getSessionID()
Returns the session ID. |
static java.lang.String[] |
getToolList()
Get the list of available tools (see default.properties file). |
static java.lang.String |
getVersion()
Return DELAI version. |
static int |
getWindowRaise()
Gets the window raising mode. |
private static void |
initialize()
Loads default resources from the configuration file : default.properties. |
static void |
setDebugValue(int debugKey,
boolean value)
Sets a debug value. |
static void |
setDefaultServer(java.lang.String defaultServer)
Sets the server's host name. |
static void |
setFont(java.awt.Font font)
Sets the font. |
static void |
setLocale(java.util.Locale locale)
Sets the user's language. |
static void |
setLookAndFeel(javax.swing.LookAndFeel lookNFeel)
Sets the current look and feel. |
static void |
setMouseFocus(int value)
Sets the mouse focus mode. |
static void |
setServerList(java.lang.String[] serverList)
Sets the server's list. |
static void |
setServerPort(int serverPort)
Sets the server's port on the host. |
static void |
setServerPort(java.lang.String serverPort)
Sets the server's port on the host. |
static void |
setSessionID(java.lang.String sessionID)
Sets this session's ID. |
static void |
setWindowRaise(int value)
Sets the window raising mode. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static boolean INITIALIZED
private static java.lang.String TAG_SEPARATOR
private static java.lang.String DLAI_VERSION
private static java.lang.String SESSION_ID
private static java.net.InetAddress LOCAL_HOST
private static java.lang.String[] SERVER_LIST
private static java.lang.String DEFAULT_SERVER
private static int SERVER_PORT
private static java.lang.String[] TOOL_LIST
private static java.util.Locale LOCALE
private static java.awt.Font FONT
public static final int MOUSE_FOCUS_ON_CLICK
public static final int MOUSE_AUTO_FOCUS
private static int MOUSE_FOCUS
public static final int WINDOW_RAISE_ON_CLICK
public static final int WINDOW_AUTO_RAISE
private static int WINDOW_RAISE
private static javax.swing.LookAndFeel LOOK_N_FEEL
public static final int DEBUG_KEY
public static final int DEBUG_GRAPHIC_KEY
public static final int DEBUG_NETWORK_KEY
public static final int DEBUG_LDAP_KEY
public static final int DEBUG_MESSAGE_KEY
public static final int DEBUG_RESOURCE_KEY
public static final int DEBUG_EXCEPTION_KEY
private static boolean DEBUG
private static boolean DEBUG_GRAPHIC
private static boolean DEBUG_NETWORK
private static boolean DEBUG_LDAP
private static boolean DEBUG_MESSAGE
private static boolean DEBUG_RESOURCE
private static boolean DEBUG_EXCEPTION
public static final java.awt.Dimension ICON_SMALL
public static final java.awt.Dimension ICON_BIG
public static int X_INSET
public static int Y_INSET
public static int X_GAP
public static int Y_GAP
public static final java.lang.String PACKAGE_SEPARATOR
public static final java.lang.String EXTENSION_SEPARATOR
public static final java.lang.String MODULE_SEPARATOR
public static final java.lang.String URL_SEPARATOR
FILE_SEPARATOR (the '\' under Windows made the files unreadable inside the archive).public static final java.lang.String FILE_SEPARATOR
public static final java.lang.String WORK_PATH
public static final java.lang.String BIN_PATH
public static final java.lang.String LIB_PATH
public static final java.lang.String PACKAGE_PATH
public static final java.lang.String SLAVE_PATH
public static final java.lang.String TOOL_PATH
public static final java.lang.String ICON_PATH
public static final java.lang.String MINI_ICON_PATH
public static final java.lang.String RESOURCE_PATH
public static final java.lang.String IMAGE_PATH
public static final java.lang.String SOUND_PATH
public static final java.lang.String CURSOR_PATH
public static final java.lang.String HELP_PATH
| Constructor Detail |
public Config()
| Method Detail |
private static final void initialize()
Config will try to use hard-coded values.
public static final java.lang.String getLocalHost()
public static final java.lang.String getDefaultServer()
null if no server defined.public static final java.lang.String[] getServerList()
public static final int getServerPort()
public static final void setServerList(java.lang.String[] serverList)
serverList - The new list of server.public static final void setDefaultServer(java.lang.String defaultServer)
defaultServer - The new default server.public static final void setServerPort(java.lang.String serverPort)
serverPort - The new server's port.public static final void setServerPort(int serverPort)
public static final void setLocale(java.util.Locale locale)
locale - If null, the system's locale will be used.public static final java.util.Locale getLocale()
public static final void setSessionID(java.lang.String sessionID)
sessionID - Cant't be null.public static final java.lang.String getSessionID()
public static final java.awt.Font getFont()
public static final void setFont(java.awt.Font font)
font - The new font.public static final javax.swing.LookAndFeel getLookAndFeel()
public static final void setLookAndFeel(javax.swing.LookAndFeel lookNFeel)
lookNFeel - The new look and feel to be set.public static final int getMouseFocus()
MOUSE_AUTO_FOCUS or WINDOW_RAISE_ON_CLICK.public static final void setMouseFocus(int value)
value - The new value. Either MOUSE_AUTO_FOCUS or WINDOW_RAISE_ON_CLICK.public static final int getWindowRaise()
WINDOW_AUTO_RAISE or WINDOW_RAISE_ON_CLICK.public static final void setWindowRaise(int value)
value - The new value. EitherWINDOW_AUTO_RAISE or WINDOW_RAISE_ON_CLICK.public static final boolean getDebugValue(int debugKey)
debugKey -
public static final void setDebugValue(int debugKey,
boolean value)
debugKey - value - The new value.public static final java.lang.String getVersion()
public static final java.lang.String[] getToolList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||