KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > action > StatusLineLayoutData


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jface.action;
13
14 import org.eclipse.swt.SWT;
15
16 /**
17  * Represents the layout data object for <code>Control</code> within the status line.
18  * To set a <code>StatusLineLayoutData</code> object into a <code>Control</code>, use
19  * the <code>setLayoutData()</code> method.
20  * <p>
21  * NOTE: Do not reuse <code>StatusLineLayoutData</code> objects. Every control in the
22  * status line must have a unique <code>StatusLineLayoutData</code> instance or
23  * <code>null</code>.
24  * </p>
25  *
26  * @since 2.1
27  */

28 public class StatusLineLayoutData {
29     /**
30      * The <code>widthHint</code> specifies a minimum width for
31      * the <code>Control</code>. A value of <code>SWT.DEFAULT</code>
32      * indicates that no minimum width is specified.
33      *
34      * The default value is <code>SWT.DEFAULT</code>.
35      */

36     public int widthHint = SWT.DEFAULT;
37
38     /**
39      * The <code>heightHint</code> specifies a minimum height for
40      * the <code>Control</code>. A value of <code>SWT.DEFAULT</code>
41      * indicates that no minimum height is specified.
42      *
43      * The default value is <code>SWT.DEFAULT</code>.
44      */

45     public int heightHint = SWT.DEFAULT;
46
47     /**
48      * Creates an initial status line layout data object.
49      */

50     public StatusLineLayoutData() {
51         super();
52     }
53 }
54
Popular Tags