org.formaria.swing.docking
Class Dockable
java.lang.Object
org.formaria.swing.docking.Dockable
public class Dockable
- extends java.lang.Object
Dockable is a collection of information about a dockable component, its
decorations and its docked location(s). As the dockable object is passed
from one container to another it is the responsibility of the various
participating objects to update the state of this object.
Copyright: (c) Formaria Ltd., 2008
License: see license.txt
|
Constructor Summary |
Dockable(DockingSideBar sb,
java.lang.String title)
Creates a new instance of Dockable |
Dockable(DockingSideBar sb,
java.lang.String title,
java.lang.String constraint)
Creates a new instance of Dockable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
title
public java.lang.String title
constraint
public java.lang.String constraint
content
public java.awt.Container content
header
public DockableHeader header
dockingSideBar
public DockingSideBar dockingSideBar
launchContainer
public DockingSideBar.DockButton launchContainer
previewContainer
public DockingPreview previewContainer
dockedContainer
public DockingPanel dockedContainer
icon
public javax.swing.ImageIcon icon
state
public int state
canClose
public boolean canClose
canMinimize
public boolean canMinimize
canDock
public boolean canDock
canDrag
public boolean canDrag
canZoom
public boolean canZoom
hasDockingTitle
public boolean hasDockingTitle
Dockable
public Dockable(DockingSideBar sb,
java.lang.String title)
- Creates a new instance of Dockable
- Parameters:
sb - the sidebar to which the content docks.title - the display name of the dockable and the docking constraint of the dockable
Dockable
public Dockable(DockingSideBar sb,
java.lang.String title,
java.lang.String constraint)
- Creates a new instance of Dockable
- Parameters:
sb - the sidebar to which the content docks.title - the display name of the dockableconstraint - the docking constraint of the dockable
getId
public java.lang.String getId()
- Get the unique ID of this dockable component
- Returns:
- the ID
getCardPanel
public CardPanel getCardPanel()