com.vlsolutions.swing.docking

Class FloatingDialog

Implemented Interfaces:
FloatingDockableContainer

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

Nested Class Summary

protected class
FloatingDialog.Resizer
protected class
FloatingDialog.TitlePanel
Class used as a title for dragging the window around

Field Summary

protected DockingDesktop
desktop
protected int
titleHeight
the drag header height

Constructor Summary

FloatingDialog(Dialog parent)
FloatingDialog(Frame parent)

Method Summary

JComponent
createTitlePanel()
Creates the component used as a header to drag the window
void
init()
initialisation of the title bar
void
installBorders()
Installs the borders of this dialog and its title header
void
installDecoration()
Installs or not the window decorations on this dialog.
void
installDocking(DockingDesktop desktop)
void
installResizers()
installs the components used for resizing (on left/right/bottom borders)
void
setInitialDockable(Dockable dockable)
void
setInitialTabbedDockableContainer(TabbedDockableContainer tdc)

Field Details

desktop

protected DockingDesktop desktop

titleHeight

protected int titleHeight
the drag header height

Constructor Details

FloatingDialog

public FloatingDialog(Dialog parent)

FloatingDialog

public FloatingDialog(Frame parent)

Method Details

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)
Specified by:
installDocking in interface FloatingDockableContainer

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)
Specified by:
setInitialDockable in interface FloatingDockableContainer

setInitialTabbedDockableContainer

public void setInitialTabbedDockableContainer(TabbedDockableContainer tdc)
Specified by:
setInitialTabbedDockableContainer in interface FloatingDockableContainer

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