Class AbstractTabWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
TabWindow, WindowBar

public abstract class AbstractTabWindow extends DockingWindow
Abstract base class for windows containing a tabbed panel.
See Also:
  • Constructor Details

    • AbstractTabWindow

      protected AbstractTabWindow(boolean showContent, WindowItem windowItem)
  • Method Details

    • getTabWindowProperties

      public abstract TabWindowProperties getTabWindowProperties()
      Returns the properties for this tab window.
      Returns:
      the properties for this tab window
    • initMouseListener

      protected void initMouseListener()
    • getCustomTabAreaComponents

      public final List getCustomTabAreaComponents()

      Returns a list containing the custom tab area components. Changes to the list will be propagated to the tab area.

      The custom tab area components will between the scroll buttons and the window buttons in the tab area components panel. The components are shown in the same order as they appear in the list. The tab area components container layout is rotated with the tab window tab orientation.

      Returns:
      a list containing the custom tab area components, list elements are of type JComponent
      Since:
      IDW 1.3.0
    • getSelectedWindow

      public DockingWindow getSelectedWindow()
      Returns the currently selected window in the tabbed panel.
      Returns:
      the currently selected window in the tabbed panel
    • setSelectedTab

      public void setSelectedTab(int index)
      Selects the tab with the index.
      Parameters:
      index - the tab index
    • addTab

      public void addTab(DockingWindow window)
      Adds a window tab last in this tab window.
      Parameters:
      window - the window
    • addTab

      public int addTab(DockingWindow window, int index)
      Inserts a window tab at an index in this tab window.
      Parameters:
      window - the window
      index - the index where to insert the tab
      Returns:
      the index of the added tab, this might not be the same as index if the tab already is added to this tab window
    • addTabNoSelect

      protected int addTabNoSelect(DockingWindow window, int index)
    • isChildShowingInRootWindow

      protected boolean isChildShowingInRootWindow(DockingWindow child)
      Overrides:
      isChildShowingInRootWindow in class DockingWindow
    • showChildWindow

      protected void showChildWindow(DockingWindow window)
      Overrides:
      showChildWindow in class DockingWindow
    • childInsideTab

      protected boolean childInsideTab()
      Overrides:
      childInsideTab in class DockingWindow
      Returns:
      true if the child windows are inside tabs __exclude__
    • setTabWindowProperties

      protected void setTabWindowProperties(TabWindowProperties properties)
    • clearFocus

      protected void clearFocus(View view)
      Overrides:
      clearFocus in class DockingWindow
    • getPreferredFocusChild

      protected DockingWindow getPreferredFocusChild()
      Overrides:
      getPreferredFocusChild in class DockingWindow
    • clearChildrenFocus

      protected void clearChildrenFocus(DockingWindow child, View view)
      Overrides:
      clearChildrenFocus in class DockingWindow
    • getTabAreaComponentCount

      protected int getTabAreaComponentCount()
    • updateTabAreaComponents

      protected void updateTabAreaComponents()
    • getTabAreaComponents

      protected void getTabAreaComponents(int index, JComponent[] components)
    • getIgnoreSelected

      protected final boolean getIgnoreSelected()
    • tabSelected

      protected void tabSelected(net.infonode.docking.WindowTab tab)
    • getTabbedPanel

      protected TabbedPanel getTabbedPanel()
    • getChildWindow

      public DockingWindow getChildWindow(int index)
      Description copied from class: DockingWindow
      Returns the child window with index index.
      Specified by:
      getChildWindow in class DockingWindow
      Parameters:
      index - the child window index
      Returns:
      the child window
    • getLocationWindow

      protected DockingWindow getLocationWindow()
      Overrides:
      getLocationWindow in class DockingWindow
    • getChildWindowCount

      public int getChildWindowCount()
      Description copied from class: DockingWindow
      Returns the number of child windows.
      Specified by:
      getChildWindowCount in class DockingWindow
      Returns:
      the number of child windows
    • getIcon

      public Icon getIcon()
      Description copied from class: DockingWindow
      Returns the icon for this window.
      Specified by:
      getIcon in class DockingWindow
      Returns:
      the icon
    • doReplace

      protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)
      Specified by:
      doReplace in class DockingWindow
    • doRemoveWindow

      protected void doRemoveWindow(DockingWindow window)
      Specified by:
      doRemoveWindow in class DockingWindow
    • isInsideTabArea

      protected boolean isInsideTabArea(Point p2)
    • acceptInteriorDrop

      protected DropAction acceptInteriorDrop(Point p, DockingWindow window)
      Overrides:
      acceptInteriorDrop in class DockingWindow
    • showsWindowTitle

      protected boolean showsWindowTitle()
      Overrides:
      showsWindowTitle in class DockingWindow
    • oldRead

      protected DockingWindow oldRead(ObjectInputStream in, ReadContext context) throws IOException
      Overrides:
      oldRead in class DockingWindow
      Throws:
      IOException
    • write

      protected void write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) throws IOException
      Overrides:
      write in class DockingWindow
      Throws:
      IOException
    • newRead

      protected DockingWindow newRead(ObjectInputStream in, ReadContext context, ViewReader viewReader) throws IOException
      Throws:
      IOException
    • updateSelectedTab

      protected void updateSelectedTab()