Package jaxx.demo
Class DemoConfig
java.lang.Object
org.jdesktop.beans.AbstractBean
jaxx.demo.DemoConfig
- All Implemented Interfaces:
com.google.common.base.Supplier<org.nuiton.config.ApplicationConfig>,Supplier<org.nuiton.config.ApplicationConfig>
public class DemoConfig
extends org.jdesktop.beans.AbstractBean
implements com.google.common.base.Supplier<org.nuiton.config.ApplicationConfig>
La configuration de l'application.
Il s'agit de l'objet partagé par toutes les démos.
- Since:
- 1.7.2
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDemoConfig.Option -
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_PROPERTIESle fichier de configuration de l'application avec les informations sur le projet (version, license,...) et la configuration des ui (icons, ...)static String[]DEFAULT_JAXX_PCSstatic StringPROPERTY_DEMO_CLASSstatic StringPROPERTY_DEMO_COLORstatic StringPROPERTY_FONT_SIZEstatic StringPROPERTY_FULLSCREENstatic StringPROPERTY_KEY_OPEN_CONFIGstatic StringPROPERTY_LOCALEstatic StringPROPERTY_LOG_LEVELstatic StringPROPERTY_LOG_PATTERN_LAYOUT -
Constructor Summary
Constructors Constructor Description DemoConfig(String... args) -
Method Summary
Modifier and Type Method Description org.nuiton.config.ApplicationConfigget()URLgetApplicationSiteUrl()StringgetCopyrightText()Class<?>getDemoClass()ColorgetDemoColor()StringgetDemoPath()FloatgetFontSize()StringgetHelpLocation()StringgetHelpResourceWithLocale(String value)StringgetIconPath()KeyStrokegetKeyOpenConfig()LocalegetLocale()StringgetLogLevel()StringgetLogPatternLayout()org.nuiton.version.VersiongetVersion()protected voidinstallSaveUserAction(String... properties)TODO Remove this when the method in ApplicationConfig will be public Install thesaveUserActionon givneproperties.booleanisFullScreen()voidremoveJaxxPropertyChangeListener()voidsaveForUser()voidsetDemoClass(Class<?> newClass)voidsetDemoColor(Color color)voidsetFontSize(Float newFontSize)voidsetFullscreen(boolean fullscreen)voidsetKeyOpenConfig(KeyStroke keyStroke)voidsetLocale(Locale newLocale)voidsetLogLevel(String logLevel)voidsetLogPatternLayout(String logPatternLayout)Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Field Details
-
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
- See Also:
- Constant Field Values
-
PROPERTY_LOCALE
- See Also:
- Constant Field Values
-
PROPERTY_FONT_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_DEMO_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_DEMO_CLASS
- See Also:
- Constant Field Values
-
PROPERTY_LOG_LEVEL
- See Also:
- Constant Field Values
-
PROPERTY_LOG_PATTERN_LAYOUT
- See Also:
- Constant Field Values
-
PROPERTY_KEY_OPEN_CONFIG
- See Also:
- Constant Field Values
-
DEFAULT_JAXX_PCS
-
-
Constructor Details
-
Method Details
-
get
public org.nuiton.config.ApplicationConfig get() -
installSaveUserAction
TODO Remove this when the method in ApplicationConfig will be public Install thesaveUserActionon givneproperties.- Parameters:
properties- properties on which insalls the saveUserAction
-
getCopyrightText
-
getVersion
public org.nuiton.version.Version getVersion()- Returns:
- la version de l'application.
-
isFullScreen
public boolean isFullScreen() -
getLocale
-
getDemoPath
-
getFontSize
-
getDemoColor
-
getDemoClass
-
getLogLevel
-
getLogPatternLayout
-
getKeyOpenConfig
-
setFullscreen
public void setFullscreen(boolean fullscreen) -
setLocale
-
setFontSize
-
setDemoColor
-
setDemoClass
-
setLogLevel
-
setLogPatternLayout
-
setKeyOpenConfig
-
saveForUser
public void saveForUser() -
removeJaxxPropertyChangeListener
public void removeJaxxPropertyChangeListener() -
getApplicationSiteUrl
-
getIconPath
-
getHelpLocation
-
getHelpResourceWithLocale
-