Package com.vaadin.ui

Class TabSheet.SelectedTabChangeEvent

  • All Implemented Interfaces:
    HasUserOriginated, java.io.Serializable
    Enclosing class:
    TabSheet

    public static class TabSheet.SelectedTabChangeEvent
    extends Component.Event
    implements HasUserOriginated
    Selected tab change event. This event is sent when the selected (shown) tab in the tab sheet is changed.
    Since:
    3.0
    Author:
    Vaadin Ltd.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectedTabChangeEvent​(Component source, boolean userOriginated)
      Creates a new instance of the event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TabSheet getTabSheet()
      The TabSheet where the event occurred.
      boolean isUserOriginated()
      Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SelectedTabChangeEvent

        public SelectedTabChangeEvent​(Component source,
                                      boolean userOriginated)
        Creates a new instance of the event.
        Parameters:
        source - the source of the event
        userOriginated - true if the event originates from the client side, false otherwise
        Since:
        8.1
    • Method Detail

      • getTabSheet

        public TabSheet getTabSheet()
        The TabSheet where the event occurred.
        Returns:
        the TabSheet where the event occurred
      • isUserOriginated

        public boolean isUserOriginated()
        Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.
        Specified by:
        isUserOriginated in interface HasUserOriginated
        Returns:
        true if this event originates from the client, false otherwise.
        Since:
        8.1