testtabwidget3.java

来自「A translator that converts Qt Designer U」· Java 代码 · 共 96 行

JAVA
96
字号
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
//   Sun Jun 17 17:26:49 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestTabWidget3.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;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

public class TestTabWidget3 extends Composite
{
    public TabFolder tabWidget2;
    public Composite tabWidget2Tab0;
    public Label textLabel17;
    public Composite tabWidget2Tab1;
    public Label textLabel18;

    public TestTabWidget3( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(161,90);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.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.tabWidget2 = new TabFolder(this,SWT.TOP);
        this.tabWidget2Tab0 = new Composite(this.tabWidget2,SWT.NONE);
        l_gridLayout = new GridLayout();
        this.tabWidget2Tab0.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.textLabel17 = new Label(this.tabWidget2Tab0,SWT.NONE);
        this.textLabel17.setText("Tab Page 1");
        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.textLabel17.setLayoutData(l_gridData);
        TabItem l_tabItem;
        l_tabItem = new TabItem(this.tabWidget2,SWT.NONE);
        l_tabItem.setText("Page 1");
        l_tabItem.setControl(this.tabWidget2Tab0);
        this.tabWidget2Tab1 = new Composite(this.tabWidget2,SWT.NONE);
        l_gridLayout = new GridLayout();
        this.tabWidget2Tab1.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.textLabel18 = new Label(this.tabWidget2Tab1,SWT.NONE);
        this.textLabel18.setText("Tab Page 2");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.textLabel18.setLayoutData(l_gridData);
        l_tabItem = new TabItem(this.tabWidget2,SWT.NONE);
        l_tabItem.setText("Page 2");
        l_tabItem.setControl(this.tabWidget2Tab1);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = true;
        this.tabWidget2.setLayoutData(l_gridData);
    }
}

⌨️ 快捷键说明

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