Class ParentCnrMoveEvent

All Implemented Interfaces:
IPostEventProcessing

public class ParentCnrMoveEvent extends SinkEvent
Event used to send to all children of a moved container in a sinking non-bubbling form.
Author:
Christopher Mindus
  • Constructor Details

    • ParentCnrMoveEvent

      public ParentCnrMoveEvent(PropCnr movedContainer, Atom oldAtom, PropCnr oldContainer)
      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:
      movedContainer - The property container instance being moved.
      oldAtom - The old name of the property.
      oldContainer - The old container that used to house the property container.
  • Method Details

    • getOldAtom

      public Atom getOldAtom()
      Gets the old Atom, i.e. the old name of the property container before the move.
      Returns:
      The old Atom.
    • getOldContainer

      public PropCnr getOldContainer()
      Gets the old property container.
      Returns:
      The old property container.
    • isVerifyEvent

      public boolean isVerifyEvent()
      Returns if this event is a verify event for a container that processes verification.
      Overrides:
      isVerifyEvent in class GEvent
      Returns:
      true always.
    • paramString

      protected StringBuilder paramString(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:
      paramString in class GEvent
      Parameters:
      buf - The StringBuilder to append the string to.
      Returns:
      The StringBuilder, i.e. the buf input parameter.