Package jaxx.demo
Class DemoUIHandler
java.lang.Object
jaxx.demo.DemoUIHandler
public class DemoUIHandler extends 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 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, Locale newLocale)voidchangeScreen(JAXXContext context, boolean fullscreen)Méthode pour changer de mode d'affichage.voidclose(JAXXContext context)Ferme l'application.voiddisplayUI(DemoUI ui, String[] nodePath)protected <E extends Component>
EgetContentIfExist(DemoUI ui, 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(InputMap inputMap, KeyStroke keyStroke)voidshowAbout(DemoUI ui)voidshowConfig(JAXXContext context)voidshowHelp(DemoUI ui)voidshowHelp(JAXXContext context, String helpId)voidshowLogs(DemoUI ui)protected voidshowUI(DemoUI ui, Class<?> type)
-
Field Details
-
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
-
beforeInit
- Specified by:
beforeInitin interfaceUIHandler<DemoUI>
-
afterInit
-
showUI
-
getContentIfExist
-
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
-