Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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