:: com :: sun :: star :: form :: control ::

service CommandButton
Description
describes a button control.

The model of the control has to support the ::com::sun::star::form::component::CommandButton service.

The control is clickable, the action taken upon clicking depends on the settings of the model the control belongs to.

See also
::com::sun::star::awt::UnoControl, ::com::sun::star::awt::UnoControlModel, ::com::sun::star::form::component::CommandButton::ButtonType

Included Services
::com::sun::star::awt::UnoControlButton
(referenced entity's summary:)
specifies a button control.
Exported Interfaces
::com::sun::star::form::XApproveActionBroadcaster
Description
allows external instances to register as veto listener for the button's actions.

An ::com::sun::star::form::XApproveActionListener returning false on it's approve-method will prevent any action which would usually be triggered - this includes not only submitting or resetting forms, but also calling the ::com::sun::star::awt::XActionListener s of the super service
This may be interesting for e.g. forms which want to provide input validation before submitting data.


 
Top of Page