Package com.artenum.rosetta.util
Class ConfigurationBuilder.ConfigurationHandler
- java.lang.Object
-
- com.artenum.rosetta.util.ConfigurationBuilder.ConfigurationHandler
-
- All Implemented Interfaces:
Configuration
,java.lang.reflect.InvocationHandler
- Enclosing class:
- ConfigurationBuilder
private static class ConfigurationBuilder.ConfigurationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler, Configuration
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.ActionMap
actionMap
private java.lang.String
activeProfile
private java.util.Hashtable<java.lang.String,java.lang.Object>
cache
private org.w3c.dom.Document
dom
private javax.swing.InputMap
inputMap
private java.util.Collection<java.lang.String>
internalMethodNames
private java.util.ArrayList<java.lang.String>
profileList
private java.lang.Object
proxy
private boolean
useCache
-
Constructor Summary
Constructors Constructor Description ConfigurationHandler(java.lang.String xmlFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
convertKeyInformation(java.lang.String value)
javax.swing.ActionMap
getActionMapping()
java.lang.String
getActiveProfile()
private int
getActiveProfileIndex()
javax.swing.InputMap
getKeyMapping()
private java.lang.String
getPropertyValue(java.lang.String propertyName)
get the value of the propertiejava.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
void
setActiveProfile(java.lang.String profileName)
-
-
-
Field Detail
-
internalMethodNames
private final java.util.Collection<java.lang.String> internalMethodNames
-
activeProfile
private java.lang.String activeProfile
-
dom
private final org.w3c.dom.Document dom
-
profileList
private final java.util.ArrayList<java.lang.String> profileList
-
cache
private final java.util.Hashtable<java.lang.String,java.lang.Object> cache
-
useCache
private boolean useCache
-
actionMap
private final javax.swing.ActionMap actionMap
-
inputMap
private final javax.swing.InputMap inputMap
-
proxy
private java.lang.Object proxy
-
-
Method Detail
-
setActiveProfile
public void setActiveProfile(java.lang.String profileName)
- Specified by:
setActiveProfile
in interfaceConfiguration
-
getActiveProfile
public java.lang.String getActiveProfile()
- Specified by:
getActiveProfile
in interfaceConfiguration
- Returns:
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
getActiveProfileIndex
private int getActiveProfileIndex()
- Returns:
-
getPropertyValue
private java.lang.String getPropertyValue(java.lang.String propertyName)
get the value of the propertie- Parameters:
propertyName
- the name of the propertie- Returns:
- the value
-
getActionMapping
public javax.swing.ActionMap getActionMapping()
- Specified by:
getActionMapping
in interfaceConfiguration
- Returns:
-
getKeyMapping
public javax.swing.InputMap getKeyMapping()
- Specified by:
getKeyMapping
in interfaceConfiguration
- Returns:
-
convertKeyInformation
private int convertKeyInformation(java.lang.String value)
- Parameters:
value
-- Returns:
-
-