Enum Class HDBManager.Menu

All Implemented Interfaces:
Serializable, Comparable<HDBManager.Menu>, Constable, ScopedOption
Enclosing class:
HDBManager

static enum HDBManager.Menu extends Enum<HDBManager.Menu> implements ScopedOption
Possible menu options for a HDB Manager role Each option listed here are options that only a HDB Manager can interact with.
  • Enum Constant Details

    • CREATE_PROJECT

      public static final HDBManager.Menu CREATE_PROJECT
    • EDIT_PROJECT

      public static final HDBManager.Menu EDIT_PROJECT
    • DELETE_PROJECT

      public static final HDBManager.Menu DELETE_PROJECT
    • VIEW_ALL_PROJECTS

      public static final HDBManager.Menu VIEW_ALL_PROJECTS
    • APPROVE_OR_REJECT_APPLICATIONS

      public static final HDBManager.Menu APPROVE_OR_REJECT_APPLICATIONS
    • APPROVE_OR_REJECT_WITHDRAWAL_APPLICATIONS

      public static final HDBManager.Menu APPROVE_OR_REJECT_WITHDRAWAL_APPLICATIONS
    • VIEW_PENDING_OFFICER_REQUESTS

      public static final HDBManager.Menu VIEW_PENDING_OFFICER_REQUESTS
    • VIEW_CREATED_PROJECTS

      public static final HDBManager.Menu VIEW_CREATED_PROJECTS
    • ENQUIRIES_SYSTEM

      public static final HDBManager.Menu ENQUIRIES_SYSTEM
    • REPORTS

      public static final HDBManager.Menu REPORTS
  • Field Details

  • Constructor Details

    • Menu

      private Menu()
  • Method Details

    • values

      public static HDBManager.Menu[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HDBManager.Menu valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOptionName

      public String getOptionName()
      Description copied from interface: ScopedOption
      Use this method to get the option name to be printed in the menu.
      Specified by:
      getOptionName in interface ScopedOption
      Returns:
      option name
    • fromOrdinal

      public static HDBManager.Menu fromOrdinal(int o)
      Get the menu value based on index. Each enum value starts from 0..size of enum values.
      Parameters:
      o - Index expected of the option
      Returns:
      the menu enum value.