IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class DefaultSettings

java.lang.Object
  extended bycom.ibm.dse.gui.DefaultSettings

public final class DefaultSettings
extends java.lang.Object

Class that holds the values related to font, special keys, SGML lists and color properties for visual beans.


Field Summary
protected static java.util.Vector selfDefined
           
 
Constructor Summary
DefaultSettings()
          This constructor creates a Settings object.
 
Method Summary
static java.lang.String[] createSelfDefinedOpList(java.util.Vector v)
          Returns a list of self-defined operations not defined in the dse.ini but placed in the value of path.operations or path.entities.
static Vector getComposedDataCollection(Vector actualList, DataCollection keyed, java.lang.String initialPath)
          Gets the Composed Data Names list property value inside DataCollection element.
static java.lang.String[] getComposedDataNames()
          Gets the Composed Data Names list property value.
static java.lang.String[] getComposedDataNamesContext(java.lang.String ctxName)
          Gets the Composed Data Names list property value.
static java.lang.String[] getComposedDataNamesOperation(java.lang.String operName)
          Gets the Composed Data Names list property value.
static Vector getComposedSubTags(Vector composedv, Tag tag)
          Gets the Composed Data Names list property value inside tag.
static java.lang.String[] getContextList()
          Gets the Context list property value.
static java.lang.String getDSEIniPath()
          Gets the dse.ini file path.
static Vector getElementsDataCollection(Vector actualList, DataCollection keyed, java.lang.String initialPath)
          Gets the Simple Data Names list property value inside a DataCollection.
static java.lang.String[] getFormatList()
          Gets the Format list property value.
static java.lang.String[] getIndexedColumnsFromContext(java.lang.String indexedName, java.lang.String ctxName)
          Gets the list of columns inside an IndexedCollection element in a Context for SpTable
static java.lang.String[] getIndexedColumnsFromOperation(java.lang.String indexedName, java.lang.String operName)
          Gets the list of columns inside an IndexedCollection element in a Operation for SpTable
static Vector getIndexedDataCollection(Vector actualList, DataCollection keyed, java.lang.String initialPath)
          Gets the IndexedCollection Data Names list property value inside a DataCollection.
static java.lang.String[] getIndexedDataNames()
          Gets the Indexed Data Names list property value.
static java.lang.String[] getIndexedDataNamesContext(java.lang.String ctxName)
          Gets the Indexed Data Names list property value.
static java.lang.String[] getIndexedDataNamesOperation(java.lang.String operName)
          Gets the Indexed Data Names list property value.
static IndexedCollection getIndexedFromContext(java.lang.String indexedName, java.lang.String ctxName)
          Gets the IndexedCollection element in a Context
static IndexedCollection getIndexedFromOperation(java.lang.String indexedName, java.lang.String operName)
          Gets the IndexedCollection element in a Operation
static Vector getIndexedSubTags(Vector indexedv, Tag tag)
          Gets the Indexed Data Names list property value inside tag.
static Vector getKeyedDataCollection(Vector actualList, DataCollection keyed, java.lang.String initialPath)
          Gets the Yeyed Data Names list property value inside DataCollection element.
static java.lang.String[] getKeyedDataNamesContext(java.lang.String ctxName)
          Gets the Keyed Data Names list property value.
static java.lang.String[] getKeyedDataNamesOperation(java.lang.String operName)
          Gets the Keyed Data Names list property value.
static java.lang.String[] getOperationList()
          Gets the Operation list property value.
static java.util.Hashtable getPropertyList()
          Gets the all properties list.
static java.lang.Object getSelfDefinedAttributes(java.lang.String operationName, java.lang.String attribute)
          Gets the Operation list property value.
static java.util.Vector getSelfDefinedOperationList()
          Gets the Operation list property value.
static java.lang.String[] getSimpleDataNames()
          Gets the Simple Data Names list property value.
static java.lang.String[] getSimpleDataNamesContext(java.lang.String ctxName)
          Gets the Simple Data Names list property value.
static java.lang.String[] getSimpleDataNamesOperation(java.lang.String operName)
          Gets the Simple Data Names list property value.
static Vector getSimpleSubTags(Vector simplev, Tag tag)
          Gets the Simple Data Names list property value inside tag.
static java.lang.Object getValueAt(java.lang.String propName)
          Gets the property (its name is "propName") from the property list.
static void initialize()
          Initializes values from settings.properties file
static Vector insertSortInVector(Vector v, java.lang.String s)
          Inserts String to Vector in proper order.
static boolean isBackTabKey(java.awt.event.KeyEvent e)
          Checks if the event passed as argument correspond to the back tab key event.
static boolean isColorVBproperty(java.lang.String propertyName)
          Checks if the parameter is the name of a property of the Framework and their type is color.
static boolean isFontVBproperty(java.lang.String propertyName)
          Checks if the parameter is the name of a property of the Framework and their type is Font.
static boolean isHelpKey(java.awt.event.KeyEvent e)
          Checks if the event passed as argument correspond to the help key event.
static boolean isKeyVBproperty(java.lang.String propertyName)
          Checks if the parameter is the name of a property of the Framework and their type is a key.
static boolean isMaskVBproperty(java.lang.String propertyName)
          Checks if the parameter is the name of a property of the Framework and their type is a Mask.
static boolean isOkKey(java.awt.event.KeyEvent e)
          Checks if the event passed as argument correspond to the ok key event.
static boolean isSpecialKey(java.awt.event.KeyEvent e)
          Checks if the event passed as argument correspond to an special key event.
static boolean isTabKey(java.awt.event.KeyEvent e)
          Checks if the event passed as argument correspond to the tab key event.
static void reset()
          Resets all values.
static void setColorValues(java.lang.String propetyName, java.lang.String propetryValue)
          sets the default color values in the property list.
static void setDSEIniPath(java.lang.String Path)
          Sets dse.ini file path property (String) value.
static void setKeyValues(java.lang.String propetyName, java.lang.String propetryValue)
          sets the default key values in the property list.
static void setMaskValues(java.lang.String propetyName, java.lang.String propetryValue)
          sets the default mask values in the property list.
static void setPropertyList(java.util.Hashtable pl)
          Sets the all properties list.
static void setValueAt(java.lang.String propName, java.lang.Object value)
          Sets the property (its name is "propName") to the property list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selfDefined

protected static java.util.Vector selfDefined
Constructor Detail

DefaultSettings

public DefaultSettings()
This constructor creates a Settings object.

Method Detail

createSelfDefinedOpList

public static java.lang.String[] createSelfDefinedOpList(java.util.Vector v)
                                                  throws java.io.IOException
Returns a list of self-defined operations not defined in the dse.ini but placed in the value of path.operations or path.entities.

Parameters:
v - java.util.Vector.Name of xml files placed in this direcotry that are not self defined operations
Returns:
String[]
Throws:
java.io.IOException

getComposedDataCollection

public static Vector getComposedDataCollection(Vector actualList,
                                               DataCollection keyed,
                                               java.lang.String initialPath)
Gets the Composed Data Names list property value inside DataCollection element.

Parameters:
actualList - com.ibm.dse.base.Vector to insert Composed Data Names.
keyed - com.ibm.dse.base.DataCollection.
initialPath - String path to insert before Data Names list
Returns:
java.util.Vector - Target vector Data Names list.

getComposedDataNames

public static java.lang.String[] getComposedDataNames()
Gets the Composed Data Names list property value. Composed Data Names list are all "icol" and "kcol" found in SGML files.

Returns:
String[] - Composed Data Names list.

getComposedDataNamesContext

public static java.lang.String[] getComposedDataNamesContext(java.lang.String ctxName)
Gets the Composed Data Names list property value. Composed Data Names list are all "icol" and "kcol" found in SGML files and they are inside a context (or their parents).

Parameters:
ctxName - String - initial context
Returns:
String[] - Composed Data Names list.

getComposedDataNamesOperation

public static java.lang.String[] getComposedDataNamesOperation(java.lang.String operName)
Gets the Composed Data Names list property value. Composed Data Names list are all "icol" and "kcol" found in SGML files and they are inside an operation context (or their parents).

Parameters:
operName - String - initial operation
Returns:
String[] - Composed Data Names list.

getComposedSubTags

public static Vector getComposedSubTags(Vector composedv,
                                        Tag tag)
Gets the Composed Data Names list property value inside tag.

Parameters:
composedv - com.ibm.dse.base.Vector to insert Composed Data Names.
tag - com.ibm.dse.base.Tag
Returns:
java.util.Vector - Target vector Data Names list.

getContextList

public static java.lang.String[] getContextList()
Gets the Context list property value. Context list are all operations name found in SGML files.

Returns:
String[] - Context list.

getDSEIniPath

public static java.lang.String getDSEIniPath()
Gets the dse.ini file path.

Returns:
java.lang.String dse.ini file path.

getElementsDataCollection

public static Vector getElementsDataCollection(Vector actualList,
                                               DataCollection keyed,
                                               java.lang.String initialPath)
Gets the Simple Data Names list property value inside a DataCollection.

Parameters:
actualList - com.ibm.dse.base.Vector to insert Simple Data Names
keyed - DataCollection
initialPath - String path to insert before Data Names list
Returns:
java.util.Vector - Target vector Data Names list.

getFormatList

public static java.lang.String[] getFormatList()
Gets the Format list property value. Format list are all Format name found in SGML files.

Returns:
String[] - Format list.

getIndexedColumnsFromContext

public static java.lang.String[] getIndexedColumnsFromContext(java.lang.String indexedName,
                                                              java.lang.String ctxName)
Gets the list of columns inside an IndexedCollection element in a Context for SpTable

Parameters:
indexedName - String - IndexedCollection name
ctxName - String - initial context
Returns:
com.ibm.dse.base.IndexedCollection - an IndexedCollection

getIndexedColumnsFromOperation

public static java.lang.String[] getIndexedColumnsFromOperation(java.lang.String indexedName,
                                                                java.lang.String operName)
Gets the list of columns inside an IndexedCollection element in a Operation for SpTable

Parameters:
indexedName - String - IndexedCollection name
operName - String - initial operation
Returns:
com.ibm.dse.base.IndexedCollection - an IndexedCollection

getIndexedDataCollection

public static Vector getIndexedDataCollection(Vector actualList,
                                              DataCollection keyed,
                                              java.lang.String initialPath)
Gets the IndexedCollection Data Names list property value inside a DataCollection.

Parameters:
actualList - com.ibm.dse.base.Vector to insert IndexedCollection Data Names
keyed - DataCollection
initialPath - String path to insert before Data Names list
Returns:
java.util.Vector - Target vector Data Names list.

getIndexedDataNames

public static java.lang.String[] getIndexedDataNames()
Gets the Indexed Data Names list property value. Indexed Data Names list are all "icol" found in SGML files.

Returns:
String[] - Indexed Data Names list.

getIndexedDataNamesContext

public static java.lang.String[] getIndexedDataNamesContext(java.lang.String ctxName)
Gets the Indexed Data Names list property value. Indexed Data Names list are all "icol" found in SGML files and they are inside a context (or their parents).

Parameters:
ctxName - String - initial context
Returns:
String[] - Indexed Data Names list.

getIndexedDataNamesOperation

public static java.lang.String[] getIndexedDataNamesOperation(java.lang.String operName)
Gets the Indexed Data Names list property value. Indexed Data Names list are all "icol" found in SGML files and they are inside an operation context (or their parents).

Parameters:
operName - String - initial operation
Returns:
String[] - Indexed Data Names list.

getIndexedFromContext

public static IndexedCollection getIndexedFromContext(java.lang.String indexedName,
                                                      java.lang.String ctxName)
Gets the IndexedCollection element in a Context

Parameters:
indexedName - String - IndexedCollection name
ctxName - String - initial context
Returns:
com.ibm.dse.base.IndexedCollection - an IndexedCollection

getIndexedFromOperation

public static IndexedCollection getIndexedFromOperation(java.lang.String indexedName,
                                                        java.lang.String operName)
Gets the IndexedCollection element in a Operation

Parameters:
indexedName - String - IndexedCollection name
operName - String - initial operation
Returns:
com.ibm.dse.base.IndexedCollection - an IndexedCollection

getIndexedSubTags

public static Vector getIndexedSubTags(Vector indexedv,
                                       Tag tag)
Gets the Indexed Data Names list property value inside tag.

Parameters:
indexedv - com.ibm.dse.base.Vector to insert Indexed Data Names.
tag - com.ibm.dse.base.Tag
Returns:
java.util.Vector - Target vector Data Names list.

getKeyedDataCollection

public static Vector getKeyedDataCollection(Vector actualList,
                                            DataCollection keyed,
                                            java.lang.String initialPath)
Gets the Yeyed Data Names list property value inside DataCollection element.

Parameters:
actualList - com.ibm.dse.base.Vector to insert Composed Data Names.
keyed - com.ibm.dse.base.DataCollection.
initialPath - String path to insert before Data Names list
Returns:
java.util.Vector - Target vector Data Names list.

getKeyedDataNamesContext

public static java.lang.String[] getKeyedDataNamesContext(java.lang.String ctxName)
Gets the Keyed Data Names list property value. Keyed Data Names list are all "kcol" found in SGML files and they are inside a context (or their parents).

Parameters:
ctxName - String - initial context
Returns:
String[] - Keyed Data Names list.

getKeyedDataNamesOperation

public static java.lang.String[] getKeyedDataNamesOperation(java.lang.String operName)
Gets the Keyed Data Names list property value. Keyed Data Names list are all "icol" found in SGML files and they are inside an operation context (or their parents).

Parameters:
operName - String - initial operation
Returns:
String[] - Keyed Data Names list.

getOperationList

public static java.lang.String[] getOperationList()
Gets the Operation list property value. Operation list are all operations name found in SGML files.

Returns:
String[] - Operation list.

getPropertyList

public static java.util.Hashtable getPropertyList()
Gets the all properties list.

Returns:
java.util.Hashtable

getSelfDefinedAttributes

public static java.lang.Object getSelfDefinedAttributes(java.lang.String operationName,
                                                        java.lang.String attribute)
Gets the Operation list property value. Operation list are all operations name found in SGML files.

Returns:
String[] - Operation list.

getSelfDefinedOperationList

public static java.util.Vector getSelfDefinedOperationList()
Gets the Operation list property value. Operation list are all operations name

Returns:
Vector - Operation list.

getSimpleDataNames

public static java.lang.String[] getSimpleDataNames()
Gets the Simple Data Names list property value. Simple Data Names are all data elements found in SGML files (not "icol" or "kcol").

Returns:
String[] - Simple Data Names list.

getSimpleDataNamesContext

public static java.lang.String[] getSimpleDataNamesContext(java.lang.String ctxName)
Gets the Simple Data Names list property value. Simple Data Names are all data elements found in SGML files (not "icol" or "kcol") and they are inside a context (or their parents).

Parameters:
ctxName - String - initial operation
Returns:
String[] - Simple Data Names list.

getSimpleDataNamesOperation

public static java.lang.String[] getSimpleDataNamesOperation(java.lang.String operName)
Gets the Simple Data Names list property value. Simple Data Names are all data elements found in SGML files (not "icol" or "kcol") and they are inside an operation context (or their parents).

Parameters:
operName - String - initial operation
Returns:
String[] - Simple Data Names list.

getSimpleSubTags

public static Vector getSimpleSubTags(Vector simplev,
                                      Tag tag)
Gets the Simple Data Names list property value inside tag.

Parameters:
simplev - com.ibm.dse.base.Vector to insert Simple Data Names
tag - com.ibm.dse.base.Tag
Returns:
java.util.Vector - Target vector Data Names list.

getValueAt

public static java.lang.Object getValueAt(java.lang.String propName)
Gets the property (its name is "propName") from the property list.

Parameters:
propName - java.lang.String
Returns:
java.lang.Object

initialize

public static void initialize()
Initializes values from settings.properties file


insertSortInVector

public static Vector insertSortInVector(Vector v,
                                        java.lang.String s)
Inserts String to Vector in proper order.

Parameters:
v - java.util.Vector, Source vector.
s - java.lang.String, String to insert.
Returns:
java.util.Vector - Target vector.

isBackTabKey

public static boolean isBackTabKey(java.awt.event.KeyEvent e)
Checks if the event passed as argument correspond to the back tab key event.

Parameters:
e - java.awt.event.KeyEvent, source event.
Returns:
boolean - true if Back Tab Key event.

isColorVBproperty

public static boolean isColorVBproperty(java.lang.String propertyName)
Checks if the parameter is the name of a property of the Framework and their type is color.

Parameters:
propertyName - String, the name of the property.
Returns:
boolean - true if the parameter is the name of a property of the Framework and their type is color.

isFontVBproperty

public static boolean isFontVBproperty(java.lang.String propertyName)
Checks if the parameter is the name of a property of the Framework and their type is Font.

Parameters:
propertyName - String, the name of the property.
Returns:
boolean - true if the parameter is the name of a property of the Framework and their type is Font.

isHelpKey

public static boolean isHelpKey(java.awt.event.KeyEvent e)
Checks if the event passed as argument correspond to the help key event.

Parameters:
e - java.awt.event.KeyEvent, source event.
Returns:
boolean - true if Help Key event.

isKeyVBproperty

public static boolean isKeyVBproperty(java.lang.String propertyName)
Checks if the parameter is the name of a property of the Framework and their type is a key.

Parameters:
propertyName - String, the name of the property.
Returns:
boolean - true if the parameter is the name of a property of the Framework and their type is a key.

isMaskVBproperty

public static boolean isMaskVBproperty(java.lang.String propertyName)
Checks if the parameter is the name of a property of the Framework and their type is a Mask.

Parameters:
propertyName - String, the name of the property.
Returns:
boolean - true if the parameter is the name of a property of the Framework and their type is a Mask.

isOkKey

public static boolean isOkKey(java.awt.event.KeyEvent e)
Checks if the event passed as argument correspond to the ok key event.

Parameters:
e - java.awt.event.KeyEvent, source event.
Returns:
boolean - true if Ok Key event.

isSpecialKey

public static boolean isSpecialKey(java.awt.event.KeyEvent e)
Checks if the event passed as argument correspond to an special key event.

Parameters:
e - java.awt.event.KeyEvent, source event.
Returns:
boolean - true if Back Tab Key event or Help Key event or Ok key event or Back Tab Key event.

isTabKey

public static boolean isTabKey(java.awt.event.KeyEvent e)
Checks if the event passed as argument correspond to the tab key event.

Parameters:
e - java.awt.event.KeyEvent, source event.
Returns:
boolean - true if Tab event.

reset

public static void reset()
Resets all values.


setColorValues

public static void setColorValues(java.lang.String propetyName,
                                  java.lang.String propetryValue)
sets the default color values in the property list.


setDSEIniPath

public static void setDSEIniPath(java.lang.String Path)
Sets dse.ini file path property (String) value.

Parameters:
Path - String, dse.ini file path.
See Also:
getDSEIniPath()

setKeyValues

public static void setKeyValues(java.lang.String propetyName,
                                java.lang.String propetryValue)
sets the default key values in the property list.


setMaskValues

public static void setMaskValues(java.lang.String propetyName,
                                 java.lang.String propetryValue)
sets the default mask values in the property list.


setPropertyList

public static void setPropertyList(java.util.Hashtable pl)
Sets the all properties list.

Returns:
java.util.Hashtable

setValueAt

public static void setValueAt(java.lang.String propName,
                              java.lang.Object value)
Sets the property (its name is "propName") to the property list.

Parameters:
propName - java.lang.String

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005