Package org.nuiton.jaxx.demo
Class DemoUIHandler
- java.lang.Object
-
- org.nuiton.jaxx.demo.DemoUIHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPEN_CONFIG_ACTION
-
Constructor Summary
Constructors Constructor Description DemoUIHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)protected voidshowUI(DemoUI ui, Class<?> type)
-
-
-
Field Detail
-
OPEN_CONFIG_ACTION
public static final String OPEN_CONFIG_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
initUI
public DemoUI initUI(DefaultApplicationContext rootContext, DemoConfig config)
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
protected void addKeyStrokes(DemoUI ui, DemoConfig config)
-
beforeInit
public void beforeInit(DemoUI ui)
- Specified by:
beforeInitin interfaceUIHandler<DemoUI>
-
getContentIfExist
protected <E extends Component> E getContentIfExist(DemoUI ui, String constraints)
-
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 applicatifconfig- la configuration a utiliser
-
changeScreen
public void changeScreen(JAXXContext context, boolean fullscreen)
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
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(DemoUI ui)
-
showHelp
public void showHelp(JAXXContext context, String helpId)
-
gotoSite
public void gotoSite(JAXXContext context)
-
showAbout
public void showAbout(DemoUI ui)
-
-