public class IniFileLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOGFILE
Public in order to configure LogAppenderProxy, but then the value
might as well be configured in the log4j.properties file
|
Constructor and Description |
---|
IniFileLoader(File userConfigFile)
Load given file
|
Modifier and Type | Method and Description |
---|---|
void |
flushPreferences()
Flush preferences to disk
|
String |
getAppTitle() |
boolean |
getCustomImageNaming() |
int |
getDebugLevel()
Returns the level of debugging which should be set on
ImportConfig
Any value lower than null will not call configureDebug. |
boolean |
getForceFileArchiveOn() |
String |
getForumUrl() |
String |
getHomeUrl() |
String |
getLogFile() |
int |
getNumOfDirectories() |
String |
getServerPort() |
boolean |
getStaticDisableHistory() |
Rectangle |
getUIBounds() |
boolean |
getUseQuaqua() |
Boolean |
getUserDisableHistory() |
boolean |
getUserFullPath() |
String |
getUserSettingsDirectory() |
String |
getVersionNote() |
String |
getVersionNumber() |
Boolean |
isDebugConsole() |
Boolean |
isDebugUI() |
protected void |
mapFlexServer(String key,
String mapValue)
Append keep to server map
|
Map<String,List<String>> |
parseFlexMaps(Preferences maps)
Parse Flex reader server maps
|
void |
setCustomImageNaming(boolean b) |
void |
setDebugLevel(int level)
Set debug level for application
|
void |
setNumOfDirectories(int i) |
void |
setUIBounds(Rectangle bounds)
Set ui bounds for application
|
void |
setUseQuaqua(boolean b) |
void |
setUserDisableHistory(boolean b)
Set if history should be disabled.
|
void |
setUserFullPath(boolean b) |
void |
updateFlexReaderServerMaps()
Updates the Flex reader server maps from the configuration file.
|
public static final String LOGFILE
public IniFileLoader(File userConfigFile)
userConfigFile
- the file to loadpublic void flushPreferences()
public int getDebugLevel()
ImportConfig
Any value lower than null will not call configureDebug.public boolean getUseQuaqua()
public String getLogFile()
public String getHomeUrl()
public String getForumUrl()
public String getAppTitle()
public boolean getForceFileArchiveOn()
public boolean getStaticDisableHistory()
public void setUserDisableHistory(boolean b)
b
- if history should be disabledpublic Boolean getUserDisableHistory()
public void setDebugLevel(int level)
level
- a debug levelpublic void setUseQuaqua(boolean b)
b
- - set to use quaqua yes/nopublic String getVersionNote()
public String getVersionNumber()
public Boolean isDebugConsole()
public String getServerPort()
public void updateFlexReaderServerMaps()
public Map<String,List<String>> parseFlexMaps(Preferences maps)
maps
- the Flex reader server mapsprotected void mapFlexServer(String key, String mapValue)
key
- mapValue
- public Boolean isDebugUI()
public Rectangle getUIBounds()
public void setUIBounds(Rectangle bounds)
bounds
- the boundspublic boolean getUserFullPath()
public void setUserFullPath(boolean b)
public boolean getCustomImageNaming()
public void setCustomImageNaming(boolean b)
public int getNumOfDirectories()
public void setNumOfDirectories(int i)
public String getUserSettingsDirectory()
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.