Methods' Details |
registerScriptEvent
|
registerScriptEvents
|
revokeScriptEvent
void |
revokeScriptEvent( |
[in] long |
nIndex, |
| [in] string |
aListenerType, |
| [in] string |
aEventMethod, |
| [in] string |
aRemoveListenerParam ) |
raises( |
::com::sun::star::lang::IllegalArgumentException ); |
- Description
- revokes the registration of an event.
The parameters ListenerType and
EventMethod are equivalent to the first two
members of the ScriptEventDescriptor
used to register events. If this event at this index has
been attached to any object, it is detached automatically
(see attach).
Exceptions of type
::com::sun::star::beans::IntrospectionException and
CannotCreateAdapterException
that can be thrown by methods of XEventAttacher are caught
and ignored.
|
|
revokeScriptEvents
- Description
- revokes all events which are registered for the given index.
If the events at this index have been attached to any
object, they are detached automatically.
(see attach).
|
|
insertEntry
- Description
- creates an empty entry at the given position.
The index n of all entries with n >=
nIndex will be increased by one.
|
|
removeEntry
- Description
- removes the entry at the given position.
If any events are registered at this index, they will
be revoked, too. So if the events at this index have been
attached to any object they are detached automatically.
(see attach).
|
|
getScriptEvents
- Description
- @eturns
all events registered for the given object index.
- Parameter Index
- an index previously inserted with the method insertEntry.
- Throws
- IllegalArgumentException
if Index is not valid.
|
|
attach
|
detach
|
addScriptListener
- Description
- adds an XScriptListener that will be notified when an
event takes place. For that a
ScriptEventDescriptor is registered at and
attached to an object by an XEventAttacherManager.
It is suggested to allow multiple registration of the same listener,
thus for each time a listener is added, it has to be removed.
|
|
removeScriptListener
- Description
- removes a XScriptListener from the listener list.
Nothing happens if the listener is not registered.
It is suggested to allow multiple registration of the same listener,
thus for each time a listener is added, it has to be removed.
|
|
Copyright © 2010 Sun Microsystems, Inc.