Package jaxx.demo
Class DemoUIHandler
java.lang.Object
jaxx.demo.DemoUIHandler
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 Summary
Fields Modifier and Type Field Description static java.lang.StringOPEN_CONFIG_ACTION -
Constructor Summary
Constructors Constructor Description DemoUIHandler() -
Method Summary
Modifier and Type Method Description protected voidaddKeyStrokes(DemoUI ui, DemoConfig config)voidafterInit(DemoUI ui)voidbeforeInit(DemoUI ui)voidchangeLanguage(JAXXContext context, java.util.Locale newLocale)voidchangeScreen(JAXXContext context, boolean fullscreen)Méthode pour changer de mode d'affichage.voidclose(JAXXContext context)Ferme l'application.voiddisplayUI(DemoUI ui, java.lang.String[] nodePath)protected <E extends java.awt.Component>
EgetContentIfExist(DemoUI ui, java.lang.String constraints)voidgotoSite(JAXXContext context)DemoUIinitUI(DefaultApplicationContext rootContext, DemoConfig config)Methode pour initialiser l'ui principale sans l'afficher.voidreloadUI(DefaultApplicationContext rootContext, DemoConfig config)Permet de recharger l'ui principale et de changer de le mode d'affichage.protected voidsetShowConfigInputMap(javax.swing.InputMap inputMap, javax.swing.KeyStroke keyStroke)voidshowAbout(DemoUI ui)voidshowConfig(JAXXContext context)voidshowHelp(DemoUI ui)voidshowHelp(JAXXContext context, java.lang.String helpId)voidshowLogs(DemoUI ui)protected voidshowUI(DemoUI ui, java.lang.Class<?> type)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
Methode pour initialiser l'ui principale sans l'afficher.- Parameters:
rootContext- le context applicatifconfig- la configuration a utiliser- Returns:
- l'ui instancie et initialisee mais non visible encore
-
addKeyStrokes
-
setShowConfigInputMap
protected void setShowConfigInputMap(javax.swing.InputMap inputMap, javax.swing.KeyStroke keyStroke) -
beforeInit
- Specified by:
beforeInitin interfaceUIHandler<DemoUI>
-
afterInit
-
showUI
-
getContentIfExist
protected <E extends java.awt.Component> E getContentIfExist(DemoUI ui, java.lang.String constraints) -
displayUI
-
reloadUI
Permet de recharger l'ui principale et de changer de le mode d'affichage.- Parameters:
rootContext- le contexte applicatifconfig- la configuration a utiliser
-
changeScreen
Méthode pour changer de mode d'affichage. Sifullscreenest àtruealors 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'applicationfullscreen- le nouvel état requis.
-
changeLanguage
-
close
Ferme l'application.- Parameters:
context- l'ui principale de l'application
-
showConfig
-
showHelp
-
showHelp
-
showLogs
-
gotoSite
-
showAbout
-