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
 - public class PropMoveEvent extends BubbleEvent 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 Summary- Constructors - Constructor - Description - 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 Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- addAttachments(java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> attachmentsSet)Adds a set of attachments.- java.lang.Object- getAttachment(java.lang.String id)Gets an attachment.- java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>- getAttachments()Gets all attachments.- Atom- getOldAtom()Gets the old Atom, i.e.- PropCnr- getOldContainer()Gets the old property container.- GProp<?>[]- getOldContainerProps()Gets the old container properties.- 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.- boolean- isVerifyEvent()Returns if this event is a verify event for a container that processes verification.- protected java.lang.StringBuilder- paramString(java.lang.StringBuilder buf)Returns the parameter string representing the state of this event.- java.lang.Object- putAttachment(java.lang.String id, java.lang.Object attachment)Puts an attachment.- java.lang.Object- removeAttachment(java.lang.String id)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 Detail- PropMoveEvent- public 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 Detail- getOldAtom- public Atom getOldAtom() Gets the old Atom, i.e. the old name of the property before the move.- Returns:
- The old Atom.
 
 - getOldContainer- public PropCnr getOldContainer() Gets the old property container.- Returns:
- The old property container.
 
 - getOldContainerProps- public GProp<?>[] getOldContainerProps() Gets the old container properties.- Returns:
- An array of properties the old container contained before the move.
 
 - putAttachment- public java.lang.Object putAttachment(java.lang.String id, java.lang.Object attachment)Puts 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.
 
 - getAttachment- public java.lang.Object getAttachment(java.lang.String id) Gets 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.
 
 - removeAttachment- public java.lang.Object removeAttachment(java.lang.String id) Removes 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.
 
 - getAttachments- public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> getAttachments() Gets all attachments.- Returns:
- The attachments set or null for never initialized.
 
 - addAttachments- public void addAttachments(java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> attachmentsSet) Adds a set of attachments.- Parameters:
- attachmentsSet- The attachments to add, or null for none.
 
 - isClearCacheEvent- public 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.
 
 - isVerifyEvent- public boolean isVerifyEvent() Returns if this event is a verify event for a container that processes verification.- Overrides:
- isVerifyEventin class- GEvent
- Returns:
- true always.
 
 - paramString- protected java.lang.StringBuilder paramString(java.lang.StringBuilder buf) 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 class- GEvent
- Parameters:
- buf- The StringBuilder to append the string to.
- Returns:
- The StringBuilder, i.e. the bufinput parameter.