Class FormButtonService

    • Constructor Detail

      • FormButtonService

        public FormButtonService()
    • Method Detail

      • setDefault

        public void setDefault​(Button button,
                               Form form)
        This method set the default button for form, the previous default button will be reset.
        Specified by:
        setDefault in interface IFormButtonService
        Parameters:
        button - the button in which set by default. (button can not be null).
        form - the form for which set the default button. (form can not be null).
        Throws:
        NullPointerException - - if button or form is null.
      • unsetDefault

        public void unsetDefault​(Button button,
                                 Form form)
        This method reset the default button for form. If current button is not the default button then method will do nothing.
        Specified by:
        unsetDefault in interface IFormButtonService
        Parameters:
        button - the button in which unset the default value. (button can not be null).
        form - the form for which unset the default button. (form can not be null).
        Throws:
        NullPointerException - - if button or form is null.