Class FormButtonService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.item.impl.FormButtonService
-
- All Implemented Interfaces:
IFormButtonService
public class FormButtonService extends Object implements IFormButtonService
The default implementation ofIFormButtonService
-
-
Constructor Summary
Constructors Constructor Description FormButtonService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDefault(Button button, Form form)
This method set the default button for form, the previous default button will be reset.void
unsetDefault(Button button, Form form)
This method reset the default button for form.
-
-
-
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 interfaceIFormButtonService
- Parameters:
button
- the button in which set by default. (button can not benull
).form
- the form for which set the default button. (form can not benull
).- Throws:
NullPointerException
- - if button or form isnull
.
-
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 interfaceIFormButtonService
- Parameters:
button
- the button in which unset the default value. (button can not benull
).form
- the form for which unset the default button. (form can not benull
).- Throws:
NullPointerException
- - if button or form isnull
.
-
-