⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testspacer4.java

📁 A translator that converts Qt Designer UI files into SWT java classes. Use the power of Qt Designer
💻 JAVA
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
//   Sun Jun 17 17:26:47 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestSpacer4.ui
//

package ui2swt.test;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

public class TestSpacer4 extends Composite
{
    public Label label;
    public Label label_3;
    public Label label_2;
    public Label label_4;

    public TestSpacer4( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(180,90);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 3;
        l_gridLayout.marginLeft = 9;
        l_gridLayout.marginTop = 9;
        l_gridLayout.marginRight = 9;
        l_gridLayout.marginBottom = 9;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        Composite l_composite1;
        l_composite1 = new Composite(this,SWT.NONE);
        l_gridLayout = new GridLayout();
        l_composite1.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        l_gridLayout.marginLeft = 0;
        l_gridLayout.marginTop = 0;
        l_gridLayout.marginRight = 0;
        l_gridLayout.marginBottom = 0;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.label = new Label(l_composite1,SWT.NONE);
        this.label.setText("Top Left");
        Label l_label1;
        l_label1 = new Label(l_composite1,SWT.NONE);
        this.label_3 = new Label(l_composite1,SWT.NONE);
        this.label_3.setText("Bottom Left");
        GridData l_gridData;
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.BEGINNING;
        l_gridData.grabExcessHorizontalSpace = false;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = false;
        l_gridData.minimumWidth = 1;
        l_gridData.minimumHeight = 1;
        this.label.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.BEGINNING;
        l_gridData.grabExcessHorizontalSpace = false;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        l_label1.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = false;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = false;
        this.label_3.setLayoutData(l_gridData);
        Label l_label2;
        l_label2 = new Label(this,SWT.NONE);
        Composite l_composite2;
        l_composite2 = new Composite(this,SWT.NONE);
        l_gridLayout = new GridLayout();
        l_composite2.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        l_gridLayout.marginLeft = 0;
        l_gridLayout.marginTop = 0;
        l_gridLayout.marginRight = 0;
        l_gridLayout.marginBottom = 0;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.label_2 = new Label(l_composite2,SWT.NONE);
        this.label_2.setText("Top Right");
        Label l_label3;
        l_label3 = new Label(l_composite2,SWT.NONE);
        this.label_4 = new Label(l_composite2,SWT.NONE);
        this.label_4.setText("Bottom Right");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = false;
        this.label_2.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.BEGINNING;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        l_label3.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = false;
        this.label_4.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = false;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        l_composite1.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        l_label2.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = false;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        l_composite2.setLayoutData(l_gridData);
    }
}

⌨️ 快捷键说明

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