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
  • Field Details

    • APPLICATION_PROPERTIES

      public static final java.lang.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 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:
      get in interface com.google.common.base.Supplier<org.nuiton.config.ApplicationConfig>
      Specified by:
      get in interface java.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 the saveUserAction on givne properties.
      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)