Package javatro.manager.options
Class ReturnOption
java.lang.Object
javatro.manager.options.ReturnOption
- All Implemented Interfaces:
Option
Enables navigation back to the previous screen in the view stack. Maintains screen history using
a last-in-first-out navigation model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the command.Retrieves a description of the command.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javatro.manager.options.Option
setDescription
-
Constructor Details
-
ReturnOption
public ReturnOption()
-
-
Method Details
-
getDescription
Retrieves a description of the command. This method has a default implementation returning an empty string.- Specified by:
getDescriptionin interfaceOption- Returns:
- Constant description "Return To Previous Screen"
-
execute
Executes the command. Implementing classes must define specific behavior. Restores the application display to the previous screen state.- Specified by:
executein interfaceOption- Throws:
JavatroException- if screen history is unavailable
-