//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2017 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//	  http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
package de.esoco.process.ui.container;

import de.esoco.lib.property.Layout;

import de.esoco.process.ui.Container;
import de.esoco.process.ui.LayoutContainer;


/********************************************************************
 * A panel that layouts components on the four edges around it's center area.
 *
 * @author eso
 */
public class DockPanel extends LayoutContainer<DockPanel>
{
	//~ Constructors -----------------------------------------------------------

	/***************************************
	 * Creates a new instance.
	 *
	 * @param rParent The parent container
	 */
	public DockPanel(Container<?> rParent)
	{
		super(rParent, Layout.DOCK);
	}
}

@@ -908,16 +908,58 @@
 .Layout;
+%0Aimport de.esoco.lib.property.Orientation;
 %0A%0Aimport
@@ -1035,16 +1035,79 @@
 ainer;%0A%0A
+import static de.esoco.lib.property.StyleProperties.VERTICAL;%0A%0A
 %0A/******
@@ -1215,25 +1215,16 @@
 the 
-four 
 edges 
-around
+of
  it'
@@ -1492,16 +1492,21 @@
 rParent 
+     
 The pare
@@ -1518,16 +1518,80 @@
 ntainer%0A
+%09 * @param eOrientation bVertical TRUE for vertical orientation%0A
 %09 */%0A%09pu
@@ -1625,16 +1625,42 @@
  rParent
+, Orientation eOrientation
 )%0A%09%7B%0A%09%09s
@@ -1686,14 +1686,85 @@
 t.DOCK);
+%0A%0A%09%09if (eOrientation == Orientation.VERTICAL)%0A%09%09%7B%0A%09%09%09set(VERTICAL);%0A%09%09%7D
 %0A%09%7D%0A%7D%0A

Add classes for simplified building of process UIs