📄 testprogressbar4.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:45 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestProgressBar4.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.ProgressBar;
public class TestProgressBar4 extends Composite
{
public Label label;
public ProgressBar progressBar;
public Label label_2;
public ProgressBar progressBar_2;
public Label label_3;
public ProgressBar progressBar_3;
public TestProgressBar4( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(400,300);
GridLayout l_gridLayout;
l_gridLayout = new GridLayout();
this.setLayout(l_gridLayout);
l_gridLayout.numColumns = 2;
l_gridLayout.marginLeft = 9;
l_gridLayout.marginTop = 9;
l_gridLayout.marginRight = 9;
l_gridLayout.marginBottom = 9;
l_gridLayout.horizontalSpacing = 6;
l_gridLayout.verticalSpacing = 6;
Composite l_composite1;
l_composite1 = new Composite(this,SWT.NONE);
l_gridLayout = new GridLayout();
l_composite1.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.label = new Label(l_composite1,SWT.NONE);
this.label.setText("Default:");
this.progressBar = new ProgressBar(l_composite1,SWT.HORIZONTAL);
this.label_2 = new Label(l_composite1,SWT.NONE);
this.label_2.setText("Min 10, Max 110, Value 30:");
this.progressBar_2 = new ProgressBar(l_composite1,SWT.HORIZONTAL);
this.progressBar_2.setMinimum(10);
this.progressBar_2.setMaximum(110);
this.progressBar_2.setSelection(30);
GridData l_gridData;
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.label.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = true;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.progressBar.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.label_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 = false;
this.progressBar_2.setLayoutData(l_gridData);
Composite l_composite2;
l_composite2 = new Composite(this,SWT.NONE);
l_gridLayout = new GridLayout();
l_composite2.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.label_3 = new Label(l_composite2,SWT.NONE);
this.label_3.setText("Vertical:");
this.progressBar_3 = new ProgressBar(l_composite2,SWT.VERTICAL);
this.progressBar_3.setSelection(24);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.label_3.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.BEGINNING;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.FILL;
l_gridData.grabExcessVerticalSpace = true;
this.progressBar_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 = true;
l_composite1.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;
l_composite2.setLayoutData(l_gridData);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -