Description
DockingFrames is an open source Java Swing docking framework that allows you to work with dockable frames.
Installation
The current version of griffon-docking-frame-plugin is 0.4
To install just issue the following command
With 0.4 full support of the commons-library is available
The following nodes will become available on a View script upon installing this plugin.
For all nodes, the id attribute is used as uid where appropriate.
If a node is a child of dockingArea, contentArea, gridArea and workingArea the attribute constraints will be used as an id for a dynamically created dockable.
Node (Type) |
Property |
Type |
Default |
Required |
Bindable |
Notes |
|---|---|---|---|---|---|---|
dockingControl (CControl) |
groupBehaviour |
String or CGroupBehavior |
|
|
|
|
|
language |
Locale |
|
|
|
|
|
maximizeArea |
String |
|
|
id of the area |
|
|
missingPerspectiveStrategy |
MissingPerspectiveStrategy |
|
|
|
|
|
missingStrategy |
MissingCDockableStrategy |
|
|
|
|
|
preferenceModel |
PreferenceModel |
|
|
|
|
|
revertToBasicModes |
boolean |
|
|
|
|
|
theme |
String |
|
|
basic, bubble, eclipse, flat, smooth |
|
dockingArea (CContentArea) |
all as javax.swing.JPanel |
|
|
|
|
|
|
control |
CControlAccess |
|
|
|
|
|
minimumAreaSize |
List or Dimension |
|
|
|
|
|
perspective |
String |
'default' |
|
name of the perspective |
|
contentArea (CContentArea) |
all as javax.swing.JPanel |
|
|
|
|
|
|
control |
CControlAccess |
|
|
|
|
|
minimumAreaSize |
List or Dimension |
|
|
|
|
|
perspective |
String |
'default' |
|
name of the perspective |
|
minimizeArea (CMinimizeArea) |
all as javax.swing.JPanel |
|
|
|
|
|
|
control |
CControlAccess |
|
|
|
|
|
direction |
String |
|
|
auto, north, south, east, west |
|
gridArea (CGridArea) |
|
|
|
|
|
|
|
control |
CControlAccess |
|
|
|
|
|
focusComponent |
Component |
|
|
|
|
|
maximizingArea |
boolean |
|
|
|
|
|
minimizedHold |
boolean |
|
|
|
|
|
minimizedHoldSwitchable |
boolean |
|
|
|
|
|
minimizedSize |
List or Dimension |
|
|
|
|
|
resizeLocked |
boolean |
|
|
|
|
|
resizeLockedHorizontally |
boolean |
|
|
|
|
|
resizeLockedVertically |
boolean |
|
|
|
|
|
singleTabShown |
boolean |
|
|
|
|
|
titleIcon |
Icon |
|
|
|
|
|
titleShown |
boolean |
|
|
|
|
|
titleText |
String |
|
|
|
|
|
visible |
boolean |
|
|
|
|
|
workingArea |
CStation |
|
|
|
|
workingArea (CWorkingArea) |
|
|
|
|
|
|
|
control |
CControlAccess |
|
|
|
|
|
focusComponent |
Component |
|
|
|
|
|
maximizingArea |
boolean |
|
|
|
|
|
minimizedHold |
boolean |
|
|
|
|
|
minimizedHoldSwitchable |
boolean |
|
|
|
|
|
minimizedSize |
List or Dimension |
|
|
|
|
|
resizeLocked |
boolean |
|
|
|
|
|
resizeLockedHorizontally |
boolean |
|
|
|
|
|
resizeLockedVertically |
boolean |
|
|
|
|
|
singleTabShown |
boolean |
|
|
|
|
|
titleIcon |
Icon |
|
|
|
|
|
titleShown |
boolean |
|
|
|
|
|
titleText |
String |
|
|
|
|
|
visible |
boolean |
|
|
|
|
|
workingArea |
CStation |
|
|
|
|
dockable (DefaultSingleCDockable) |
|
|
|
|
|
|
|
closeable |
boolean |
|
|
|
|
|
control |
CControlAccess |
|
|
|
|
|
externalizable |
boolean |
|
|
|
|
|
focusComponent |
Component |
|
|
|
|
|
layout |
LayoutManager |
|
|
|
|
|
maximizable |
boolean |
|
|
|
|
|
minimizable |
boolean |
|
|
|
|
|
minimizedHold |
boolean |
|
|
|
|
|
minimizedHoldSwitchable |
boolean |
|
|
|
|
|
minimizedSize |
List or Dimension |
|
|
|
|
|
resizeLocked |
boolean |
|
|
|
|
|
resizeLockedHorizontally |
boolean |
|
|
|
|
|
resizeLockedVertically |
boolean |
|
|
|
|
|
singleTabShown |
boolean |
|
|
|
|
|
stackable |
boolean |
|
|
|
|
|
titleIcon |
Icon |
|
|
|
|
|
titleShown |
boolean |
|
|
|
|
|
titleText |
String |
|
|
|
|
|
titleToolTip |
String |
|
|
|
|
|
visible |
boolean |
|
|
|
|
|
workingArea |
CStation |
|
|
|
|
dockableFactory (SingleCDockableFactory) |
filter |
bibliothek.util.Filter or String or String[] or Collection<String> |
|
|
|
|
|
data |
Map |
|
|
a map containing uid-SingleCDockable-pairs or uid-Closure-pairs creating a SingleCDockable |
|
mvcGroupFactory (SingleCDockableFactory) |
filter |
bibliothek.util.Filter or String or String[] or Collection<String> |
|
|
dynamically creating SingleCDockables from mvcGroups reffered by their mvcName |
|
multiFactory (MultipleCDockable) |
MultipleCDockable |
|
|
Just a wrapper around a given MultipleCDockable as value |
||
placeholder (SingleCDockablePerspective) |
|
|
|
|
|
|
multiPlaceholder (MultipleCDockablePerspective) |
factory |
String |
|
|
factory id |
|
|
layout |
MultipleCDockableLayout |
|
|
|
|
rootMenuPiece (RootMenuPiece) |
all as javax.swing.JMenu |
|
|
|
|
|
|
disableWhenEmpty |
boolean |
|
|
|
|
subMenuPiece (RootMenuPiece) |
all as javax.swing.JMenu |
|
|
|
|
|
|
disableWhenEmpty |
boolean |
|
|
|
|
nodeMenuPiece (NodeMenuPiece) |
|
|
|
|
|
|
separatingMenuPiece (SeparatingMenuPiece) |
|
|
|
|
|
|
|
bottomSeparator |
boolean |
|
|
|
|
|
emptySeparator |
boolean |
|
|
|
|
|
topSeparator |
boolean |
|
|
|
|
menuPiece (MenuPiece) |
MenuPiece |
|
|
|
||
dockableListMenuPiece (SingleCDockableListMenuPiece) |
control |
CControlAccess |
|
|
|
|
themeMenuPiece (CThemeMenuPiece) |
control |
CControlAccess |
|
|
|
|
|
themes |
ThemeMap |
|
|
|
|
|
transferTheme |
boolean |
|
|
|
|
preferenceMenuPiece (CPreferenceMenuPiece) |
control |
CControlAccess |
|
|
|
|
|
model |
PreferenceModel |
|
|
|
|
lookAndFeelMenuPiece (CLookAndFeelMenuPiece) |
control |
CControlAccess |
|
|
|
|
layoutMenuPiece (CLayoutChoiceMenuPiece) |
control |
CControlAccess |
|
|
|
|
|
submenu |
boolean |
|
|
List of layouts as submenu |
|
dockingAction (CAction) value |
CAction |
|
|
|
||
blankAction (CBlank) |
|
|
|
|
|
|
buttonAction (CButton) |
accelerator |
String or KeyStroke |
|
|
|
|
|
disabledIcon |
Icon |
|
|
|
|
|
dropDownSelectable |
boolean |
|
|
|
|
|
dropDownTriggerableNotSelected |
boolean |
|
|
|
|
|
dropDownTriggerableSelected |
boolean |
|
|
|
|
|
enabled |
boolean |
|
|
|
|
|
icon |
Icon |
|
|
|
|
|
text |
String |
|
|
|
|
|
tooltip |
String |
|
|
|
|
|
closure |
Closure |
|
|
triggered when clicked |
|
|
listener |
ActionListener |
|
|
|
|
checkBoxAction (CCheckBox) |
accelerator |
String or KeyStroke |
|
|
|
|
|
disabledIcon |
Icon |
|
|
|
|
|
dropDownSelectable |
boolean |
|
|
|
|
|
dropDownTriggerableNotSelected |
boolean |
|
|
|
|
|
dropDownTriggerableSelected |
boolean |
|
|
|
|
|
enabled |
boolean |
|
|
|
|
|
icon |
Icon |
|
|
|
|
|
text |
String |
|
|
|
|
|
tooltip |
String |
|
|
|
|
|
closure |
Closure |
|
|
triggered when changed |
|
dropDownButtonAction (CCheckBox) |
accelerator |
String or KeyStroke |
|
|
|
|
|
disabledIcon |
Icon |
|
|
|
|
|
dropDownSelectable |
boolean |
|
|
|
|
|
dropDownTriggerableNotSelected |
boolean |
|
|
|
|
|
dropDownTriggerableSelected |
boolean |
|
|
|
|
|
enabled |
boolean |
|
|
|
|
|
icon |
Icon |
|
|
|
|
|
text |
String |
|
|
|
|
|
tooltip |
String |
|
|
|
|
menuAction (CMenu) |
accelerator |
String or KeyStroke |
|
|
|
|
|
disabledIcon |
Icon |
|
|
|
|
|
dropDownSelectable |
boolean |
|
|
|
|
|
dropDownTriggerableNotSelected |
boolean |
|
|
|
|
|
dropDownTriggerableSelected |
boolean |
|
|
|
|
|
enabled |
boolean |
|
|
|
|
|
icon |
Icon |
|
|
|
|
|
text |
String |
|
|
|
|
|
tooltip |
String |
|
|
|
|
popupAction (CPanelPopup) |
accelerator |
String or KeyStroke |
|
|
|
|
|
disabledIcon |
Icon |
|
|
|
|
|
dropDownSelectable |
boolean |
|
|
|
|
|
dropDownTriggerableNotSelected |
boolean |
|
|
|
|
|
dropDownTriggerableSelected |
boolean |
|
|
|
|
|
enabled |
boolean |
|
|
|
|
|
icon |
Icon |
|
|
|
|
|
text |
String |
|
|
|
|
|
tooltip |
String |
|
|
|
|
|
buttonBehavior |
String or ButtonBehavior |
|
|
|
|
|
closeOnFocusLost |
boolean |
|
|
|
|
|
content |
JComponent |
|
|
|
|
|
menuBehavior |
String or MenuBehavior |
|
|
|
|
radioButtonAction (CRadioButton) |
accelerator |
String or KeyStroke |
|
|
|
|
|
disabledIcon |
Icon |
|
|
|
|
|
dropDownSelectable |
boolean |
|
|
|
|
|
dropDownTriggerableNotSelected |
boolean |
|
|
|
|
|
dropDownTriggerableSelected |
boolean |
|
|
|
|
|
enabled |
boolean |
|
|
|
|
|
icon |
Icon |
|
|
|
|
|
text |
String |
|
|
|
|
|
tooltip |
String |
|
|
|
|
|
closure |
Closure |
|
|
triggered when changed |
|
|
group |
String or CRadioGroup |
|
|
|
|
separatorAction (CSeparator) |
type |
String |
|
|
|
'', 'menu' or 'title' |
systemAction (CAction) |
name |
String |
|
|
|
minimize, maximize, normalize, externalize, unexternalize, unmaximize_externalized, close, hold |
|
replacement |
CAction |
|
|
|
The nodes that are children of dockingArea, contentArea, gridArea and workingArea the following properties are valid:
Property |
Type |
Default |
Required |
Bindable |
Notes |
|---|---|---|---|---|---|
dock |
Collection or CContentArea or CGridArea |
|
Collection in a form of x, y, w, h |
||
dockMinimized |
String or CMinimizedArea |
|
|
north, south, east, west |
|
dockExternalized |
Collection |
|
|
in a form of [] |
|
dockState |
String or ExtendedMode |
|
|
minimized, maximized, normalized, externalized |
The nodes that are children of dropDownButtonAction the following properties are valid:
Property |
Type |
Default |
Required |
Bindable |
Notes |
|---|---|---|---|---|---|
selection |
boolean |
|
|
|
Example
History
Version |
Date |
Notes |
|---|---|---|
0.4 |
08-01-11 |
DockingFrame Version 1.1.1p4a with commons-support |
0.3 |
02-24-11 |
Release sync with Griffon 0.9.2 |
0.2 |
07-23-10 |
Release sync with Griffon 0.9 |
0.1 |
05-31-10 |
Initial release |
The Docking Frames Plugin was originally created by the Hackergarten programming group, at the Canoo Engineering AG world headquarters in Basel Switzerland.
Enhanced for commons-support by Alexander Klein.


