Package com.iizix.event
Class PropMoveEvent
java.lang.Object
com.iizix.event.GEvent
com.iizix.event.BubbleEvent
com.iizix.event.PropMoveEvent
- All Implemented Interfaces:
- IPostEventProcessing
The event that indicates that a property container has been moved to another container.
- 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- PropMoveEvent- (int eventID, GProp<?> property, Atom oldAtom, PropCnr oldContainer, GProp<?>[] oldContainerProps) Constructs a new move event for a property that is moved and renamed at the same time.
- Method SummaryModifier and TypeMethodDescription- void- addAttachments- (Set<Map.Entry<String, - Object>> attachmentsSet) Adds a set of attachments.- getAttachment- (String id) Gets an attachment.Gets all attachments.Gets the old Atom, i.e.Gets the old property container.- GProp<?>[]Gets the old container properties.- 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.- 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.- putAttachment- (String id, Object attachment) Puts an attachment.Removes an attachment.- 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, getTrigger, isCancelled, isConsumed, isEventProcessed, isPropertyChange, isPropertyChange, isPropertyChange, isPropertyChangeIn, isPropertyChangeInTree, isRefreshEvent, isRemoteInduced, send, send, sendSelf, setInitialProperty, setOperation, setProgressMonitor, toString
- Constructor Details- PropMoveEventpublic PropMoveEvent- (int eventID, GProp<?> property, Atom oldAtom, PropCnr oldContainer, GProp<?>[] oldContainerProps) Constructs a new move event for a property that is moved and renamed at the same time. This event is typically used for drag-drop scenarios where the target accepts the moved items but there is a name-clash that is resolved by changing the name during the move operation from the old to the new container.- Parameters:
- eventID- The event ID: PROP_MOVE_FROM or PROP_MOVED_TO.
- property- The property instance being changed or initialized.
- oldAtom- The old name of the property.
- oldContainer- The old container that used to house the property.
- oldContainerProps- The old container properties before the move.
 
 
- Method Details- getOldAtomGets the old Atom, i.e. the old name of the property before the move.- Returns:
- The old Atom.
 
- getOldContainerGets the old property container.- Returns:
- The old property container.
 
- getOldContainerPropsGets the old container properties.- Returns:
- An array of properties the old container contained before the move.
 
- putAttachmentPuts an attachment. This attachment is transported from the first move event to the second by the move operation, i.e. a class that processes both events can transport data to itself using this mechanism.- Parameters:
- id- The ID of the attachment.
- attachment- The attachment object.
- Returns:
- A previous attachment for the id, or null for none.
 
- getAttachmentGets an attachment. This attachment is transported from the first move event to the second by the move operation, i.e. a class that processes both events can transport data to itself using this mechanism.- Parameters:
- id- The ID of the attachment.
- Returns:
- An attachment for the id, or null if not found.
 
- removeAttachmentRemoves an attachment. This attachment is transported from the first move event to the second by the move operation, i.e. a class that processes both events can transport data to itself using this mechanism.- Parameters:
- id- The ID of the attachment.
- Returns:
- The removed attachment for the id, or null if not found.
 
- getAttachmentsGets all attachments.- Returns:
- The attachments set or null for never initialized.
 
- addAttachmentsAdds a set of attachments.- Parameters:
- attachmentsSet- The attachments to add, or null for none.
 
- 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.