jaxx.demo
Class DemoConfig

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig
      extended by jaxx.demo.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:
chemit

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, getOptionStartsWith, getParams, getPropertyChangeListeners, getPropertyChangeListeners, getUnparsed, getUserHome, getUsername, hasListeners, isUseOnlyAliases, parse, printConfig, removePropertyChangeListener, removePropertyChangeListener, save, saveForSystem, saveForUser, setConfigFileName, setDefaultOption, 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

PROPERTY_ADJUSTING

public static final String PROPERTY_ADJUSTING
See Also:
Constant Field Values

adjusting

protected boolean adjusting
un drapeau pour bloquer la sauvegarde lors de la modification en masse des options via les setter.


saveAction

protected final PropertyChangeListener saveAction

DEFAULT_JAXX_PCS

public static final String[] DEFAULT_JAXX_PCS
Constructor Detail

DemoConfig

public DemoConfig()
Method Detail

getCopyrightText

public String getCopyrightText()

setOption

public void setOption(String key,
                      String value)
Overrides:
setOption in class org.nuiton.util.ApplicationConfig

getVersion

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

isFullScreen

public boolean isFullScreen()

getLocale

public Locale getLocale()

getDemoPath

public String getDemoPath()

getFontSize

public Float getFontSize()

setFullscreen

public void setFullscreen(boolean fullscreen)

setLocale

public void setLocale(Locale newLocale)

setFontSize

public void setFontSize(Float newFontSize)

isAdjusting

public boolean isAdjusting()

setAdjusting

public void setAdjusting(boolean adjusting)

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-2010 CodeLutin. All Rights Reserved.