com.vlsolutions.swing.docking

Class DockViewAsTab

Implemented Interfaces:
DockableContainer, DockDropReceiver, SingleDockableContainer
Known Direct Subclasses:
MaximizedDockViewAsTab

public class DockViewAsTab
extends DockView
implements SingleDockableContainer

This component is used to display single dockables like if they were in a tabbed pane.

Please note this component is still in its early stages and might change in future releases.

To use it, just install the TabFactory as DockableContainerFactory

Since:
2.1.3
See Also:
TabFactory

Nested Class Summary

protected class
DockViewAsTab.TabHeader

Field Summary

protected AbstractAction
closeAction
protected SmartIconJButton
closeSmartIcon
protected AbstractAction
floatAction
protected SmartIconJButton
floatSmartIcon
protected AbstractAction
hideAction
protected SmartIconJButton
hideSmartIcon
protected boolean
isAttachButtonDisplayed
protected boolean
isCloseButtonDisplayed
protected boolean
isDockButtonDisplayed
protected boolean
isFloatButtonDisplayed
protected boolean
isHideButtonDisplayed
protected boolean
isMaximizeButtonDisplayed
protected boolean
isRestoreButtonDisplayed
protected AbstractAction
maximizeAction
protected SmartIconJButton
maximizeSmartIcon
protected JTabbedPaneSmartIcon
smartIcon
smart icon used to display the title
protected DockViewAsTab.TabHeader
tabHeader
The tab container in which the components are added
protected JTabbedPaneSmartIconManager
tpManager
smart icon manager

Fields inherited from class com.vlsolutions.swing.docking.DockView

desktop, dockable, lastDropGeneralPath, lastDropShape, title

Constructor Summary

DockViewAsTab(Dockable dockable)
Constructs a new DockView for the given dockable.

Method Summary

void
closePopUp()
This method is invoked to hide the pop-up that could still be visible (To avoid a visible pop-up for an invisible component)
protected void
configureCloseButton()
protected void
configureFloatButton()
protected void
configureHideButton()
protected void
configureMaximizeButton()
protected DockViewAsTab.TabHeader
createTabHeader()
String
getUIClassID()
protected void
initAutoHidePopUp(JPopupMenu popup)
protected void
initDockedPopUp(JPopupMenu popup)
protected void
initFloatingPopUp(JPopupMenu popup)
Init the popup displayed as the title bar contextual menu
protected void
initMaximizedPopUp(JPopupMenu popup)
Init the popup displayed as the title bar contextual menu
void
installDocking(DockingDesktop desktop)
protected void
maximizeAction()
void
resetTabIcons()
void
setDockable(Dockable d)
Adds the dockable's component to this DockView.
void
setDockableAsTab(Dockable d)
void
uninstallDocking(DockingDesktop desktop)

Methods inherited from class com.vlsolutions.swing.docking.DockView

buildPathForTab, getDockable, getTitleBar, getUIClassID, installDocking, processDockableDrag, processDockableDrop, scanDrop, setDockable, toString, uninstallDocking

Field Details

closeAction

protected AbstractAction closeAction

closeSmartIcon

protected SmartIconJButton closeSmartIcon

floatAction

protected AbstractAction floatAction

floatSmartIcon

protected SmartIconJButton floatSmartIcon

hideAction

protected AbstractAction hideAction

hideSmartIcon

protected SmartIconJButton hideSmartIcon

isAttachButtonDisplayed

protected boolean isAttachButtonDisplayed

isCloseButtonDisplayed

protected boolean isCloseButtonDisplayed

isDockButtonDisplayed

protected boolean isDockButtonDisplayed

isFloatButtonDisplayed

protected boolean isFloatButtonDisplayed

isHideButtonDisplayed

protected boolean isHideButtonDisplayed

isMaximizeButtonDisplayed

protected boolean isMaximizeButtonDisplayed

isRestoreButtonDisplayed

protected boolean isRestoreButtonDisplayed

maximizeAction

protected AbstractAction maximizeAction

maximizeSmartIcon

protected SmartIconJButton maximizeSmartIcon

smartIcon

protected JTabbedPaneSmartIcon smartIcon
smart icon used to display the title

tabHeader

protected DockViewAsTab.TabHeader tabHeader
The tab container in which the components are added

tpManager

protected JTabbedPaneSmartIconManager tpManager
smart icon manager

Constructor Details

DockViewAsTab

public DockViewAsTab(Dockable dockable)
Constructs a new DockView for the given dockable.
Parameters:
dockable - the dockable to show

Method Details

closePopUp

public void closePopUp()
This method is invoked to hide the pop-up that could still be visible (To avoid a visible pop-up for an invisible component)

configureCloseButton

protected void configureCloseButton()

configureFloatButton

protected void configureFloatButton()

configureHideButton

protected void configureHideButton()

configureMaximizeButton

protected void configureMaximizeButton()

createTabHeader

protected DockViewAsTab.TabHeader createTabHeader()

getUIClassID

public String getUIClassID()
Overrides:
getUIClassID in interface DockView
Since:
2.0

initAutoHidePopUp

protected void initAutoHidePopUp(JPopupMenu popup)

initDockedPopUp

protected void initDockedPopUp(JPopupMenu popup)

initFloatingPopUp

protected void initFloatingPopUp(JPopupMenu popup)
Init the popup displayed as the title bar contextual menu

initMaximizedPopUp

protected void initMaximizedPopUp(JPopupMenu popup)
Init the popup displayed as the title bar contextual menu

installDocking

public void installDocking(DockingDesktop desktop)
Specified by:
installDocking in interface DockableContainer
Overrides:
installDocking in interface DockView

maximizeAction

protected void maximizeAction()

resetTabIcons

public void resetTabIcons()

setDockable

public void setDockable(Dockable d)
Adds the dockable's component to this DockView.
Overrides:
setDockable in interface DockView
Parameters:

setDockableAsTab

public void setDockableAsTab(Dockable d)

uninstallDocking

public void uninstallDocking(DockingDesktop desktop)
Specified by:
uninstallDocking in interface DockableContainer
Overrides:
uninstallDocking in interface DockView

© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications