org.fopps.share
Class Config

java.lang.Object
  |
  +--org.fopps.share.Config

public class Config
extends java.lang.Object

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

CONFIRM_RELATIONS_KEY

public static final java.lang.String CONFIRM_RELATIONS_KEY
Property key to get 'confirm relations' flag

See Also:
Constant Field Values

SHOW_DATE_MARKER_KEY

public static final java.lang.String SHOW_DATE_MARKER_KEY
Property key to get 'show current date' flag

See Also:
Constant Field Values

SHOW_GRID_KEY

public static final java.lang.String SHOW_GRID_KEY
Property key to get 'show grid' flag

See Also:
Constant Field Values

SHOW_ONLY_CRITICAL_PATHS

public static final java.lang.String SHOW_ONLY_CRITICAL_PATHS
Property key to get 'show critical paths' flag

See Also:
Constant Field Values

USE_GRADIENT_KEY

public static final java.lang.String USE_GRADIENT_KEY
Property key to get 'use gradients' flag

See Also:
Constant Field Values

SEARCH_PATH_KEY

public static final java.lang.String SEARCH_PATH_KEY
Property key to get the value of 'search path'

See Also:
Constant Field Values
Constructor Detail

Config

public Config()
Method Detail

addConfigListener

public static void addConfigListener(ConfigListener pListener)
Adds a config listener

Parameters:
pListener - Listener to add

removeConfigListener

public static void removeConfigListener(ConfigListener pListener)
Removes a config listener

Parameters:
pListener - Listener to remove

removeAllConfigListener

public static void removeAllConfigListener()
Removes all config listeners


notifyListeners

public static void notifyListeners(java.lang.String pKey,
                                   java.lang.Object pValue)
Notify all config listeners


isConfirmRelations

public static boolean isConfirmRelations()
If true, all relation between projects have to be confirmed


setConfirmRelations

public static void setConfirmRelations(boolean pConfirmRelations)

isShowDateMarker

public static boolean isShowDateMarker()
If true, the actual date is shown as red line in the project diagram.


setShowDateMarker

public static void setShowDateMarker(boolean showDateMarker)

isShowGrid

public static boolean isShowGrid()
If true, a grid is shown in the project diagram


setShowGrid

public static void setShowGrid(boolean showGrid)

isShowOnlyCriticalPaths

public static boolean isShowOnlyCriticalPaths()
If true, only critical paths are shown in project panel


setShowOnlyCriticalPaths

public static void setShowOnlyCriticalPaths(boolean showOnlyCriticalPaths)

isUseGradient

public static boolean isUseGradient()
If true, the project diagram uses a gradient to display projects. Otherwise it will be a solid fill


setUseGradient

public static void setUseGradient(boolean useGradient)

getSearchPath

public static java.lang.String getSearchPath()
Returns the search path used by file attachments


addToSearchPath

public static void addToSearchPath(java.lang.String pPath)
Adds a path to the search path. If the path is empty, null or already in the path, the method does nothing.


containsPath

public static boolean containsPath(java.lang.String pPath)
Checks if search path contains a given path


setSearchPath

public static void setSearchPath(java.lang.String pSearchPath)
Sets the search path.



Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.