Class ViewRunOption

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

public class ViewRunOption extends Object implements Option
A command that loads the run selection screen for a specific saved run.

This command is dynamically created for each saved run and added to a command map. When executed, it transitions the application to the corresponding run's detail screen.

  • Constructor Details

    • ViewRunOption

      public ViewRunOption()
  • Method Details

    • setRunNumber

      public void setRunNumber(int runNumber)
      Sets the run number for this option.
      Parameters:
      runNumber - The run number to associate with this option.
    • getDescription

      public String getDescription()
      Returns a description of this option, which includes the run number it represents.
      Specified by:
      getDescription in interface Option
      Returns:
      A string describing this option, formatted as "View Run".
    • execute

      public void execute() throws JavatroException
      Executes the command to change the screen to the run selection screen.

      This method triggers the following actions:

      Specified by:
      execute in interface Option
      Throws:
      JavatroException - if there is an error during screen transition.
    • getRunNumber

      public int getRunNumber()