public class EventTypeFilter extends java.lang.Object implements EventFilter
EventTypeFilter filters based on event types as defined
by ObservationManager.addEventListener().| Constructor and Description |
|---|
EventTypeFilter(int eventTypes)
Create a new
Filter instance that includes all events matching
the eventTypes bit mask. |
| Modifier and Type | Method and Description |
|---|---|
EventFilter |
create(java.lang.String name,
NodeState before,
NodeState after)
Factory for creating a filter instance for the given child node
|
boolean |
includeAdd(PropertyState after)
Include an added property
|
boolean |
includeAdd(java.lang.String name,
NodeState after)
Include an added node
|
boolean |
includeChange(PropertyState before,
PropertyState after)
Include a changed property
|
boolean |
includeDelete(PropertyState before)
Include a deleted property
|
boolean |
includeDelete(java.lang.String name,
NodeState before)
Include a deleted node
|
boolean |
includeMove(java.lang.String sourcePath,
java.lang.String name,
NodeState moved)
Include a moved node
|
boolean |
includeReorder(java.lang.String destName,
java.lang.String name,
NodeState reordered)
Include a reordered node
|
public EventTypeFilter(int eventTypes)
Filter instance that includes all events matching
the eventTypes bit mask. That is, a given event is included if
the corresponding bit in eventType is set.eventTypes - bit mask encoding the types of events to includeEventpublic boolean includeAdd(PropertyState after)
EventFilterincludeAdd in interface EventFilterafter - added propertytrue if the property should be includedpublic boolean includeChange(PropertyState before, PropertyState after)
EventFilterincludeChange in interface EventFilterbefore - property before the changeafter - property after the changetrue if the property should be includedpublic boolean includeDelete(PropertyState before)
EventFilterincludeDelete in interface EventFilterbefore - deleted propertytrue if the property should be includedpublic boolean includeAdd(java.lang.String name,
NodeState after)
EventFilterincludeAdd in interface EventFiltername - name of the nodeafter - added nodetrue if the node should be includedpublic boolean includeDelete(java.lang.String name,
NodeState before)
EventFilterincludeDelete in interface EventFiltername - name of the nodebefore - deleted nodetrue if the node should be includedpublic boolean includeMove(java.lang.String sourcePath,
java.lang.String name,
NodeState moved)
EventFilterincludeMove in interface EventFiltersourcePath - source path of the move operationname - name of the moved nodemoved - the moved nodetrue if the node should be includedpublic boolean includeReorder(java.lang.String destName,
java.lang.String name,
NodeState reordered)
EventFilterincludeReorder in interface EventFilterdestName - name of the orderBefore() destination nodename - name of the reordered nodereordered - the reordered nodetrue if the node should be includedpublic EventFilter create(java.lang.String name, NodeState before, NodeState after)
EventFiltercreate in interface EventFiltername - name of the child nodebefore - before state of the child nodeafter - after state of the child nodenull to
exclude the sub tree rooted at this child node.Copyright © 2010 - 2023 Adobe. All Rights Reserved