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>,java.util.function.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 java.lang.StringAPPLICATION_PROPERTIESle fichier de configuration de l'application avec les informations sur le projet (version, license,...) et la configuration des ui (icons, ...)static java.lang.String[]DEFAULT_JAXX_PCSstatic java.lang.StringPROPERTY_DEMO_CLASSstatic java.lang.StringPROPERTY_DEMO_COLORstatic java.lang.StringPROPERTY_FONT_SIZEstatic java.lang.StringPROPERTY_FULLSCREENstatic java.lang.StringPROPERTY_KEY_OPEN_CONFIGstatic java.lang.StringPROPERTY_LOCALEstatic java.lang.StringPROPERTY_LOG_LEVELstatic java.lang.StringPROPERTY_LOG_PATTERN_LAYOUT -
Constructor Summary
Constructors Constructor Description DemoConfig(java.lang.String... args) -
Method Summary
Modifier and Type Method Description org.nuiton.config.ApplicationConfigget()java.net.URLgetApplicationSiteUrl()java.lang.StringgetCopyrightText()java.lang.Class<?>getDemoClass()java.awt.ColorgetDemoColor()java.lang.StringgetDemoPath()java.lang.FloatgetFontSize()java.lang.StringgetHelpLocation()java.lang.StringgetHelpResourceWithLocale(java.lang.String value)java.lang.StringgetIconPath()javax.swing.KeyStrokegetKeyOpenConfig()java.util.LocalegetLocale()java.lang.StringgetLogLevel()java.lang.StringgetLogPatternLayout()org.nuiton.version.VersiongetVersion()protected voidinstallSaveUserAction(java.lang.String... properties)TODO Remove this when the method in ApplicationConfig will be public Install thesaveUserActionon givneproperties.booleanisFullScreen()voidremoveJaxxPropertyChangeListener()voidsaveForUser()voidsetDemoClass(java.lang.Class<?> newClass)voidsetDemoColor(java.awt.Color color)voidsetFontSize(java.lang.Float newFontSize)voidsetFullscreen(boolean fullscreen)voidsetKeyOpenConfig(javax.swing.KeyStroke keyStroke)voidsetLocale(java.util.Locale newLocale)voidsetLogLevel(java.lang.String logLevel)voidsetLogPatternLayout(java.lang.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, removeVetoableChangeListenerMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
APPLICATION_PROPERTIES
public static final java.lang.String APPLICATION_PROPERTIESle 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 java.lang.String PROPERTY_FULLSCREEN- See Also:
- Constant Field Values
-
PROPERTY_LOCALE
public static final java.lang.String PROPERTY_LOCALE- See Also:
- Constant Field Values
-
PROPERTY_FONT_SIZE
public static final java.lang.String PROPERTY_FONT_SIZE- See Also:
- Constant Field Values
-
PROPERTY_DEMO_COLOR
public static final java.lang.String PROPERTY_DEMO_COLOR- See Also:
- Constant Field Values
-
PROPERTY_DEMO_CLASS
public static final java.lang.String PROPERTY_DEMO_CLASS- See Also:
- Constant Field Values
-
PROPERTY_LOG_LEVEL
public static final java.lang.String PROPERTY_LOG_LEVEL- See Also:
- Constant Field Values
-
PROPERTY_LOG_PATTERN_LAYOUT
public static final java.lang.String PROPERTY_LOG_PATTERN_LAYOUT- See Also:
- Constant Field Values
-
PROPERTY_KEY_OPEN_CONFIG
public static final java.lang.String PROPERTY_KEY_OPEN_CONFIG- See Also:
- Constant Field Values
-
DEFAULT_JAXX_PCS
public static final java.lang.String[] DEFAULT_JAXX_PCS
-
-
Constructor Details
-
DemoConfig
public DemoConfig(java.lang.String... args)
-
-
Method Details
-
get
public org.nuiton.config.ApplicationConfig get()- Specified by:
getin interfacecom.google.common.base.Supplier<org.nuiton.config.ApplicationConfig>- Specified by:
getin interfacejava.util.function.Supplier<org.nuiton.config.ApplicationConfig>
-
installSaveUserAction
protected void installSaveUserAction(java.lang.String... properties)TODO Remove this when the method in ApplicationConfig will be public Install thesaveUserActionon givneproperties.- Parameters:
properties- properties on which insalls the saveUserAction
-
getCopyrightText
public java.lang.String getCopyrightText() -
getVersion
public org.nuiton.version.Version getVersion()- Returns:
- la version de l'application.
-
isFullScreen
public boolean isFullScreen() -
getLocale
public java.util.Locale getLocale() -
getDemoPath
public java.lang.String getDemoPath() -
getFontSize
public java.lang.Float getFontSize() -
getDemoColor
public java.awt.Color getDemoColor() -
getDemoClass
public java.lang.Class<?> getDemoClass() -
getLogLevel
public java.lang.String getLogLevel() -
getLogPatternLayout
public java.lang.String getLogPatternLayout() -
getKeyOpenConfig
public javax.swing.KeyStroke getKeyOpenConfig() -
setFullscreen
public void setFullscreen(boolean fullscreen) -
setLocale
public void setLocale(java.util.Locale newLocale) -
setFontSize
public void setFontSize(java.lang.Float newFontSize) -
setDemoColor
public void setDemoColor(java.awt.Color color) -
setDemoClass
public void setDemoClass(java.lang.Class<?> newClass) -
setLogLevel
public void setLogLevel(java.lang.String logLevel) -
setLogPatternLayout
public void setLogPatternLayout(java.lang.String logPatternLayout) -
setKeyOpenConfig
public void setKeyOpenConfig(javax.swing.KeyStroke keyStroke) -
saveForUser
public void saveForUser() -
removeJaxxPropertyChangeListener
public void removeJaxxPropertyChangeListener() -
getApplicationSiteUrl
public java.net.URL getApplicationSiteUrl() -
getIconPath
public java.lang.String getIconPath() -
getHelpLocation
public java.lang.String getHelpLocation() -
getHelpResourceWithLocale
public java.lang.String getHelpResourceWithLocale(java.lang.String value)
-