Package org.zkoss.zul

Enum Messagebox.Button

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Messagebox.Button>
    Enclosing class:
    Messagebox

    public static enum Messagebox.Button
    extends java.lang.Enum<Messagebox.Button>
    The button types.
    Since:
    6.0.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ABORT
      A Abort button.
      CANCEL
      A Cancel button.
      IGNORE
      A IGNORE button.
      NO
      A No button.
      OK
      A OK button.
      RETRY
      A Retry button.
      YES
      A Yes button.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String event
      The event name associated with this button type.
      int id
      The unique ID to represent this button type.
      int label
      The message ID used for loading the label.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Messagebox.Button valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Messagebox.Button[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        public final int id
        The unique ID to represent this button type.
      • event

        public final java.lang.String event
        The event name associated with this button type.
      • label

        public final int label
        The message ID used for loading the label.
        See Also:
        Messages
    • Method Detail

      • values

        public static Messagebox.Button[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Messagebox.Button c : Messagebox.Button.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Messagebox.Button valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null