|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exist.fluent.Folder.ListenersFacet
public class Folder.ListenersFacet
The facet that allwos control over listeners to the folder, and all its descendant folders and documents.
Constructor Summary | |
---|---|
Folder.ListenersFacet()
|
Method Summary | |
---|---|
void |
add(Set<Trigger> triggers,
Listener listener)
Add a listener for either folder or document events on this folder, its contents, and all its descendants and their contents as well. |
void |
add(Trigger trigger,
Listener listener)
Add a listener for either folder or document events on this folder, its contents, and all its descendants and their contents as well. |
void |
remove(Listener listener)
Remove a listener previously added through this facet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Folder.ListenersFacet()
Method Detail |
---|
public void add(Trigger trigger, Listener listener)
add(EnumSet.of(trigger), listener)
.
trigger
- the kind of event the listener should be notified oflistener
- the listener to notify of eventsadd(Set, org.exist.fluent.Listener)
public void add(Set<Trigger> triggers, Listener listener)
Document.Listener
or Folder.Listener
) will determine the kinds of events it will receive. Note that
if the listener implements both interfaces it will be notified of events that concern both
documents and folders (and satisfy the timing and action characteristics requested).
triggers
- the kinds of events the listener should be notified of; the set must not be emptylistener
- the listener to notify of eventspublic void remove(Listener listener)
add
methods. However, it will not remove the listener from combinations
added through other facets, even this folder's documents facet or the facets of any descendants.
listener
- the listener to remove
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |