|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.fopps.share.Config
Config holds application settings and stores them in a property file
| Field Summary | |
static java.lang.String |
CONFIRM_RELATIONS_KEY
Property key to get 'confirm relations' flag |
static java.lang.String |
SEARCH_PATH_KEY
Property key to get the value of 'search path' |
static java.lang.String |
SHOW_DATE_MARKER_KEY
Property key to get 'show current date' flag |
static java.lang.String |
SHOW_GRID_KEY
Property key to get 'show grid' flag |
static java.lang.String |
SHOW_ONLY_CRITICAL_PATHS
Property key to get 'show critical paths' flag |
static java.lang.String |
USE_GRADIENT_KEY
Property key to get 'use gradients' flag |
| Constructor Summary | |
Config()
|
|
| Method Summary | |
static void |
addConfigListener(ConfigListener pListener)
Adds a config listener |
static void |
addToSearchPath(java.lang.String pPath)
Adds a path to the search path. |
static boolean |
containsPath(java.lang.String pPath)
Checks if search path contains a given path |
static java.lang.String |
getSearchPath()
Returns the search path used by file attachments |
static boolean |
isConfirmRelations()
If true, all relation between projects have to be confirmed |
static boolean |
isShowDateMarker()
If true, the actual date is shown as red line in the project diagram. |
static boolean |
isShowGrid()
If true, a grid is shown in the project diagram |
static boolean |
isShowOnlyCriticalPaths()
If true, only critical paths are shown in project panel |
static boolean |
isUseGradient()
If true, the project diagram uses a gradient to display projects. |
static void |
notifyListeners(java.lang.String pKey,
java.lang.Object pValue)
Notify all config listeners |
static void |
removeAllConfigListener()
Removes all config listeners |
static void |
removeConfigListener(ConfigListener pListener)
Removes a config listener |
static void |
setConfirmRelations(boolean pConfirmRelations)
|
static void |
setSearchPath(java.lang.String pSearchPath)
Sets the search path. |
static void |
setShowDateMarker(boolean showDateMarker)
|
static void |
setShowGrid(boolean showGrid)
|
static void |
setShowOnlyCriticalPaths(boolean showOnlyCriticalPaths)
|
static void |
setUseGradient(boolean useGradient)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONFIRM_RELATIONS_KEY
public static final java.lang.String SHOW_DATE_MARKER_KEY
public static final java.lang.String SHOW_GRID_KEY
public static final java.lang.String SHOW_ONLY_CRITICAL_PATHS
public static final java.lang.String USE_GRADIENT_KEY
public static final java.lang.String SEARCH_PATH_KEY
| Constructor Detail |
public Config()
| Method Detail |
public static void addConfigListener(ConfigListener pListener)
pListener - Listener to addpublic static void removeConfigListener(ConfigListener pListener)
pListener - Listener to removepublic static void removeAllConfigListener()
public static void notifyListeners(java.lang.String pKey,
java.lang.Object pValue)
public static boolean isConfirmRelations()
public static void setConfirmRelations(boolean pConfirmRelations)
public static boolean isShowDateMarker()
public static void setShowDateMarker(boolean showDateMarker)
public static boolean isShowGrid()
public static void setShowGrid(boolean showGrid)
public static boolean isShowOnlyCriticalPaths()
public static void setShowOnlyCriticalPaths(boolean showOnlyCriticalPaths)
public static boolean isUseGradient()
public static void setUseGradient(boolean useGradient)
public static java.lang.String getSearchPath()
public static void addToSearchPath(java.lang.String pPath)
public static boolean containsPath(java.lang.String pPath)
public static void setSearchPath(java.lang.String pSearchPath)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||