Package javatro.manager.options
Class DeckViewOption
java.lang.Object
javatro.manager.options.DeckViewOption
- All Implemented Interfaces:
Option
Represents a menu option to view the current deck composition. When executed, transitions the
display to the deck viewing screen.
-
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
-
DeckViewOption
public DeckViewOption()
-
-
Method Details
-
getDescription
Retrieves a description of the command. This method has a default implementation returning an empty string.- Specified by:
getDescriptionin interfaceOption- Returns:
- The static description "View Deck"
-
execute
Executes the command. Implementing classes must define specific behavior. Transitions the display to show deck contents.- Specified by:
executein interfaceOption- Throws:
JavatroException- if screen transition fails
-