Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e48e9c60bb047de15c638cccd0501cad15de958e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2000, 2005 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
 *******************************************************************************/

package org.eclipse.jface.action;

import org.eclipse.swt.SWT;

/**
 * Represents the layout data object for <code>Control</code> within the status line.
 * To set a <code>StatusLineLayoutData</code> object into a <code>Control</code>, use
 * the <code>setLayoutData()</code> method. 
 * <p>
 * NOTE: Do not reuse <code>StatusLineLayoutData</code> objects. Every control in the
 * status line must have a unique <code>StatusLineLayoutData</code> instance or
 * <code>null</code>.
 * </p>
 * 
 * @since 2.1
 */
public class StatusLineLayoutData {
    /**
     * The <code>widthHint</code> specifies a minimum width for
     * the <code>Control</code>. A value of <code>SWT.DEFAULT</code>
     * indicates that no minimum width is specified.
     *
     * The default value is <code>SWT.DEFAULT</code>.
     */
    public int widthHint = SWT.DEFAULT;

    /**
     * The <code>heightHint</code> specifies a minimum height for
     * the <code>Control</code>. A value of <code>SWT.DEFAULT</code>
     * indicates that no minimum height is specified.
     *
     * The default value is <code>SWT.DEFAULT</code>.
     */
    public int heightHint = SWT.DEFAULT;

    /**
     * Creates an initial status line layout data object.
     */
    public StatusLineLayoutData() {
        super();
    }
}

Back to the top