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

📄 testbutton4.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:01 EST 2007
//
// Source:
//   file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestButton4.ui
//

package ui2swt.test;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;

public class TestButton4 extends Composite
{
    public Group groupBox;
    public Button pushButton;
    public Button pushButton_3;
    public Button pushButton_4;
    public Group groupBox_2;
    public Button toolButton;
    public Button toolButton_3;
    public Button toolButton_2;
    public Button toolButton_4;
    public Group groupBox_3;
    public Button checkBox;
    public Button checkBox_2;
    public Button checkBox_3;
    public Group groupBox_4;
    public Button radioButton;
    public Button radioButton_2;
    public Button radioButton_3;

    public TestButton4( Composite iParent, int iStyle )
    {
        super(iParent, iStyle);
        this.setSize(425,377);
        GridLayout l_gridLayout;
        l_gridLayout = new GridLayout();
        this.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 1;
        l_gridLayout.marginLeft = 9;
        l_gridLayout.marginTop = 9;
        l_gridLayout.marginRight = 9;
        l_gridLayout.marginBottom = 9;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.groupBox = new Group(this,SWT.NONE);
        this.groupBox.setText("Push Buttons");
        l_gridLayout = new GridLayout();
        this.groupBox.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 3;
        l_gridLayout.marginLeft = 15;
        l_gridLayout.marginTop = 15;
        l_gridLayout.marginRight = 15;
        l_gridLayout.marginBottom = 15;
        l_gridLayout.horizontalSpacing = 15;
        l_gridLayout.verticalSpacing = 15;
        this.pushButton = new Button(this.groupBox,SWT.PUSH);
        this.pushButton.setText("Normal");
        this.pushButton_3 = new Button(this.groupBox,SWT.PUSH);
        this.pushButton_3.setFont(new Font(this.pushButton_3.getDisplay(),"MS Shell Dlg 2",16,SWT.BOLD|SWT.ITALIC));
        this.pushButton_3.setText("Font");
        this.pushButton_4 = new Button(this.groupBox,SWT.PUSH);
        this.pushButton_4.setImage(new Image(this.pushButton_4.getDisplay(),"TestImage1.png"));
        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.pushButton.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.pushButton_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.pushButton_4.setLayoutData(l_gridData);
        Label l_label1;
        l_label1 = new Label(this,SWT.NONE);
        this.groupBox_2 = new Group(this,SWT.NONE);
        this.groupBox_2.setText("Tool Buttons");
        l_gridLayout = new GridLayout();
        this.groupBox_2.setLayout(l_gridLayout);
        l_gridLayout.numColumns = 4;
        l_gridLayout.marginLeft = 9;
        l_gridLayout.marginTop = 9;
        l_gridLayout.marginRight = 9;
        l_gridLayout.marginBottom = 9;
        l_gridLayout.horizontalSpacing = 6;
        l_gridLayout.verticalSpacing = 6;
        this.toolButton = new Button(this.groupBox_2,SWT.TOGGLE);
        this.toolButton.setText("Normal");
        this.toolButton_3 = new Button(this.groupBox_2,SWT.TOGGLE);
        this.toolButton_3.setSelection(true);
        this.toolButton_3.setText("Toggled");
        this.toolButton_2 = new Button(this.groupBox_2,SWT.TOGGLE);
        this.toolButton_2.setFont(new Font(this.toolButton_2.getDisplay(),"MS Shell Dlg 2",16,SWT.BOLD|SWT.ITALIC));
        this.toolButton_2.setText("Font");
        this.toolButton_4 = new Button(this.groupBox_2,SWT.TOGGLE);
        this.toolButton_4.setImage(new Image(this.toolButton_4.getDisplay(),"TestImage1.png"));
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.toolButton.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.toolButton_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.toolButton_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.toolButton_4.setLayoutData(l_gridData);
        Label l_label2;
        l_label2 = new Label(this,SWT.NONE);
        this.groupBox_3 = new Group(this,SWT.NONE);
        this.groupBox_3.setText("Check Boxes");
        l_gridLayout = new GridLayout();
        this.groupBox_3.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;
        this.checkBox = new Button(this.groupBox_3,SWT.CHECK);
        this.checkBox.setSelection(true);
        this.checkBox.setText("CheckBox 1");
        this.checkBox_2 = new Button(this.groupBox_3,SWT.CHECK);
        this.checkBox_2.setText("CheckBox 2");
        this.checkBox_3 = new Button(this.groupBox_3,SWT.CHECK);
        this.checkBox_3.setText("CheckBox 3");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.checkBox.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.checkBox_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.checkBox_3.setLayoutData(l_gridData);
        Label l_label3;
        l_label3 = new Label(this,SWT.NONE);
        this.groupBox_4 = new Group(this,SWT.NONE);
        this.groupBox_4.setText("Radio Buttons");
        l_gridLayout = new GridLayout();
        this.groupBox_4.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;
        this.radioButton = new Button(this.groupBox_4,SWT.RADIO);
        this.radioButton.setSelection(true);
        this.radioButton.setText("RadioButton 1");
        this.radioButton_2 = new Button(this.groupBox_4,SWT.RADIO);
        this.radioButton_2.setText("RadioButton 2");
        this.radioButton_3 = new Button(this.groupBox_4,SWT.RADIO);
        this.radioButton_3.setText("RadioButton 3");
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.CENTER;
        l_gridData.grabExcessVerticalSpace = true;
        this.radioButton.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.radioButton_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.radioButton_3.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = false;
        this.groupBox.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_label1.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = false;
        this.groupBox_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_label2.setLayoutData(l_gridData);
        l_gridData = new GridData();
        l_gridData.horizontalAlignment = GridData.FILL;
        l_gridData.grabExcessHorizontalSpace = true;
        l_gridData.verticalAlignment = GridData.FILL;
        l_gridData.grabExcessVerticalSpace = false;
        this.groupBox_3.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.FILL;
        l_gridData.grabExcessVerticalSpace = false;
        this.groupBox_4.setLayoutData(l_gridData);
    }
}

⌨️ 快捷键说明

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