Package com.saperion.ngc.maintab
Class LastOpenedApplication
- java.lang.Object
-
- com.saperion.ngc.maintab.LastOpenedApplication
-
public final class LastOpenedApplication extends java.lang.Object
This class is used to store and retrieve the event used to open the last application from the settings-database.- Author:
- cmerkel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LAST_APP_SETTING_NAME
static java.lang.String
STORE_LAST_APPLICATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NavigationFormEvent
get()
Restores the event that was used to open the last application from the setting stored in the database.static void
store(NavigationFormEvent openEvent)
Stores the event that was used to open the last application in the database.
-
-
-
Field Detail
-
LAST_APP_SETTING_NAME
public static final java.lang.String LAST_APP_SETTING_NAME
- See Also:
- Constant Field Values
-
STORE_LAST_APPLICATION
public static final java.lang.String STORE_LAST_APPLICATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
store
public static void store(NavigationFormEvent openEvent)
Stores the event that was used to open the last application in the database.- Parameters:
openEvent
- the event that was used to open the last application
-
get
public static NavigationFormEvent get()
Restores the event that was used to open the last application from the setting stored in the database.- Returns:
- the event or null if the setting was not found or empty
-
-