Class SpacerVisibilityChangedEvent


  • public class SpacerVisibilityChangedEvent
    extends com.google.gwt.event.shared.GwtEvent<SpacerVisibilityChangedHandler>
    Event fired when a spacer element is hidden or shown in Escalator.
    Since:
    8.3.2
    Author:
    Vaadin Ltd
    • Constructor Detail

      • SpacerVisibilityChangedEvent

        public SpacerVisibilityChangedEvent​(int rowIndex,
                                            boolean visible)
        Creates a spacer visibility changed event.
        Parameters:
        rowIndex - index of row to which the spacer belongs
        visible - true if the spacer element is shown, false if the spacer element is hidden
    • Method Detail

      • getType

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

        public int getRowIndex()
        Gets the row index to which the spacer element belongs.
        Returns:
        the row index to which the spacer element belongs
      • isSpacerVisible

        public boolean isSpacerVisible()
        Gets whether the spacer element is displayed.
        Returns:
        true if the spacer element is shown, false if the spacer element is hidden