com.vlsolutions.swing.docking

Class FloatingDialog

public class FloatingDialog extends JDialog implements FloatingDockableContainer

The floating jdialog for floatable dockables. This is the default implementation of the FloatingDockableContainer interface.

Since: 2.0

UNKNOWN: 2005/10/06 Lilian Chamontin : Reworked the layout (added border components) to have better cursor and resize management and to allow nesting dockables as tabs.

Nested Class Summary
protected classFloatingDialog.Resizer
protected classFloatingDialog.TitlePanel
Class used as a title for dragging the window around
Field Summary
protected DockingDesktopdesktop
protected inttitleHeight
the drag header height
Constructor Summary
FloatingDialog(Dialog parent)
FloatingDialog(Frame parent)
Method Summary
JComponentcreateTitlePanel()
Creates the component used as a header to drag the window
voidinit()
initialisation of the title bar
voidinstallBorders()
Installs the borders of this dialog and its title header
voidinstallDecoration()
Installs or not the window decorations on this dialog.
voidinstallDocking(DockingDesktop desktop)
voidinstallResizers()
installs the components used for resizing (on left/right/bottom borders)
voidsetInitialDockable(Dockable dockable)
voidsetInitialTabbedDockableContainer(TabbedDockableContainer tdc)

Field Detail

desktop

protected DockingDesktop desktop

titleHeight

protected int titleHeight
the drag header height

Constructor Detail

FloatingDialog

public FloatingDialog(Dialog parent)

FloatingDialog

public FloatingDialog(Frame parent)

Method Detail

createTitlePanel

public JComponent createTitlePanel()
Creates the component used as a header to drag the window

init

public void init()
initialisation of the title bar

installBorders

public void installBorders()
Installs the borders of this dialog and its title header

installDecoration

public void installDecoration()
Installs or not the window decorations on this dialog.

uses setUndecorated(booelan)

installDocking

public void installDocking(DockingDesktop desktop)

installResizers

public void installResizers()
installs the components used for resizing (on left/right/bottom borders)

Since: 2.0.1

setInitialDockable

public void setInitialDockable(Dockable dockable)

setInitialTabbedDockableContainer

public void setInitialTabbedDockableContainer(TabbedDockableContainer tdc)
© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications