jaxx.demo
Class DemoUIHandler

java.lang.Object
  extended by jaxx.demo.DemoUIHandler

public class DemoUIHandler
extends Object

Le handler de l'ui principale.

Author:
tchemit
See Also:
DemoUI

Constructor Summary
DemoUIHandler()
           
 
Method Summary
 void changeLanguage(JAXXContext context, Locale newLocale)
           
 void changeScreen(JAXXContext context, boolean fullscreen)
          Méthode pour changer de mode d'affichage.
 void close(JAXXContext context)
          Ferme l'application.
 void displayUI(DemoUI ui, String[] nodePath)
           
protected
<E extends Component>
E
getContentIfExist(DemoUI ui, String constraints)
           
 void gotoSite(JAXXContext context)
           
 DemoUI initUI(DefaultApplicationContext rootContext, DemoConfig config)
          Methode pour initialiser l'ui principale sans l'afficher.
 void initUI(DemoUI ui)
           
 void reloadUI(DefaultApplicationContext rootContext, DemoConfig config)
          Permet de recharger l'ui principale et de changer de le mode d'affichage.
 void showAbout(DemoUI ui)
           
 void showConfig(JAXXContext context)
           
 void showHelp(JAXXContext context, String helpId)
           
protected  void showUI(DemoUI ui, Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoUIHandler

public DemoUIHandler()
Method Detail

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

initUI

public void initUI(DemoUI ui)

showUI

protected void showUI(DemoUI ui,
                      Class<?> type)

getContentIfExist

protected <E extends Component> E getContentIfExist(DemoUI ui,
                                                    String constraints)

displayUI

public void displayUI(DemoUI ui,
                      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,
                           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(JAXXContext context,
                     String helpId)

gotoSite

public void gotoSite(JAXXContext context)

showAbout

public void showAbout(DemoUI ui)


Copyright © 2008-2010 CodeLutin. All Rights Reserved.