jaxx.demo.validation
Class DemoConfig

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig
      extended by jaxx.demo.validation.DemoConfig

public class DemoConfig
extends org.nuiton.util.ApplicationConfig

La configuration de l'application.

Il s'agit de l'objet partagé par toutes les démos.

Since:
1.7.2
Author:
tchemit

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.ActionDef, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef, org.nuiton.util.ApplicationConfig.OptionList
 
Field Summary
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_FONT_SIZE
           
static String PROPERTY_FULLSCREEN
           
static String PROPERTY_LOCALE
           
 
Fields inherited from class org.nuiton.util.ApplicationConfig
actions, ADJUSTING_PROPERTY, aliases, APP_NAME, cacheAction, cacheOption, classpath, CONFIG_FILE_NAME, CONFIG_PATH, curfile, defaults, env, etcfile, homefile, inParseOptionPhase, jvm, line, LIST_SEPARATOR, options, osName, pcs, unparsed, useOnlyAliases, userPath
 
Constructor Summary
DemoConfig()
           
 
Method Summary
 String getCopyrightText()
           
 Float getFontSize()
           
 Locale getLocale()
           
 org.nuiton.util.Version getVersion()
           
 boolean isFullScreen()
           
 void removeJaxxPropertyChangeListener()
           
 void saveForUser()
          Save configuration, in user home directory using the ApplicationConfig.getConfigFileName().
 void setFontSize(Float newFontSize)
           
 void setFullscreen(boolean fullscreen)
           
 void setLocale(Locale newLocale)
           
 
Methods inherited from class org.nuiton.util.ApplicationConfig
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, convertOption, createAction, doAction, firePropertyChange, getConfigFileName, getConfigFileNameOption, getConfigPath, getFlatOptions, getFlatOptions, getMethods, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsInt, getOptionAsList, getOptionAsLocale, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptionAsVersion, getOptions, getOptionStartsWith, getParams, getPrintableConfig, getPropertyChangeListeners, getPropertyChangeListeners, getSystemConfigFile, getSystemConfigurationPath, getUnparsed, getUserConfigDirectory, getUserConfigFile, getUserHome, getUsername, hasListeners, installSaveUserAction, isAdjusting, isUseOnlyAliases, loadActions, loadDefaultOptions, migrateUserConfigurationFile, parse, printConfig, printConfig, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, save, saveForSystem, saveForUser, setAdjusting, setAppName, setConfigFileName, setDefaultOption, setOption, setOptions, setUseOnlyAliases
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_PROPERTIES

public static final String APPLICATION_PROPERTIES
le fichier de configuration de l'application avec les informations sur le projet (version, license,...) et la configuration des ui (icons, ...)

See Also:
Constant Field Values

PROPERTY_FULLSCREEN

public static final String PROPERTY_FULLSCREEN
See Also:
Constant Field Values

PROPERTY_LOCALE

public static final String PROPERTY_LOCALE
See Also:
Constant Field Values

PROPERTY_FONT_SIZE

public static final String PROPERTY_FONT_SIZE
See Also:
Constant Field Values

DEFAULT_JAXX_PCS

public static final String[] DEFAULT_JAXX_PCS
Constructor Detail

DemoConfig

public DemoConfig()
Method Detail

getCopyrightText

public String getCopyrightText()

getVersion

public org.nuiton.util.Version getVersion()
Returns:
la version de l'application.

isFullScreen

public boolean isFullScreen()

getLocale

public Locale getLocale()

getFontSize

public Float getFontSize()

setFullscreen

public void setFullscreen(boolean fullscreen)

setLocale

public void setLocale(Locale newLocale)

setFontSize

public void setFontSize(Float newFontSize)

saveForUser

public void saveForUser()
Save configuration, in user home directory using the ApplicationConfig.getConfigFileName(). Default, env and commande line note saved


removeJaxxPropertyChangeListener

public void removeJaxxPropertyChangeListener()


Copyright © 2008-2011 CodeLutin. All Rights Reserved.