com.vlsolutions.swing.docking

Class DockablePanel

Implemented Interfaces:
Dockable

public class DockablePanel
extends JPanel
implements Dockable

A basic implementation of Dockable.

It's a JPanel with a BorderLayout, and it can display a single Dockable.

This class is provided as an intermediary between a User Component and the docking desktop (for example, for application that don't want to be too tied with the DockingFramework).

Constructor Summary

DockablePanel()
DockablePanel(Component contained, DockKey key)

Method Summary

Component
getComponent()
DockKey
getDockKey()
void
setComponent(Component comp)
Removes all contained components (normally no more than one), and put this comp on the center area of the BorderLayout.
void
setDockKey(DockKey key)

Constructor Details

DockablePanel

public DockablePanel()

DockablePanel

public DockablePanel(Component contained,
                     DockKey key)

Method Details

getComponent

public Component getComponent()
Specified by:
getComponent in interface Dockable

getDockKey

public DockKey getDockKey()
Specified by:
getDockKey in interface Dockable

setComponent

public void setComponent(Component comp)
Removes all contained components (normally no more than one), and put this comp on the center area of the BorderLayout.

setDockKey

public void setDockKey(DockKey key)

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