Package com.iizix.event
Class PropCnrEvent
java.lang.Object
com.iizix.event.GEvent
com.iizix.event.BubbleEvent
com.iizix.event.PropCnrEvent
- All Implemented Interfaces:
IPostEventProcessing
Event indicating a property container has had a property added or removed.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class com.iizix.event.GEvent
GEvent.OperationField Summary
Fields inherited from class com.iizix.event.GEvent
PROP_ADDED, PROP_ATTR_CHANGED, PROP_CNR_ADDED, PROP_CNR_FOCUS, PROP_CNR_MOVED, PROP_CNR_RENAMED, PROP_DESIGNER_ASSET_CHANGED, PROP_DESIGNER_JAVA_CLASS_CHANGED, PROP_DESIGNER_JAVA_METHOD_RENAMED, PROP_DESIGNER_KSTRING, PROP_DESIGNER_VIEWER_UPDATE, PROP_DESIGNER_VS_REFERENCE, PROP_DISPOSED, PROP_FOCUS, PROP_MOVED_FROM, PROP_MOVED_TO, PROP_PROJECT_RENAMED, PROP_QUERY_DESIGNER_PROPS, PROP_REFRESH, PROP_REMOVED, PROP_RENAMED, PROP_REORDERED, PROP_RESOLVE_REFERENCES_DIRECT, PROP_VALUE_CHANGED, REMOTEConstructor Summary
ConstructorsConstructorDescriptionPropCnrEvent(int eventID, PropCnr container, GProp<?> property, int index, IGProp<?> trigger, PropMgr propMgr) Constructs a new property container event.PropCnrEvent(int eventID, PropCnr container, GProp<?> property, int index, PropMgr propMgr) Constructs a new property container event.Method Summary
Modifier and TypeMethodDescriptionGets the container that got the property added or removed.GProp<?> Gets the event owner.intgetIndex()Gets the index of the property.GProp<?> Gets the property being added or removed.Gets the (remote) Property Manager that caused the remote event.GProp<?> Gets the trigger of the container property change.booleanReturns the state for a property container if this event is received in theonEventSelfmethod as a helper for it would need to clear the property container cache.booleanisPropertyChange(IGProp<?> property) Checks if the event is a property value change.booleanisPropertyChange(PropCnr pc, Atom name) Checks if the event is a modification change of any property in the specified container.booleanisPropertyChange(PropCnr pc, String name) Checks if the event is a modification change of any property in the specified container.booleanReturns if this event is a verify event for a container that processes verification.protected StringBuilderparamString(StringBuilder buf) Returns the parameter string representing the state of this event.Methods inherited from class com.iizix.event.BubbleEvent
getOperationsMethods inherited from class com.iizix.event.GEvent
addPostProcessor, cancel, consume, getAlternateDestination, getEventID, getEventName, getEventName, getOperation, getPostProcessors, getSender, getSource, isCancelled, isConsumed, isEventProcessed, isPropertyChangeIn, isPropertyChangeInTree, isRefreshEvent, isRemoteInduced, send, send, sendSelf, setInitialProperty, setOperation, setProgressMonitor, toString
Constructor Details
PropCnrEvent
Constructs a new property container event.- Parameters:
eventID- The event ID, seeGEvent.PROP_*.container- The property container who is being modified.property- The property being added or removed.index- The index of the property added or it had when it was removed.propMgr- The remote Property Manager, null for local.- See Also:
PropCnrEvent
public PropCnrEvent(int eventID, PropCnr container, GProp<?> property, int index, IGProp<?> trigger, PropMgr propMgr) Constructs a new property container event.- Parameters:
eventID- The event ID, seeGEvent.PROP_*.container- The property container who is being modified.property- The property being added or removed.index- The index of the property added or it had when it was removed.trigger- The trigger property, null for none.propMgr- Flag indicating this change is induced from a remote party.- See Also:
Method Details
getRemotePropMgr
Gets the (remote) Property Manager that caused the remote event.- Returns:
- The Property Manager,
nullif not remote.
getIndex
public int getIndex()Gets the index of the property.- Returns:
- The index of the property it had when removed, and it has when added.
getContainer
Gets the container that got the property added or removed.getProperty
Gets the property being added or removed.- Returns:
- the property being added or removed.
getTrigger
Gets the trigger of the container property change.- Overrides:
getTriggerin classGEvent- Returns:
- The property that triggered this event, null for none.
getEventTarget
Gets the event owner. The owner is the one the message relates to e.g. the property for value change or the property being added or removed for property container events.- Overrides:
getEventTargetin classGEvent- Returns:
- The Generic Property for the event, the source, or originator.
isPropertyChange
Checks if the event is a property value change.- Overrides:
isPropertyChangein classGEvent- Parameters:
property- The property.- Returns:
- true if the property just got changed in the container due to this event, false otherwise.
isPropertyChange
Checks if the event is a modification change of any property in the specified container.- Overrides:
isPropertyChangein classGEvent- Parameters:
pc- The property container.name- The property name to check for change.- Returns:
- true if the property just got changed in the container due to this event, false otherwise.
isPropertyChange
Checks if the event is a modification change of any property in the specified container.- Overrides:
isPropertyChangein classGEvent- Parameters:
pc- The property container.name- The property name to check for change.- Returns:
- true if the property just got changed in the container due to this event, false otherwise.
isClearCacheEvent
public boolean isClearCacheEvent()Returns the state for a property container if this event is received in theonEventSelfmethod as a helper for it would need to clear the property container cache.- Overrides:
isClearCacheEventin classGEvent- Returns:
- true, always for this event.
isVerifyEvent
public boolean isVerifyEvent()Returns if this event is a verify event for a container that processes verification.- Overrides:
isVerifyEventin classGEvent- Returns:
- true always.
paramString
Returns the parameter string representing the state of this event. This string is useful for debugging. Super classes adds extra information to the string by preceding it with a comma followed by the extra information.- Overrides:
paramStringin classGEvent- Parameters:
buf- The StringBuilder to append the string to.- Returns:
- The StringBuilder, i.e. the
bufinput parameter.