Class AbstractTabWindow

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    Direct Known Subclasses:
    TabWindow, WindowBar

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

      • AbstractTabWindow

        protected AbstractTabWindow​(boolean showContent,
                                    WindowItem windowItem)
    • Method Detail

      • 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 java.util.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)
      • 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)
      • getTabAreaComponentCount

        protected int getTabAreaComponentCount()
      • updateTabAreaComponents

        protected void updateTabAreaComponents()
      • getTabAreaComponents

        protected void getTabAreaComponents​(int index,
                                            javax.swing.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
      • 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 javax.swing.Icon getIcon()
        Description copied from class: DockingWindow
        Returns the icon for this window.
        Specified by:
        getIcon in class DockingWindow
        Returns:
        the icon
      • isInsideTabArea

        protected boolean isInsideTabArea​(java.awt.Point p2)
      • write

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

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

        protected void updateSelectedTab()