Class VuzeMessageBox

    • Field Detail

      • title

        private java.lang.String title
      • text

        private java.lang.String text
      • result

        private int result
      • iconResource

        private java.lang.String iconResource
      • subtitle

        private java.lang.String subtitle
      • textIconResource

        private java.lang.String textIconResource
      • closed

        private boolean closed
      • opened

        private boolean opened
      • dialogTempate

        private java.lang.String dialogTempate
    • Constructor Detail

      • VuzeMessageBox

        public VuzeMessageBox​(java.lang.String title,
                              java.lang.String text,
                              java.lang.String[] buttons,
                              int defaultOption)
    • Method Detail

      • setButtonEnabled

        public void setButtonEnabled​(int buttonVal,
                                     boolean enable)
      • setButtonVals

        public void setButtonVals​(java.lang.Integer[] buttonVals)
      • setSubTitle

        public void setSubTitle​(java.lang.String s)
      • getAutoCloseInMS

        public int getAutoCloseInMS()
        Description copied from interface: UIFunctionsUserPrompter
        Returns the number milliseconds the prompt will wait around until it auto closes. Timer starts after the user is prompted (when #open() is called), and typically does not decrease while the user is viewing the prompt (certain implementations may operate differently)
        Specified by:
        getAutoCloseInMS in interface UIFunctionsUserPrompter
        Returns:
        MS before prompt auto-closes, 0 for no auto-close
      • getHtml

        public java.lang.String getHtml()
        Description copied from interface: UIFunctionsUserPrompter
        Returns the HTML that will be displayed along with the prompt

        TODO: Create a boolean canHandleHTML()

        Specified by:
        getHtml in interface UIFunctionsUserPrompter
        Returns:
      • isAutoClosed

        public boolean isAutoClosed()
        Description copied from interface: UIFunctionsUserPrompter
        Determines if the prompt was auto closed after #open() was called, or if the user chose an option.
        Specified by:
        isAutoClosed in interface UIFunctionsUserPrompter
        Returns:
        true: auto-closed after timeout
        false: user chose an option
      • setSkinnedDialagTemplate

        public void setSkinnedDialagTemplate​(java.lang.String dialogTempate)
      • getButtons

        public org.eclipse.swt.widgets.Button[] getButtons()
      • setAutoCloseInMS

        public void setAutoCloseInMS​(int autoCloseInMS)
        Description copied from interface: UIFunctionsUserPrompter
        Sets the # of milliseconds before auto closing. Timer starts after the user is prompted (when #open() is called), and typically does not decrease while the user is viewing the prompt (certain implementations may operate differently)
        Specified by:
        setAutoCloseInMS in interface UIFunctionsUserPrompter
      • setIconResource

        public void setIconResource​(java.lang.String resource)
        Specified by:
        setIconResource in interface UIFunctionsUserPrompter
        Parameters:
        resource - image repository resource name (e.g. "error", "warning", "info")
      • setRemember

        public void setRemember​(java.lang.String rememberID,
                                boolean rememberByDefault,
                                java.lang.String rememberText)
        Specified by:
        setRemember in interface UIFunctionsUserPrompter
      • closeWithButtonVal

        public void closeWithButtonVal​(int buttonVal)
      • addResourceBundle

        public void addResourceBundle​(java.lang.Class<?> cla,
                                      java.lang.String path,
                                      java.lang.String name)
      • setTextIconResource

        public void setTextIconResource​(java.lang.String resource)
      • setDefaultButtonByPos

        public void setDefaultButtonByPos​(int pos)