Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XUpdateListener
Base Interfaces
XUpdateListener
┗ ::com::sun::star::lang::XEventListener

::com::sun::star::lang::XEventListener
(referenced interface's summary:)
base interface for all event listeners interfaces.
Description
used to listen on objects which allow updating their data.

In addition to just get notified when an data update happened, the listener has a chance to veto updates before they happen.

See also
XUpdateBroadcaster

Methods' Summary
approveUpdate is invoked to check the current data.  
updated is invoked when an object has finished processing the updates and the data has been successfully written.  
Methods' Details
approveUpdate
boolean
approveUpdate( [in] ::com::sun::star::lang::EventObject  aEvent );

Description
is invoked to check the current data.

For a given update process, if one of the XUpdateListeners vetos the change, the update is canceled, and no further notification happens.

Parameter aEvent
An event dedscriptor specifying the broadcaster of the change.
Returns
true when the update was approved, otherwise false.
updated
void
updated( [in] ::com::sun::star::lang::EventObject  aEvent );

Description
is invoked when an object has finished processing the updates and the data has been successfully written.
Parameter aEvent
A event dedscriptor specifying the broadcaster of the change.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.