📄 testint3.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:20 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestInt3.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.Scale;
import org.eclipse.swt.widgets.Spinner;
public class TestInt3 extends Composite
{
public Composite layout1;
public Label textLabel4;
public Spinner spinBox1;
public Label textLabel5;
public Scale slider1;
public Composite layout2;
public Label textLabel6;
public Scale slider2;
public TestInt3( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(320,130);
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.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.textLabel4 = new Label(this.layout1,SWT.RIGHT);
this.textLabel4.setText("Range - 0, 10, 2, 4:");
this.spinBox1 = new Spinner(this.layout1,SWT.BORDER);
this.spinBox1.setMaximum(10);
this.spinBox1.setIncrement(2);
this.spinBox1.setSelection(4);
this.textLabel5 = new Label(this.layout1,SWT.RIGHT);
this.textLabel5.setText("Range - 10, 40, 3, 11, 13:");
this.slider1 = new Scale(this.layout1,SWT.HORIZONTAL);
this.slider1.setMinimum(10);
this.slider1.setMaximum(40);
this.slider1.setIncrement(3);
this.slider1.setPageIncrement(11);
this.slider1.setSelection(13);
GridData l_gridData;
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
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.spinBox1.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = true;
this.textLabel5.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.slider1.setLayoutData(l_gridData);
this.layout2 = new Composite(this,SWT.NONE);
l_gridLayout = new GridLayout();
this.layout2.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.textLabel6 = new Label(this.layout2,SWT.NONE);
this.textLabel6.setText("Vertical:");
this.slider2 = new Scale(this.layout2,SWT.VERTICAL);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = true;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.textLabel6.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;
this.slider2.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);
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);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -