Class TabClosedEvent

  • All Implemented Interfaces:
    Serializable

    public class TabClosedEvent
    extends EventObject
    Event that gets sent when a tab gets closed.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_TabIndex

        protected int m_TabIndex
        the index of the removed tab.
      • m_Component

        protected Component m_Component
        the component that got removed.
    • Constructor Detail

      • TabClosedEvent

        public TabClosedEvent​(BaseTabbedPane tabbedPane,
                              int tabIndex,
                              Component component)
        Constructs a prototypical Event.
        Parameters:
        tabbedPane - the tabbed pane that sent the event
        tabIndex - the index of the tab that got removed
        component - the component that got removed with the tab
        Throws:
        IllegalArgumentException - if source is null
    • Method Detail

      • getTabbedPane

        public BaseTabbedPane getTabbedPane()
        Returns the tabbed pane that triggered the event.
        Returns:
        the pane
      • getTabIndex

        public int getTabIndex()
        Returns the index of the removed tab.
        Returns:
        the index
      • getComponent

        public Component getComponent()
        Returns the component that got removed.
        Returns:
        the component