com.vaadin.client.widget.escalator.events.

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

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent

        com.google.gwt.event.shared.GwtEvent.Type<H extends Object>
    • Field Summary

      Fields
      Modifier and Type Field Description
      static com.google.gwt.event.shared.GwtEvent.Type<SpacerIndexChangedHandler> TYPE

      Handler type.

    • Constructor Summary

      Constructors
      Constructor Description
      SpacerIndexChangedEvent​(int oldIndex, int newIndex)

      Creates a spacer index changed event.

    • 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