Package org.nuiton.jaxx.demo
Class DemoConfig
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.nuiton.jaxx.demo.DemoConfig
-
- All Implemented Interfaces:
com.google.common.base.Supplier<io.ultreia.java4all.config.ApplicationConfig>,Supplier<io.ultreia.java4all.config.ApplicationConfig>
public class DemoConfig extends org.jdesktop.beans.AbstractBean implements com.google.common.base.Supplier<io.ultreia.java4all.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 - dev@tchemit.fr
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.ultreia.java4all.config.ApplicationConfigget()URLgetApplicationSiteUrl()StringgetCopyrightText()Class<?>getDemoClass()ColorgetDemoColor()StringgetDemoPath()FloatgetFontSize()StringgetHelpLocation()StringgetHelpResourceWithLocale(String value)StringgetIconPath()KeyStrokegetKeyOpenConfig()LocalegetLocale()StringgetLogLevel()StringgetLogPatternLayout()org.nuiton.version.VersiongetVersion()booleanisFullScreen()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 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_DEMO_COLOR
public static final String PROPERTY_DEMO_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_DEMO_CLASS
public static final String PROPERTY_DEMO_CLASS
- See Also:
- Constant Field Values
-
PROPERTY_LOG_LEVEL
public static final String PROPERTY_LOG_LEVEL
- See Also:
- Constant Field Values
-
PROPERTY_LOG_PATTERN_LAYOUT
public static final String PROPERTY_LOG_PATTERN_LAYOUT
- See Also:
- Constant Field Values
-
PROPERTY_KEY_OPEN_CONFIG
public static final String PROPERTY_KEY_OPEN_CONFIG
- See Also:
- Constant Field Values
-
DEFAULT_JAXX_PCS
public static final String[] DEFAULT_JAXX_PCS
-
-
Constructor Detail
-
DemoConfig
public DemoConfig(String... args)
-
-
Method Detail
-
get
public io.ultreia.java4all.config.ApplicationConfig get()
-
getCopyrightText
public String getCopyrightText()
-
getVersion
public org.nuiton.version.Version getVersion()
- Returns:
- la version de l'application.
-
isFullScreen
public boolean isFullScreen()
-
getLocale
public Locale getLocale()
-
getDemoPath
public String getDemoPath()
-
getFontSize
public Float getFontSize()
-
getDemoColor
public Color getDemoColor()
-
getDemoClass
public Class<?> getDemoClass()
-
getLogLevel
public String getLogLevel()
-
getLogPatternLayout
public String getLogPatternLayout()
-
getKeyOpenConfig
public KeyStroke getKeyOpenConfig()
-
setFullscreen
public void setFullscreen(boolean fullscreen)
-
setLocale
public void setLocale(Locale newLocale)
-
setFontSize
public void setFontSize(Float newFontSize)
-
setDemoColor
public void setDemoColor(Color color)
-
setDemoClass
public void setDemoClass(Class<?> newClass)
-
setLogLevel
public void setLogLevel(String logLevel)
-
setLogPatternLayout
public void setLogPatternLayout(String logPatternLayout)
-
setKeyOpenConfig
public void setKeyOpenConfig(KeyStroke keyStroke)
-
saveForUser
public void saveForUser()
-
getApplicationSiteUrl
public URL getApplicationSiteUrl()
-
getIconPath
public String getIconPath()
-
getHelpLocation
public String getHelpLocation()
-
-