Class MessageboxDlg.Button

All Implemented Interfaces:
Serializable, Cloneable, Component, Disable, Scope, Uploadable, ComponentCtrl
Enclosing class:
MessageboxDlg

public static class MessageboxDlg.Button extends Button
Represents a button on the message box.
Since:
3.0.4
See Also:
  • Constructor Details

    • Button

      public Button()
  • Method Details

    • setButton

      public void setButton(Messagebox.Button button, 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 Exception
      Throws:
      Exception
    • getDefaultMold

      protected String getDefaultMold(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