Class Menu

java.lang.Object
moblima.boundaries.Menu
Direct Known Subclasses:
BookingMenu, CustomerMenu, MovieMenu, SettingsMenu, StaffMenu

public abstract class Menu extends Object
The type Menu.
  • Field Details

  • Constructor Details

    • Menu

      public Menu()
  • Method Details

    • displayMenuList

      protected void displayMenuList()
      Display menu list.
    • displayMenuList

      protected void displayMenuList(List<String> menuList)
      Display menu list.
      Parameters:
      menuList - the menu list
    • displayMenu

      protected void displayMenu()
      Display menu.
    • awaitContinue

      public void awaitContinue()
      Await continue.
    • setDate

      public LocalDate setDate(String promptMsg, boolean onlyFuture)
      Sets date.
      Parameters:
      promptMsg - the prompt msg
      onlyFuture - the only future
      Returns:
      the date
    • setDateTime

      public LocalDateTime setDateTime(String promptMsg, boolean onlyFuture)
      Sets date time.
      Parameters:
      promptMsg - the prompt msg
      onlyFuture - the only future
      Returns:
      the date time
    • setInt

      public int setInt(String promptMsg)
      Sets int.
      Parameters:
      promptMsg - the prompt msg
      Returns:
      the int
    • setDouble

      public Double setDouble(String promptMsg)
      Sets double.
      Parameters:
      promptMsg - the prompt msg
      Returns:
      the double
    • setString

      public String setString(String varname, String promptMsg)
      Sets string.
      Parameters:
      varname - the varname
      promptMsg - the prompt msg
      Returns:
      the string
    • printChanges

      public void printChanges(String label, boolean isSame, String prevStatus, String curStatus)
      Print changes.
      Parameters:
      label - the label
      isSame - the is same
      prevStatus - the prev status
      curStatus - the cur status
    • getListSelectionIdx

      protected int getListSelectionIdx(List list)
      Gets list selection idx.
      Parameters:
      list - the list
      Returns:
      the list selection idx
    • getListSelectionIdx

      protected int getListSelectionIdx(List list, boolean showMenuList)
      Gets list selection idx.
      Parameters:
      list - the list
      showMenuList - the show menu list
      Returns:
      the list selection idx
    • refreshMenu

      protected void refreshMenu(LinkedHashMap<String,Runnable> menuMap)
      Refresh menu.
      Parameters:
      menuMap - the menu map
    • showMenu

      public abstract void showMenu()
      Show menu.