Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
jvx:client:gui:temporary_values [2019/08/25 22:50] admin |
jvx:client:gui:temporary_values [2019/08/26 09:16] admin |
||
---|---|---|---|
Line 24: | Line 24: | ||
public void doOpenStatus() | public void doOpenStatus() | ||
{ | { | ||
- | getApplication().openWorkScreen( | + | IWorkScreen wosc = getApplication().openWorkScreen(StatusWorkScreenc.class.getName()); |
+ | |||
+ | ((WorkScreen)wosc).putObject(IConstants.STATE, ScreenState.New); | ||
} | } | ||
</code> | </code> | ||
+ | We save a simple **"state"** for the screen, directly in the screen instance. | ||
+ | |||
+ | It's also possible to use the launcher or application, e.g. | ||
+ | |||
+ | <code java> | ||
+ | protected void afterLogin() | ||
+ | { | ||
+ | super.afterLogin(); | ||
+ | | ||
+ | getLauncher().putObject(IConstants.APPMODE, AppMode.AUTHENTICATED); | ||
+ | } | ||
+ | </code> | ||
+ | We save the **"application mode"** in the launcher and this information is available in every screen or any other class which has access to the launcher. |