/*******************************************************************************
* Copyright (c) 2011 Google, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Google, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.wb.core.controls;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTException;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Composite;
/**
* Instances of the class SelfOrientingSashForm
implement a sash form that will
* automatically reset its orientation based on the relationship between the width and height of the
* client area. This is done so that the sash form can be placed in a view that will sometimes be
* tall and narrow and sometimes be short and wide and still lay out its children in a pleasing way.
*
* * @author unknown * @author Brian Wilkerson * @version $Revision: 1.2 $ * @coverage core.control */ public class SelfOrientingSashForm extends SashForm { //////////////////////////////////////////////////////////////////////////// // // Constructors // //////////////////////////////////////////////////////////////////////////// /** * Initialize a newly created control to have the given parent and style. The style describes the * behavior and appearance of this control. *
* The style value is either one of the style constants defined in the class SWT
* which is applicable to instances of this class, or must be built by bitwise OR'ing
* together (that is, using the int
"|" operator) two or more of those
* SWT
style constants. The class description for all SWT widget classes should
* include a comment which describes the style constants which are applicable to the class.
*
true
the layout must not
* rely on any cached information it is keeping about the children. If it is false
* the layout may (potentially) simplify the work it is doing by assuming that the state of the
* none of the receiver's children has changed since the last layout. If the receiver does not
* have a layout, do nothing.
*
* @param changed
* true
if the layout must flush its caches, and false
* otherwise
*
* @exception SWTException
*