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 debug level for application
|
void |
setUserFullPath(boolean b) |
void |
updateFlexReaderServerMaps()
Updates the Flex reader server maps from the configuration file.
|
public static final String LOGFILE
ticket:1479
public IniFileLoader(File userConfigFile)
userConfigFile
- public 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)
level
- public Boolean getUserDisableHistory()
public void setDebugLevel(int level)
level
- public 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
- protected void mapFlexServer(String key, String mapValue)
key
- mapValue
- public Boolean isDebugUI()
public Rectangle getUIBounds()
public void setUIBounds(Rectangle bounds)
bounds
- public 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.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.