public class LimaSwingConfig extends org.nuiton.config.ApplicationConfig implements BigDecimalToString.Config
| Modifier and Type | Class and Description |
|---|---|
static class |
LimaSwingConfig.Action
Lima action definition.
|
static class |
LimaSwingConfig.Option
Lima option definition.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
DEFAULT_JAXX_PCS
Used in ????
|
static Set<Integer> |
NUMBER_DECIMALS |
static Set<Character> |
NUMBER_SEPARATOR |
protected OptionsService |
optionsService |
protected org.nuiton.util.version.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| Constructor and Description |
|---|
LimaSwingConfig()
Lima config constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColorSelectionFocus() |
String |
getCopyrightText()
Get copyright text (include version).
|
boolean |
getCurrency()
currency configuration boolean
|
File |
getDataDirectory() |
char |
getDecimalSeparator()
Get application decimal separator
|
File |
getI18nDirectory() |
static LimaSwingConfig |
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 |
isLaunchui()
Launch ui configuration value.
|
boolean |
isSelectAllEditingCell() |
protected void |
loadConfiguration(String configFileName) |
org.nuiton.config.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 |
setCurrency(boolean currency)
Change the currency displaying
|
void |
setDecimalSeparator(String decimalSeparator)
Change decimal separator
Save user file.
|
void |
setEJBRemoteMode(boolean isRemotable) |
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 |
setSelectAllEditingCell(boolean selectAllEditingCell) |
void |
setThousandSeparator(String thousandSeparator)
Change the thousand separator
Save user file.
|
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, cleanUserConfig, convertOption, createAction, doAction, doAllAction, firePropertyChange, getActionStep, getConfig, 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 OptionsService optionsService
protected org.nuiton.util.version.Version version
protected static final String[] DEFAULT_JAXX_PCS
public LimaSwingConfig()
public String getCopyrightText()
public String getVersion()
public static LimaSwingConfig getInstance()
protected void loadConfiguration(String configFileName)
public org.nuiton.config.ApplicationConfig parse(String... args) throws org.nuiton.config.ArgumentsParserException
parse in class org.nuiton.config.ApplicationConfigorg.nuiton.config.ArgumentsParserExceptionpublic Locale getLocale()
public void setLocale(String locale)
locale - new localepublic void setLocale(Locale newLocale)
newLocale - new localepublic char getDecimalSeparator()
getDecimalSeparator in interface BigDecimalToString.Configpublic void setDecimalSeparator(String decimalSeparator)
decimalSeparator - new DecimalSeparatorpublic int getScale()
getScale in interface BigDecimalToString.Configpublic void setScale(String scale)
scale - new Scalepublic char getThousandSeparator()
getThousandSeparator in interface BigDecimalToString.Configpublic void setThousandSeparator(String thousandSeparator)
thousandSeparator - new thousandSeparatorpublic boolean getCurrency()
getCurrency in interface BigDecimalToString.Configtrue if the currency must be displayedpublic void setCurrency(boolean 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 String getSupportEmail()
public boolean isEJBRemoteMode()
true if remote mode should be usedpublic void setEJBRemoteMode(boolean isRemotable)
public File getDataDirectory()
public File getLimaStateFile()
public File getResourcesDirectory()
public File getI18nDirectory()
public void setColorSelectionFocus(String color)
public Color getColorSelectionFocus()
public void setSelectAllEditingCell(boolean selectAllEditingCell)
public boolean isSelectAllEditingCell()
public void removeJaxxPropertyChangeListener()
public void save(File file, boolean forceAll, String... excludeKeys) throws IOException
save in class org.nuiton.config.ApplicationConfigIOExceptionCopyright © 2008–2015 CodeLutin. All rights reserved.