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

📄 testnestedlayout3.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:42 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestNestedLayout3.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 TestNestedLayout3 extends Composite
{
    public Label textLabel1;
    public Composite layout2;
    public Label textLabel4;
    public Label textLabel5;
    public Composite layout3;
    public Label textLabel2;
    public Label textLabel3;
    public Composite layout1;
    public Label textLabel6;
    public Label textLabel7;
    public Label textLabel8;
    public Label textLabel9;

    public TestNestedLayout3( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(227,86);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 2;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.textLabel1 = new Label(this,SWT.NONE);
        this.textLabel1.setText("Item 00");
        this.layout2 = new Composite(this,SWT.NONE);
        l_gridLayout = new GridLayout();
        this.layout2.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 2;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.textLabel4 = new Label(this.layout2,SWT.NONE);
        this.textLabel4.setText("Item 01 00");
        this.textLabel5 = new Label(this.layout2,SWT.NONE);
        this.textLabel5.setText("Item 01 01");
        GridData l_gridData;
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel4.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;
        this.textLabel5.setLayoutData(l_gridData);
        this.layout3 = new Composite(this,SWT.NONE);
        l_gridLayout = new GridLayout();
        this.layout3.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.textLabel2 = new Label(this.layout3,SWT.NONE);
        this.textLabel2.setText("Item 10 00");
        this.textLabel3 = new Label(this.layout3,SWT.NONE);
        this.textLabel3.setText("Item 10 10");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel2.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;
        this.textLabel3.setLayoutData(l_gridData);
        this.layout1 = new Composite(this,SWT.NONE);
        l_gridLayout = new GridLayout();
        this.layout1.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 2;
        l_gridLayout.marginLeft = 5;
        l_gridLayout.marginTop = 5;
        l_gridLayout.marginRight = 5;
        l_gridLayout.marginBottom = 5;
        l_gridLayout.horizontalSpacing = 5;
        l_gridLayout.verticalSpacing = 5;
        this.textLabel6 = new Label(this.layout1,SWT.NONE);
        this.textLabel6.setText("Item 11 00");
        this.textLabel7 = new Label(this.layout1,SWT.NONE);
        this.textLabel7.setText("Item 11 01");
        this.textLabel8 = new Label(this.layout1,SWT.NONE);
        this.textLabel8.setText("Item 11 10");
        this.textLabel9 = new Label(this.layout1,SWT.NONE);
        this.textLabel9.setText("Item 11 11");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel6.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;
        this.textLabel7.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;
        this.textLabel8.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;
        this.textLabel9.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;
        this.textLabel1.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        this.layout2.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        this.layout3.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        this.layout1.setLayoutData(l_gridData);
    }
}

⌨️ 快捷键说明

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