Class TabAdapter

  • All Implemented Interfaces:
    TabListener

    public class TabAdapter
    extends java.lang.Object
    implements TabListener
    An adapter class for receiving events from a TabbedPanel or a Tab. The methods in this class are empty and it's purpose is to make it easier to create listeners when not all events are of interest.
    See Also:
    TabbedPanel
    • Constructor Detail

      • TabAdapter

        public TabAdapter()
    • Method Detail

      • tabAdded

        public void tabAdded​(TabEvent event)
        Description copied from interface: TabListener
        Called when a tab is added or inserted to a TabbedPanel
        Specified by:
        tabAdded in interface TabListener
        Parameters:
        event - the event
      • tabRemoved

        public void tabRemoved​(TabRemovedEvent event)
        Description copied from interface: TabListener
        Called when a tab is removed from a TabbedPanel
        Specified by:
        tabRemoved in interface TabListener
        Parameters:
        event - the event
      • tabDragged

        public void tabDragged​(TabDragEvent event)
        Description copied from interface: TabListener
        Called when a tab is dragged.
        Specified by:
        tabDragged in interface TabListener
        Parameters:
        event - the event
      • tabDropped

        public void tabDropped​(TabDragEvent event)
        Description copied from interface: TabListener
        Called when a tab is dropped.
        Specified by:
        tabDropped in interface TabListener
        Parameters:
        event - the event
      • tabDragAborted

        public void tabDragAborted​(TabEvent event)
        Description copied from interface: TabListener
        Called when an ongoing tab drag is aborted.
        Specified by:
        tabDragAborted in interface TabListener
        Parameters:
        event - the event
      • tabDeselected

        public void tabDeselected​(TabStateChangedEvent event)
        Description copied from interface: TabListener

        Called when a tab is deselected.

        Note: The event contains information about the previously selected tab and the current selected tab.

        Specified by:
        tabDeselected in interface TabListener
        Parameters:
        event - the event
      • tabDehighlighted

        public void tabDehighlighted​(TabStateChangedEvent event)
        Description copied from interface: TabListener

        Called when a tab is dehighlighted.

        Note: The event contains information about the previously highlighted tab and the current selected tab.

        Specified by:
        tabDehighlighted in interface TabListener
        Parameters:
        event - the event
      • tabMoved

        public void tabMoved​(TabEvent event)
        Description copied from interface: TabListener
        Called when a tab is moved, i.e. dragged to another position in the tab area
        Specified by:
        tabMoved in interface TabListener
        Parameters:
        event - the event