net.infonode.docking

Class AbstractTabWindow

public abstract class AbstractTabWindow extends DockingWindow

Abstract base class for windows containing a tabbed panel.

Version: $Revision: 1.72 $

Author: $Author: jesper $

Constructor Summary
protected AbstractTabWindow(boolean showContent, WindowItem windowItem)
Method Summary
protected DropActionacceptInteriorDrop(Point p, DockingWindow window)
voidaddTab(DockingWindow window)
Adds a window tab last in this tab window.
intaddTab(DockingWindow window, int index)
Inserts a window tab at an index in this tab window.
protected intaddTabNoSelect(DockingWindow window, int index)
protected booleanchildInsideTab()
protected voidclearChildrenFocus(DockingWindow child, View view)
protected voidclearFocus(View view)
protected voiddoRemoveWindow(DockingWindow window)
protected voiddoReplace(DockingWindow oldWindow, DockingWindow newWindow)
DockingWindowgetChildWindow(int index)
intgetChildWindowCount()
ListgetCustomTabAreaComponents()

Returns a list containing the custom tab area components.

IcongetIcon()
protected booleangetIgnoreSelected()
protected DockingWindowgetLocationWindow()
protected DockingWindowgetPreferredFocusChild()
DockingWindowgetSelectedWindow()
Returns the currently selected window in the tabbed panel.
protected intgetTabAreaComponentCount()
protected voidgetTabAreaComponents(int index, JComponent[] components)
protected TabbedPanelgetTabbedPanel()
abstract TabWindowPropertiesgetTabWindowProperties()
Returns the properties for this tab window.
protected voidinitMouseListener()
protected booleanisChildShowingInRootWindow(DockingWindow child)
protected booleanisInsideTabArea(Point p2)
protected DockingWindownewRead(ObjectInputStream in, ReadContext context, ViewReader viewReader)
protected DockingWindowoldRead(ObjectInputStream in, ReadContext context)
voidsetSelectedTab(int index)
Selects the tab with the index.
protected voidsetTabWindowProperties(TabWindowProperties properties)
protected voidshowChildWindow(DockingWindow window)
protected booleanshowsWindowTitle()
protected voidtabSelected(WindowTab tab)
protected voidupdateSelectedTab()
protected voidupdateTabAreaComponents()
protected voidwrite(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter)

Constructor Detail

AbstractTabWindow

protected AbstractTabWindow(boolean showContent, WindowItem windowItem)

Method Detail

acceptInteriorDrop

protected DropAction acceptInteriorDrop(Point p, DockingWindow window)

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()

clearChildrenFocus

protected void clearChildrenFocus(DockingWindow child, View view)

clearFocus

protected void clearFocus(View view)

doRemoveWindow

protected void doRemoveWindow(DockingWindow window)

doReplace

protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)

getChildWindow

public DockingWindow getChildWindow(int index)

getChildWindowCount

public int getChildWindowCount()

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

getIcon

public Icon getIcon()

getIgnoreSelected

protected final boolean getIgnoreSelected()

getLocationWindow

protected DockingWindow getLocationWindow()

getPreferredFocusChild

protected DockingWindow getPreferredFocusChild()

getSelectedWindow

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

Returns: the currently selected window in the tabbed panel

getTabAreaComponentCount

protected int getTabAreaComponentCount()

getTabAreaComponents

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

getTabbedPanel

protected TabbedPanel getTabbedPanel()

getTabWindowProperties

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

Returns: the properties for this tab window

initMouseListener

protected void initMouseListener()

isChildShowingInRootWindow

protected boolean isChildShowingInRootWindow(DockingWindow child)

isInsideTabArea

protected boolean isInsideTabArea(Point p2)

newRead

protected DockingWindow newRead(ObjectInputStream in, ReadContext context, ViewReader viewReader)

oldRead

protected DockingWindow oldRead(ObjectInputStream in, ReadContext context)

setSelectedTab

public void setSelectedTab(int index)
Selects the tab with the index.

Parameters: index the tab index

setTabWindowProperties

protected void setTabWindowProperties(TabWindowProperties properties)

showChildWindow

protected void showChildWindow(DockingWindow window)

showsWindowTitle

protected boolean showsWindowTitle()

tabSelected

protected void tabSelected(WindowTab tab)

updateSelectedTab

protected void updateSelectedTab()

updateTabAreaComponents

protected void updateTabAreaComponents()

write

protected void write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter)