org.eclipse.jface.action.StatusLineLayoutData.java Source code

Java tutorial

Introduction

Here is the source code for org.eclipse.jface.action.StatusLineLayoutData.java

Source

/*******************************************************************************
 * Copyright (c) 2000, 2015 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * 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();
    }
}