net.infonode.docking

Class WindowBar

public class WindowBar extends AbstractTabWindow

A window bar is located at the edge of a root window. It's a tabbed panel where the content panel is dynamically shown and hidden. A window bar is enabled and disabled using the Component#setEnabled method.

Version: $Revision: 1.68 $

Author: $Author: jesper $

Method Summary
protected booleanacceptsSplitWith(DockingWindow window)
protected intaddTabNoSelect(DockingWindow window, int index)
protected voidclearFocus(View view)
protected PropertyMapcreatePropertyObject()
intgetContentPanelSize()
Returns the size of the content panel.
DirectiongetDirection()
Returns the window bar direction in the root window it is a member of
DimensiongetPreferredSize()
protected PropertyMapgetPropertyObject()
RootWindowgetRootWindow()
TabWindowPropertiesgetTabWindowProperties()
WindowBarPropertiesgetWindowBarProperties()
Returns the property values for this window bar.
protected booleanisInsideTabArea(Point p2)
booleanisMinimized()
protected DockingWindownewRead(ObjectInputStream in, ReadContext context, ViewReader viewReader)
protected DockingWindowoldRead(ObjectInputStream in, ReadContext context)
voidsetContentPanelSize(int size)
Sets the size of the content panel.
protected voidshowChildWindow(DockingWindow window)
protected voidtabSelected(WindowTab tab)
protected voidupdate()
protected voidwrite(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter)

Method Detail

acceptsSplitWith

protected boolean acceptsSplitWith(DockingWindow window)

addTabNoSelect

protected int addTabNoSelect(DockingWindow window, int index)

clearFocus

protected void clearFocus(View view)

createPropertyObject

protected PropertyMap createPropertyObject()

getContentPanelSize

public int getContentPanelSize()
Returns the size of the content panel. If the window bar is located on the left or right side, the panel width is returned otherwise the panel height.

Returns: the size of the content panel

getDirection

public Direction getDirection()
Returns the window bar direction in the root window it is a member of

Returns: window bar direction in root window

Since: IDW 1.4.0

getPreferredSize

public Dimension getPreferredSize()

getPropertyObject

protected PropertyMap getPropertyObject()

getRootWindow

public RootWindow getRootWindow()

getTabWindowProperties

public TabWindowProperties getTabWindowProperties()

getWindowBarProperties

public WindowBarProperties getWindowBarProperties()
Returns the property values for this window bar.

Returns: the property values for this window bar

isInsideTabArea

protected boolean isInsideTabArea(Point p2)

isMinimized

public boolean isMinimized()

newRead

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

oldRead

protected DockingWindow oldRead(ObjectInputStream in, ReadContext context)

setContentPanelSize

public void setContentPanelSize(int size)
Sets the size of the content panel. If the window bar is located on the left or right side, the panel width is set otherwise the panel height.

Parameters: size the content panel size

showChildWindow

protected void showChildWindow(DockingWindow window)

tabSelected

protected void tabSelected(WindowTab tab)

update

protected void update()

write

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