Class ReturnOption

java.lang.Object
javatro.manager.options.ReturnOption
All Implemented Interfaces:
Option

public class ReturnOption extends Object implements Option
Enables navigation back to the previous screen in the view stack. Maintains screen history using a last-in-first-out navigation model.
  • Constructor Details

    • ReturnOption

      public ReturnOption()
  • Method Details

    • getDescription

      public String getDescription()
      Retrieves a description of the command. This method has a default implementation returning an empty string.
      Specified by:
      getDescription in interface Option
      Returns:
      Constant description "Return To Previous Screen"
    • execute

      public void execute() throws JavatroException
      Executes the command. Implementing classes must define specific behavior. Restores the application display to the previous screen state.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - if screen history is unavailable