interface XButton in module com::sun::star::awt::

(Global Index)

Syntax

interface XButton : com::sun::star::uno::XInterface ;

Description

makes it possible to set the label of a button and to register for action events.

Method Summary

addActionListener registers an event handler for button action events.

removeActionListener unregisters an event handler for button action events.

setLabel sets the label of the button.

setActionCommand sets a command string for pushing the button.

Known Services Which Export this Interface

com::sun::star::awt::UnoControlButton

Method Details



addActionListener

Syntax

oneway void addActionListener (
com::sun::star::awt::XActionListener l );

Description

registers an event handler for button action events.


removeActionListener

Syntax

oneway void removeActionListener (
com::sun::star::awt::XActionListener l );

Description

unregisters an event handler for button action events.


setLabel

Syntax

oneway void setLabel (
string Label );

Description

sets the label of the button.


setActionCommand

Syntax

oneway void setActionCommand (
string Command );

Description

sets a command string for pushing the button.

Top of Page