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

📄 testtabwidget2.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:48 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestTabWidget2.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 TestTabWidget2 extends Composite
{
    public TabFolder TabWidget2;
    public Composite TabWidget2Tab0;
    public Label TextLabel4_2;
    public Composite TabWidget2Tab1;
    public Label TextLabel4;

    public TestTabWidget2( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(143,84);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        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.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 = 11;
        l_gridLayout.marginTop = 11;
        l_gridLayout.marginRight = 11;
        l_gridLayout.marginBottom = 11;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.TextLabel4_2 = new Label(this.TabWidget2Tab0,SWT.NONE);
        this.TextLabel4_2.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.TextLabel4_2.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 = 11;
        l_gridLayout.marginTop = 11;
        l_gridLayout.marginRight = 11;
        l_gridLayout.marginBottom = 11;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.TextLabel4 = new Label(this.TabWidget2Tab1,SWT.NONE);
        this.TextLabel4.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.TextLabel4.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -