Class SpacerIndexChangedEvent


  • public class SpacerIndexChangedEvent
    extends com.google.gwt.event.shared.GwtEvent<SpacerIndexChangedHandler>
    Event fired when a spacer element is moved to a new index in Escalator.
    Since:
    8.9
    Author:
    Vaadin Ltd
    • Constructor Detail

      • SpacerIndexChangedEvent

        public SpacerIndexChangedEvent​(int oldIndex,
                                       int newIndex)
        Creates a spacer index changed event.
        Parameters:
        oldIndex - old index of row to which the spacer belongs
        newIndex - new index of row to which the spacer belongs
    • Method Detail

      • getType

        public static final com.google.gwt.event.shared.GwtEvent.Type<SpacerIndexChangedHandler> getType()
        Returns the associated handler type.
        Returns:
        the handler type
      • getOldIndex

        public int getOldIndex()
        Gets the old row index to which the spacer element belongs.
        Returns:
        the old row index to which the spacer element belongs
      • getNewIndex

        public int getNewIndex()
        Gets the new row index to which the spacer element belongs.
        Returns:
        the new row index to which the spacer element belongs