Enum Class ViewType

java.lang.Object
java.lang.Enum<ViewType>
com.ultikits.ultitools.entities.ViewType
All Implemented Interfaces:
Serializable, Comparable<ViewType>, java.lang.constant.Constable

public enum ViewType extends Enum<ViewType>
The enum View type.
  • Enum Constant Details

    • PREVIOUS_BACK_NEXT

      public static final ViewType PREVIOUS_BACK_NEXT
      Previous back next view type.
    • PREVIOUS_QUIT_NEXT

      public static final ViewType PREVIOUS_QUIT_NEXT
      Previous quit next view type.
    • OK_CANCEL

      public static final ViewType OK_CANCEL
      Ok cancel view type.
  • Field Details

    • isPageButtonEnabled

      private final boolean isPageButtonEnabled
    • autoAddPage

      private final boolean autoAddPage
    • backGroundColor

      private final Colors backGroundColor
    • middleButton

      private final Buttons middleButton
    • pageNumber

      private final int pageNumber
    • isOkCancelEnabled

      private final boolean isOkCancelEnabled
    • isLastLineEnabled

      private final boolean isLastLineEnabled
  • Constructor Details

    • ViewType

      private ViewType(boolean isLastLineDisabled, boolean isOkCancelEnabled, boolean isPageButtonEnabled, boolean autoAddPage, Colors backGroundColor, Buttons middleButton, int pageNumber)
  • Method Details

    • values

      public static ViewType[] 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 ViewType 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
    • isPageButtonEnabled

      public boolean isPageButtonEnabled()
      Is page button enabled boolean.
      Returns:
      the boolean
    • isAutoAddPage

      public boolean isAutoAddPage()
      Is auto add page boolean.
      Returns:
      the boolean
    • getBackGroundColor

      public Colors getBackGroundColor()
      Gets back ground color.
      Returns:
      the back ground color
    • getMiddleButton

      public Buttons getMiddleButton()
      Gets middle button.
      Returns:
      the middle button
    • getPageNumber

      public int getPageNumber()
      Gets page number.
      Returns:
      the page number
    • isLastLineEnabled

      public boolean isLastLineEnabled()
      Is last line enabled boolean.
      Returns:
      the boolean
    • isOkCancelEnabled

      public boolean isOkCancelEnabled()
      Is ok cancel enabled boolean.
      Returns:
      the boolean