Package jaxx.demo

Class DemoUIHandler

java.lang.Object
jaxx.demo.DemoUIHandler
All Implemented Interfaces:
UIHandler<DemoUI>

public class DemoUIHandler
extends java.lang.Object
implements UIHandler<DemoUI>
Le handler de l'ui principale.
Author:
Tony Chemit - chemit@codelutin.com
See Also:
DemoUI
  • Field Details

    • OPEN_CONFIG_ACTION

      public static final java.lang.String OPEN_CONFIG_ACTION
      See Also:
      Constant Field Values
  • Constructor Details

    • DemoUIHandler

      public DemoUIHandler()
  • Method Details

    • initUI

      public DemoUI initUI​(DefaultApplicationContext rootContext, DemoConfig config)
      Methode pour initialiser l'ui principale sans l'afficher.
      Parameters:
      rootContext - le context applicatif
      config - la configuration a utiliser
      Returns:
      l'ui instancie et initialisee mais non visible encore
    • addKeyStrokes

      protected void addKeyStrokes​(DemoUI ui, DemoConfig config)
    • setShowConfigInputMap

      protected void setShowConfigInputMap​(javax.swing.InputMap inputMap, javax.swing.KeyStroke keyStroke)
    • beforeInit

      public void beforeInit​(DemoUI ui)
      Specified by:
      beforeInit in interface UIHandler<DemoUI>
    • afterInit

      public void afterInit​(DemoUI ui)
      Specified by:
      afterInit in interface UIHandler<DemoUI>
    • showUI

      protected void showUI​(DemoUI ui, java.lang.Class<?> type)
    • getContentIfExist

      protected <E extends java.awt.Component> E getContentIfExist​(DemoUI ui, java.lang.String constraints)
    • displayUI

      public void displayUI​(DemoUI ui, java.lang.String[] nodePath)
    • reloadUI

      public void reloadUI​(DefaultApplicationContext rootContext, DemoConfig config)
      Permet de recharger l'ui principale et de changer de le mode d'affichage.
      Parameters:
      rootContext - le contexte applicatif
      config - la configuration a utiliser
    • changeScreen

      public void changeScreen​(JAXXContext context, boolean fullscreen)
      Méthode pour changer de mode d'affichage. Si fullscreen est à true alors on passe en mode console (c'est à dire en mode plein écran exclusif), sinon on passe en mode fenetré normal.
      Parameters:
      context - l'ui principale de l'application
      fullscreen - le nouvel état requis.
    • changeLanguage

      public void changeLanguage​(JAXXContext context, java.util.Locale newLocale)
    • close

      public void close​(JAXXContext context)
      Ferme l'application.
      Parameters:
      context - l'ui principale de l'application
    • showConfig

      public void showConfig​(JAXXContext context)
    • showHelp

      public void showHelp​(DemoUI ui)
    • showHelp

      public void showHelp​(JAXXContext context, java.lang.String helpId)
    • showLogs

      public void showLogs​(DemoUI ui)
    • gotoSite

      public void gotoSite​(JAXXContext context)
    • showAbout

      public void showAbout​(DemoUI ui)