Package com.iizix.event
Class PropValueEvent
java.lang.Object
com.iizix.event.GEvent
com.iizix.event.BubbleEvent
com.iizix.event.PropValueEvent
- All Implemented Interfaces:
- IPostEventProcessing
The event that indicates that a property has been set for the first time or when it has been changed.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class com.iizix.event.GEvent- GEvent.Operation
- Field 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, REMOTE
- Constructor SummaryConstructorsConstructorDescription- PropValueEvent- (GProp<?> property, Object newValue, Object oldValue) Constructs a new non-remote local property value event.- PropValueEvent- (GProp<?> property, Object newValue, Object oldValue, IGProp<?> trigger) Constructs a new non-remote property value event.- PropValueEvent- (GProp<?> property, Object newValue, Object oldValue, IGProp<?> trigger, PropMgr propMgr) Constructs a new remote property value event.- PropValueEvent- (GProp<?> property, Object newValue, Object oldValue, PropMgr propMgr) Constructs a new remote property value event.
- Method SummaryModifier and TypeMethodDescriptionGets the new value.Gets the old value.Gets the (remote) Property Manager that caused the remote event.- GProp<?>Gets the trigger of the value change.- booleanReturns the state for a property container if this event is received in the- onEventSelfmethod as a helper for it would need to clear the property container cache.- boolean- isPropertyChange- (IGProp<?> property) Checks if the event is a property value change.- boolean- isPropertyChange- (PropCnr pc, Atom name) Checks if the event is a modification change of any property in the specified container.- boolean- isPropertyChange- (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 StringBuilder- paramString- (StringBuilder buf) Returns the parameter string representing the state of this event.- Methods inherited from class com.iizix.event.BubbleEvent- getOperations- Methods inherited from class com.iizix.event.GEvent- addPostProcessor, cancel, consume, getAlternateDestination, getEventID, getEventName, getEventName, getEventTarget, getOperation, getPostProcessors, getSender, getSource, isCancelled, isConsumed, isEventProcessed, isPropertyChangeIn, isPropertyChangeInTree, isRefreshEvent, isRemoteInduced, send, send, sendSelf, setInitialProperty, setOperation, setProgressMonitor, toString
- Constructor Details- PropValueEventConstructs a new remote property value event.- Parameters:
- property- The property instance being changed or initialized.
- newValue- The new value.
- oldValue- The old value or null if previously uninitialized.
- propMgr- The property manager, must be non-null.
 
- PropValueEventpublic PropValueEvent- (GProp<?> property, Object newValue, Object oldValue, IGProp<?> trigger, PropMgr propMgr) Constructs a new remote property value event.- Parameters:
- property- The property instance being changed or initialized.
- newValue- The new value.
- oldValue- The old value or null if previously uninitialized.
- trigger- The trigger property, null for none.
- propMgr- The property manager, must be non-null.
 
- PropValueEventConstructs a new non-remote local property value event.- Parameters:
- property- The property instance being changed or initialized.
- newValue- The new value.
- oldValue- The old value or null if previously uninitialized.
 
- PropValueEventConstructs a new non-remote property value event.- Parameters:
- property- The property instance being changed or initialized.
- newValue- The new value.
- oldValue- The old value or null if previously uninitialized.
- trigger- The trigger property, null for none.
 
 
- Method Details- getRemotePropMgrGets the (remote) Property Manager that caused the remote event.- Returns:
- The Property Manager, nullif not remote.
 
- getNewValueGets the new value.- Returns:
- the new value, could be null.
 
- getOldValueGets the old value.- Returns:
- old value or null if previously uninitialized.
 
- getTriggerGets the trigger of the value change.- Overrides:
- getTriggerin class- GEvent
- Returns:
- The property that triggered this event, null for none.
 
- isPropertyChangeChecks if the event is a property value change.- Overrides:
- isPropertyChangein class- GEvent
- Parameters:
- property- The property.
- Returns:
- true if the property just got changed in the container due to this event, false otherwise.
 
- isPropertyChangeChecks if the event is a modification change of any property in the specified container.- Overrides:
- isPropertyChangein class- GEvent
- 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.
 
- isPropertyChangeChecks if the event is a modification change of any property in the specified container.- Overrides:
- isPropertyChangein class- GEvent
- 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.
 
- isClearCacheEventpublic boolean isClearCacheEvent()Returns the state for a property container if this event is received in the- onEventSelfmethod as a helper for it would need to clear the property container cache.- Overrides:
- isClearCacheEventin class- GEvent
- Returns:
- true, always for this event.
 
- isVerifyEventpublic boolean isVerifyEvent()Returns if this event is a verify event for a container that processes verification.- Overrides:
- isVerifyEventin class- GEvent
- Returns:
- true always.
 
- paramStringReturns 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 class- GEvent
- Parameters:
- buf- The StringBuilder to append the string to.
- Returns:
- The StringBuilder, i.e. the bufinput parameter.