Class TabEditingEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class TabEditingEvent
    extends java.awt.AWTEvent
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int TAB_EDITING_CANCELLED  
      static int TAB_EDITING_STARTED
      The first number in the range of IDs used for TabChangeEvent.
      static int TAB_EDITING_STOPPED  
      • Fields inherited from class java.awt.AWTEvent

        ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      TabEditingEvent​(java.lang.Object source, int id, int tabIndex)  
      TabEditingEvent​(java.lang.Object source, int id, int tabIndex, java.lang.String oldTitle, java.lang.String newTitle)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNewTitle()
      The new title after tab editing.
      java.lang.String getOldTitle()
      Gets the old the title.
      int getTabIndex()
      Gets the tab index where the tab editing happened.
      • Methods inherited from class java.awt.AWTEvent

        consume, getID, isConsumed, paramString, setSource, toString
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

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

      • TAB_EDITING_STARTED

        public static final int TAB_EDITING_STARTED
        The first number in the range of IDs used for TabChangeEvent.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TabEditingEvent

        public TabEditingEvent​(java.lang.Object source,
                               int id,
                               int tabIndex)
      • TabEditingEvent

        public TabEditingEvent​(java.lang.Object source,
                               int id,
                               int tabIndex,
                               java.lang.String oldTitle,
                               java.lang.String newTitle)
    • Method Detail

      • getTabIndex

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

        public java.lang.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 java.lang.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.