Class MessageboxDlg.Button

    • Constructor Detail

      • Button

        public Button()
    • Method Detail

      • setButton

        public void setButton​(Messagebox.Button button,
                              java.lang.String label)
        Sets the label's information and label.
      • setButton

        public void setButton​(Messagebox.Button button)
        Sets the label's information with a default label.
      • onClick

        public void onClick()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDefaultMold

        protected java.lang.String getDefaultMold​(java.lang.Class klass)
        Description copied from class: AbstractComponent
        Returns the default mold for the given class.

        Default: check the library property called xxx.mold, where xxx is the name of the give class. If not found or empty, "default" is assumed.

        Subclass might override this method to use the default mold of the base class, such as

        
        protected String getDefaultMold(Class klass) {
           return super.getDefaultMold(Button.class);
        }
        Overrides:
        getDefaultMold in class AbstractComponent