Class MessageboxUtils


  • public final class MessageboxUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.zkoss.zul.Messagebox.Button[] NO_YES_OPTION
      Constant array of Messagebox.Button.NO, Messagebox.Button.YES buttons in the standard order.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.zkoss.zul.Messagebox.Button[] order​(org.zkoss.zul.Messagebox.Button... buttons)
      Returns buttons in a standard order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NO_YES_OPTION

        public static final org.zkoss.zul.Messagebox.Button[] NO_YES_OPTION
        Constant array of Messagebox.Button.NO, Messagebox.Button.YES buttons in the standard order.
        See Also:
        order(Button...), Messagebox.Button.NO, Messagebox.Button.YES
    • Method Detail

      • order

        public static org.zkoss.zul.Messagebox.Button[] order​(org.zkoss.zul.Messagebox.Button... buttons)

        Returns buttons in a standard order. The standard order is as follow:

        1. Messagebox.Button.NO
        2. Messagebox.Button.CANCEL
        3. Messagebox.Button.ABORT
        4. Messagebox.Button.IGNORE
        5. Messagebox.Button.RETRY
        6. Messagebox.Button.YES
        7. Messagebox.Button.OK
        Parameters:
        buttons - the buttons to order.
        Returns:
        an array with buttons in the standard order.