org.eclipse.swt.layout.GridData

Copyright (c) 2000, 2008 IBM Corporation and others. 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: IBM Corporation - initial API and implementation Port to the D programming language: Frank Benoit <benoit@tionex.de>

Members

Classes

GridData
class GridData

<code>GridData</code> is the layout data object associated with <code>GridLayout</code>. To set a <code>GridData</code> object into a control, you use the <code>Control.setLayoutData(Object)</code> method. <p> There are two ways to create a <code>GridData</code> object with certain fields set. The first is to set the fields directly, like this: <pre> GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; button1.setLayoutData(gridData); </pre> The second is to take advantage of convenience style bits defined by <code>GridData</code>: <pre> button1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); </pre> </p> <p> NOTE: Do not reuse <code>GridData</code> objects. Every control in a <code>Composite</code> that is managed by a <code>GridLayout</code> must have a unique <code>GridData</code> object. If the layout data for a control in a <code>GridLayout</code> is null at layout time, a unique <code>GridData</code> object is created for it. </p>

Meta