Class TabEditingEvent

java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.jidesoft.swing.TabEditingEvent
All Implemented Interfaces:
Serializable

public class TabEditingEvent extends AWTEvent
See Also:
  • Field Details

    • TAB_EDITING_STARTED

      public static final int TAB_EDITING_STARTED
      The first number in the range of IDs used for TabChangeEvent.
      See Also:
    • TAB_EDITING_STOPPED

      public static final int TAB_EDITING_STOPPED
      See Also:
    • TAB_EDITING_CANCELLED

      public static final int TAB_EDITING_CANCELLED
      See Also:
  • Constructor Details

    • TabEditingEvent

      public TabEditingEvent(Object source, int id, int tabIndex)
    • TabEditingEvent

      public TabEditingEvent(Object source, int id, int tabIndex, String oldTitle, String newTitle)
  • Method Details

    • getTabIndex

      public int getTabIndex()
      Gets the tab index where the tab editing happened.
      Returns:
      the tab index.
    • getOldTitle

      public String getOldTitle()
      Gets the old the title. If the event is to indicate the tab editing is started, this will be the current title. If tab editing is cancelled, it will still be the current title.
      Returns:
      the old title.
    • getNewTitle

      public String getNewTitle()
      The new title after tab editing. If the event is to indicate the tab editing is started, this will be null. If tab editing is cancelled, it will be the same as the getOldTitle.
      Returns:
      the new title.