|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.ApplicationConfig
jaxx.demo.DemoConfig
public class DemoConfig
La configuration de l'application.
Il s'agit de l'objet partagé par toutes les démos.
| Nested Class Summary | |
|---|---|
static class |
DemoConfig.Option
|
| Nested classes/interfaces inherited from class org.nuiton.util.ApplicationConfig |
|---|
org.nuiton.util.ApplicationConfig.Action, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef |
| Field Summary | |
|---|---|
protected boolean |
adjusting
un drapeau pour bloquer la sauvegarde lors de la modification en masse des options via les setter. |
static String |
APPLICATION_PROPERTIES
le fichier de configuration de l'application avec les informations sur le projet (version, license,...) et la configuration des ui (icons, ...) |
static String[] |
DEFAULT_JAXX_PCS
|
static String |
PROPERTY_ADJUSTING
|
static String |
PROPERTY_FONT_SIZE
|
static String |
PROPERTY_FULLSCREEN
|
static String |
PROPERTY_LOCALE
|
protected PropertyChangeListener |
saveAction
|
| Fields inherited from class org.nuiton.util.ApplicationConfig |
|---|
actions, aliases, cacheAction, cacheOption, classpath, CONFIG_FILE_NAME, curfile, defaults, env, etcfile, homefile, inParseOptionPhase, jvm, line, options, pcs, unparsed, useOnlyAliases |
| Constructor Summary | |
|---|---|
DemoConfig()
|
|
| Method Summary | |
|---|---|
String |
getCopyrightText()
|
String |
getDemoPath()
|
Float |
getFontSize()
|
Locale |
getLocale()
|
org.nuiton.util.Version |
getVersion()
|
boolean |
isAdjusting()
|
boolean |
isFullScreen()
|
void |
removeJaxxPropertyChangeListener()
|
void |
saveForUser()
Save configuration, in user home directory using the ApplicationConfig.getConfigFileName(). |
void |
setAdjusting(boolean adjusting)
|
void |
setFontSize(Float newFontSize)
|
void |
setFullscreen(boolean fullscreen)
|
void |
setLocale(Locale newLocale)
|
void |
setOption(String key,
String value)
|
| Methods inherited from class org.nuiton.util.ApplicationConfig |
|---|
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, createAction, doAction, firePropertyChange, getConfigFileName, getMethods, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsInt, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptions, getOptionStartsWith, getParams, getPropertyChangeListeners, getPropertyChangeListeners, getUnparsed, getUserHome, getUsername, hasListeners, isUseOnlyAliases, parse, printConfig, printConfig, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, save, saveForSystem, saveForUser, setConfigFileName, setDefaultOption, setOptions, setUseOnlyAliases |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APPLICATION_PROPERTIES
public static final String PROPERTY_FULLSCREEN
public static final String PROPERTY_LOCALE
public static final String PROPERTY_FONT_SIZE
public static final String PROPERTY_ADJUSTING
protected boolean adjusting
protected final PropertyChangeListener saveAction
public static final String[] DEFAULT_JAXX_PCS
| Constructor Detail |
|---|
public DemoConfig()
| Method Detail |
|---|
public String getCopyrightText()
public void setOption(String key,
String value)
setOption in class org.nuiton.util.ApplicationConfigpublic org.nuiton.util.Version getVersion()
public boolean isFullScreen()
public Locale getLocale()
public String getDemoPath()
public Float getFontSize()
public void setFullscreen(boolean fullscreen)
public void setLocale(Locale newLocale)
public void setFontSize(Float newFontSize)
public boolean isAdjusting()
public void setAdjusting(boolean adjusting)
public void saveForUser()
ApplicationConfig.getConfigFileName(). Default, env and commande line note saved
public void removeJaxxPropertyChangeListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||