Class DeckViewOption

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

public class DeckViewOption extends Object implements Option
Represents a menu option to view the current deck composition. When executed, transitions the display to the deck viewing screen.
  • Constructor Details

    • DeckViewOption

      public DeckViewOption()
  • 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:
      The static description "View Deck"
    • execute

      public void execute() throws JavatroException
      Executes the command. Implementing classes must define specific behavior. Transitions the display to show deck contents.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - if screen transition fails