Class PropReorderEvent

  • All Implemented Interfaces:
    IPostEventProcessing

    public class PropReorderEvent
    extends BubbleEvent
    Event indicating a property container has had its children properties reordered.
    Author:
    Christopher Mindus
    • Constructor Detail

      • PropReorderEvent

        public PropReorderEvent​(PropCnr container,
                                GProp<?>[] oldProperties,
                                boolean isRemoteInduced)
        Constructs a new property container event for reordering property indexes.
        Parameters:
        container - The property container who is being modified.
        oldProperties - The old property ordering.
        isRemoteInduced - Flag indicating this change is induced from a remote party.
        See Also:
        GEvent
    • Method Detail

      • getEventTarget

        public PropCnr getEventTarget()
        Returns the container that was reordered (same as "getSource()").
        Overrides:
        getEventTarget in class GEvent
        Returns:
        The property container.
      • getOldPropertyArray

        public GProp<?>[] getOldPropertyArray()
        Gets the property array before the reordering operation.
        Returns:
        the old property array.
      • isClearCacheEvent

        public boolean isClearCacheEvent()
        Returns the state for a property container if this event is received in the onEventSelf method as a helper for it would need to clear the property container cache.
        Overrides:
        isClearCacheEvent in 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:
        isVerifyEvent in class GEvent
        Returns:
        true always.