public class LimaConfig
extends org.nuiton.util.ApplicationConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
LimaConfig.Action
Lima action definition.
|
static class |
LimaConfig.Option
Lima option definition.
|
org.nuiton.util.ApplicationConfig.ActionDef, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef, org.nuiton.util.ApplicationConfig.OptionList, org.nuiton.util.ApplicationConfig.SubApplicationConfig| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_JAXX_PCS
Used in ????
|
protected static LimaConfig |
instance |
protected OptionsService |
optionsService |
protected org.nuiton.util.Version |
version
La version du logiciel.
|
actions, ADJUSTING_PROPERTY, aliases, APP_NAME, cacheAction, cacheOption, classpath, CONFIG_ENCODING, CONFIG_FILE_NAME, CONFIG_PATH, context, curfile, defaults, env, etcfile, homefile, inParseOptionPhase, jvm, line, LIST_SEPARATOR, options, osName, pcs, unparsed, useOnlyAliases, userPath| Constructor and Description |
|---|
LimaConfig()
Lima config constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColorSelectionFocus() |
String |
getComportmentEditingCell() |
String |
getCopyrightText()
Get copyright text (include version).
|
boolean |
getCurrency()
currency configuration boolean
|
File |
getDataDirectory() |
char |
getDecimalSeparator()
Get application decimal separator
|
String |
getHostAdress() |
File |
getI18nDirectory() |
static LimaConfig |
getInstance() |
File |
getLimaStateFile() |
Locale |
getLocale()
Get application locale.
|
File |
getResourcesDirectory() |
int |
getScale()
Get application scale
|
String |
getSupportEmail()
Get support email address.
|
char |
getThousandSeparator()
Get application thousand separator
|
String |
getVersion()
Version as string.
|
boolean |
isEJBRemoteMode()
Return true if ejb mode is configured as remote.
|
boolean |
isFullScreen() |
boolean |
isLaunchui()
Launch ui configuration value.
|
protected void |
loadConfiguration(String configFileName) |
org.nuiton.util.ApplicationConfig |
parse(String... args) |
void |
removeJaxxPropertyChangeListener()
Used in ????
|
void |
save(File file,
boolean forceAll,
String... excludeKeys)
Override save action to propagate some option to server.
|
void |
setColorSelectionFocus(String color) |
void |
setComportmentEditingCell(String comportmentEditingCell) |
void |
setCurrency(String currency)
Change the currency displaying
|
void |
setDecimalSeparator(String decimalSeparator)
Change decimal separator
Save user file.
|
void |
setFullscreen(boolean fullscreen)
Change full screen mode.
|
void |
setLaunchui(String launchui)
Launch ui setter for command line parameters.
|
void |
setLocale(Locale newLocale)
Change locale (not command line version).
|
void |
setLocale(String locale)
Locale setter for command line parameters.
|
void |
setScale(String scale)
Change scale
Save user file.
|
void |
setThousandSeparator(String thousandSeparator)
Change the thousand separator
Save user file.
|
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, cleanUserConfig, convertOption, createAction, doAction, doAllAction, firePropertyChange, getActionStep, getConfigFileName, getConfigFileNameOption, getConfigPath, getEncoding, getEncodingOption, getFlatOptions, getFlatOptions, getMethods, getObject, getObject, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsColor, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsFloat, getOptionAsInt, getOptionAsKeyStroke, getOptionAsList, getOptionAsLocale, getOptionAsLong, getOptionAsObject, getOptionAsObject, getOptionAsProperties, getOptionAsSingleton, getOptionAsSingleton, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptionAsVersion, getOptions, getOptionStartsWith, getOsArch, getOsName, getParams, getPrintableConfig, getPropertyChangeListeners, getPropertyChangeListeners, getSubConfig, getSystemConfigFile, getSystemConfigurationPath, getUnparsed, getUserConfigDirectory, getUserConfigFile, getUserHome, getUsername, hasListeners, hasOption, hasOption, init, installSaveUserAction, isAdjusting, isUseOnlyAliases, loadActions, loadActions, loadDefaultOptions, loadDefaultOptions, loadResource, migrateUserConfigurationFile, printConfig, printConfig, putObject, putObject, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, saveForSystem, saveForUser, saveResource, setAdjusting, setAppName, setConfigFileName, setDefaultOption, setEncoding, setOption, setOptions, setUseOnlyAliasesprotected static LimaConfig instance
protected OptionsService optionsService
protected org.nuiton.util.Version version
public static final String[] DEFAULT_JAXX_PCS
public LimaConfig()
public String getCopyrightText()
public String getVersion()
public static LimaConfig getInstance()
protected void loadConfiguration(String configFileName)
public org.nuiton.util.ApplicationConfig parse(String... args) throws org.nuiton.util.ArgumentsParserException
parse in class org.nuiton.util.ApplicationConfigorg.nuiton.util.ArgumentsParserExceptionpublic Locale getLocale()
public void setLocale(String locale)
locale - new localepublic void setLocale(Locale newLocale)
newLocale - new localepublic char getDecimalSeparator()
public void setDecimalSeparator(String decimalSeparator)
decimalSeparator - new DecimalSeparatorpublic int getScale()
public void setScale(String scale)
scale - new Scalepublic char getThousandSeparator()
public void setThousandSeparator(String thousandSeparator)
thousandSeparator - new thousandSeparatorpublic boolean getCurrency()
true if the currency must be displayedpublic void setCurrency(String currency)
currency - the new currency to set in configurationpublic boolean isLaunchui()
true if ui must be displayedpublic void setLaunchui(String launchui)
launchui - new lauch ui valuepublic void setFullscreen(boolean fullscreen)
fullscreen - new fullscreen modepublic boolean isFullScreen()
public String getSupportEmail()
public boolean isEJBRemoteMode()
true if remote mode should be usedpublic File getDataDirectory()
public File getLimaStateFile()
public File getResourcesDirectory()
public File getI18nDirectory()
public String getHostAdress()
public void setColorSelectionFocus(String color)
public Color getColorSelectionFocus()
public void setComportmentEditingCell(String comportmentEditingCell)
public String getComportmentEditingCell()
public void removeJaxxPropertyChangeListener()
public void save(File file, boolean forceAll, String... excludeKeys) throws IOException
save in class org.nuiton.util.ApplicationConfigIOExceptionCopyright © 2008–2013 CodeLutin. All rights reserved.