public abstract class AbstractOffsetPathProcessor extends DefaultStatefulProcessor<OffsetPath>
StatefulProcessor
for processing OffsetPath
objects.
Fires events from the category ContributedOffsetPathChange
when its set is changed.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractOffsetPathProcessor.ContributedOffsetPathChangeListener |
DefaultStatefulProcessor.Dispatcher<R extends ContributedObjectChange>
Processor.SpiData
StatefulProcessor.Handle
Processor.Visitor<T>
Stateful.State
state
Modifier | Constructor and Description |
---|---|
protected |
AbstractOffsetPathProcessor(StatefulProcessor<OffsetPath>[] delegates,
ToolkitContext tkContext,
Cookie cookie) |
protected |
AbstractOffsetPathProcessor(StatefulProcessor<OffsetPath> delegate,
ToolkitContext tkContext,
Cookie cookie) |
protected |
AbstractOffsetPathProcessor(ToolkitContext tkContext,
Cookie cookie) |
Modifier and Type | Method and Description |
---|---|
protected void |
addObjectChangeListeners()
Override this method to attach object listeners to contributor sources.
|
protected void |
addStateChangeListeners()
Override this method to attach state listeners to contributor source.
|
protected StatefulProcessor<OffsetPath> |
delegate() |
protected StatefulProcessor<OffsetPath>[] |
delegates() |
protected void |
dispatchObjectAddedEvent(EventHub hub,
OffsetPath object,
StatefulProcessor processor,
Context context) |
protected void |
dispatchObjectModifiedEvent(EventHub hub,
OffsetPath object,
StatefulProcessor processor,
Context context) |
protected void |
dispatchObjectRemovedEvent(EventHub hub,
OffsetPath object,
StatefulProcessor processor,
Context context) |
void |
initializeState()
Transition from 'Uninitialized' to 'Initialized'.
|
void |
invalidateState()
Transition from 'Valid' to 'Initialized' state.
|
protected static boolean |
nestedPathIsIncluded(OffsetPath offsetPath,
SelectionRules filters) |
protected Listener<ContributedOffsetPathChange> |
newContributedOffsetPathChangeListener() |
protected java.lang.Class<? extends ContributedObjectChange> |
objectChangeEventCategory()
Override this method to specify a sub-class of
ContributedObjectChange that will be used to
deliver events to listeners of this processor. |
protected static boolean |
pathIsExcluded(OffsetPath offsetPath,
SelectionRules filters) |
protected static boolean |
pathIsIncluded(OffsetPath offsetPath,
SelectionRules filters) |
protected static boolean |
pathIsNotExcluded(OffsetPath offsetPath,
SelectionRules filters) |
protected static boolean |
pathIsNotIncluded(OffsetPath offsetPath,
SelectionRules filters) |
protected abstract void |
processImpl(Processor.Visitor<OffsetPath> visitor,
Cookie cookie) |
void |
releaseState()
Release state and any resources its holding.
|
protected void |
removeObjectChangeListeners()
Overirde this method to detach object listeners from contributor sources.
|
protected void |
removeStateChangeListeners()
Override this method to remove state listeners from contributor source.
|
protected void |
setDelegates(StatefulProcessor<OffsetPath>[] delegates) |
addObjectChangeListener, addStateChangeListener, createPrivateHub, fireObjectAdded, fireObjectModified, fireObjectRemoved, fireStateChanged, fireStateInvalidated, fireStateReleased, privateHub, process, stateLockObject
getContext, getCookie, getToolkitContext
protected AbstractOffsetPathProcessor(ToolkitContext tkContext, Cookie cookie)
protected AbstractOffsetPathProcessor(StatefulProcessor<OffsetPath> delegate, ToolkitContext tkContext, Cookie cookie)
protected AbstractOffsetPathProcessor(StatefulProcessor<OffsetPath>[] delegates, ToolkitContext tkContext, Cookie cookie)
protected void setDelegates(StatefulProcessor<OffsetPath>[] delegates)
protected StatefulProcessor<OffsetPath>[] delegates()
protected StatefulProcessor<OffsetPath> delegate()
protected java.lang.Class<? extends ContributedObjectChange> objectChangeEventCategory()
DefaultStatefulProcessor
ContributedObjectChange
that will be used to
deliver events to listeners of this processor.objectChangeEventCategory
in class DefaultStatefulProcessor<OffsetPath>
protected void addObjectChangeListeners()
DefaultStatefulProcessor
addObjectChangeListeners
in class DefaultStatefulProcessor<OffsetPath>
protected void removeObjectChangeListeners()
DefaultStatefulProcessor
removeObjectChangeListeners
in class DefaultStatefulProcessor<OffsetPath>
protected void addStateChangeListeners()
DefaultStatefulProcessor
addStateChangeListeners
in class DefaultStatefulProcessor<OffsetPath>
protected void removeStateChangeListeners()
DefaultStatefulProcessor
removeStateChangeListeners
in class DefaultStatefulProcessor<OffsetPath>
public void initializeState()
Stateful
initializeState
in interface Stateful
initializeState
in class DefaultStatefulProcessor<OffsetPath>
public void releaseState()
Stateful
releaseState
in interface Stateful
releaseState
in class DefaultStatefulProcessor<OffsetPath>
public void invalidateState()
Stateful
invalidateState
in interface Stateful
invalidateState
in class DefaultStatefulProcessor<OffsetPath>
protected Listener<ContributedOffsetPathChange> newContributedOffsetPathChangeListener()
protected static boolean pathIsExcluded(OffsetPath offsetPath, SelectionRules filters)
protected static boolean pathIsNotExcluded(OffsetPath offsetPath, SelectionRules filters)
protected static boolean pathIsIncluded(OffsetPath offsetPath, SelectionRules filters)
protected static boolean pathIsNotIncluded(OffsetPath offsetPath, SelectionRules filters)
protected static boolean nestedPathIsIncluded(OffsetPath offsetPath, SelectionRules filters)
protected void dispatchObjectAddedEvent(EventHub hub, OffsetPath object, StatefulProcessor processor, Context context)
dispatchObjectAddedEvent
in class DefaultStatefulProcessor<OffsetPath>
protected void dispatchObjectModifiedEvent(EventHub hub, OffsetPath object, StatefulProcessor processor, Context context)
dispatchObjectModifiedEvent
in class DefaultStatefulProcessor<OffsetPath>
protected void dispatchObjectRemovedEvent(EventHub hub, OffsetPath object, StatefulProcessor processor, Context context)
dispatchObjectRemovedEvent
in class DefaultStatefulProcessor<OffsetPath>
protected abstract void processImpl(Processor.Visitor<OffsetPath> visitor, Cookie cookie) throws ContribException
processImpl
in class DefaultStatefulProcessor<OffsetPath>
ContribException