statuslinelayoutdata.java

来自「jfa2ce 源码帮助开发人员更好的理解运用」· Java 代码 · 共 54 行

JAVA
54
字号
/******************************************************************************* * 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();    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?