Class SpacerIndexChangedEvent
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<SpacerIndexChangedHandler>
-
- com.vaadin.client.widget.escalator.events.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>TYPEHandler type.
-
Constructor Summary
Constructors Constructor Description SpacerIndexChangedEvent(int oldIndex, int newIndex)Creates a spacer index changed event.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(SpacerIndexChangedHandler handler)com.google.gwt.event.shared.GwtEvent.Type<SpacerIndexChangedHandler>getAssociatedType()intgetNewIndex()Gets the new row index to which the spacer element belongs.intgetOldIndex()Gets the old row index to which the spacer element belongs.static com.google.gwt.event.shared.GwtEvent.Type<SpacerIndexChangedHandler>getType()Returns the associated handler type.-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
-
-
-
Field Detail
-
TYPE
public static final com.google.gwt.event.shared.GwtEvent.Type<SpacerIndexChangedHandler> TYPE
Handler type.
-
-
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
-
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<SpacerIndexChangedHandler> getAssociatedType()
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<SpacerIndexChangedHandler>
-
dispatch
protected void dispatch(SpacerIndexChangedHandler handler)
- Specified by:
dispatchin classcom.google.gwt.event.shared.GwtEvent<SpacerIndexChangedHandler>
-
-