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

📄 testnestedlayout2.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:41 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestNestedLayout2.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 TestNestedLayout2 extends Composite
{
    public Label TextLabel1;
    public Composite Layout2;
    public Label TextLabel1_2_3;
    public Label TextLabel1_2_9;
    public Composite Layout3;
    public Label TextLabel1_2;
    public Label TextLabel1_2_2;
    public Composite Layout1;
    public Label TextLabel1_2_4;
    public Label TextLabel1_2_5;
    public Label TextLabel1_2_6;
    public Label TextLabel1_2_7;

    public TestNestedLayout2( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(188,77);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 2;
        l_gridLayout.marginLeft = 11;
        l_gridLayout.marginTop = 11;
        l_gridLayout.marginRight = 11;
        l_gridLayout.marginBottom = 11;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        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 = 0;
        l_gridLayout.marginTop = 0;
        l_gridLayout.marginRight = 0;
        l_gridLayout.marginBottom = 0;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.TextLabel1_2_3 = new Label(this.Layout2,SWT.NONE);
        this.TextLabel1_2_3.setText("Item 01 00");
        this.TextLabel1_2_9 = new Label(this.Layout2,SWT.NONE);
        this.TextLabel1_2_9.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.TextLabel1_2_3.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_2_9.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 = 0;
        l_gridLayout.marginTop = 0;
        l_gridLayout.marginRight = 0;
        l_gridLayout.marginBottom = 0;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.TextLabel1_2 = new Label(this.Layout3,SWT.NONE);
        this.TextLabel1_2.setText("Item 10 00");
        this.TextLabel1_2_2 = new Label(this.Layout3,SWT.NONE);
        this.TextLabel1_2_2.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.TextLabel1_2.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_2_2.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 = 0;
        l_gridLayout.marginTop = 0;
        l_gridLayout.marginRight = 0;
        l_gridLayout.marginBottom = 0;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.TextLabel1_2_4 = new Label(this.Layout1,SWT.NONE);
        this.TextLabel1_2_4.setText("Item 11 00");
        this.TextLabel1_2_5 = new Label(this.Layout1,SWT.NONE);
        this.TextLabel1_2_5.setText("Item 11 01");
        this.TextLabel1_2_6 = new Label(this.Layout1,SWT.NONE);
        this.TextLabel1_2_6.setText("Item 11 10");
        this.TextLabel1_2_7 = new Label(this.Layout1,SWT.NONE);
        this.TextLabel1_2_7.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.TextLabel1_2_4.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_2_5.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_2_6.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_2_7.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 + -