📄 testspacer3.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:46 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestSpacer3.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;
public class TestSpacer3 extends Composite
{
public Composite layout1;
public Label textLabel13;
public Label spacer1;
public Label textLabel15;
public Label spacer3;
public Composite layout2;
public Label textLabel14;
public Label spacer2;
public Label textLabel16;
public TestSpacer3( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(224,108);
GridLayout l_gridLayout;
l_gridLayout = new GridLayout();
this.setLayout(l_gridLayout);
l_gridLayout.numColumns = 3;
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 = 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.textLabel13 = new Label(this.layout1,SWT.NONE);
this.textLabel13.setText("Top Left");
this.spacer1 = new Label(this.layout1,SWT.NONE);
this.textLabel15 = new Label(this.layout1,SWT.NONE);
this.textLabel15.setText("Bottom Left");
GridData 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.textLabel13.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.spacer1.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.textLabel15.setLayoutData(l_gridData);
this.spacer3 = new Label(this,SWT.NONE);
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.textLabel14 = new Label(this.layout2,SWT.NONE);
this.textLabel14.setText("Top Right");
this.spacer2 = new Label(this.layout2,SWT.NONE);
this.textLabel16 = new Label(this.layout2,SWT.NONE);
this.textLabel16.setText("Bottom Right");
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = true;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = false;
this.textLabel14.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.spacer2.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.textLabel16.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
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.CENTER;
l_gridData.grabExcessVerticalSpace = true;
this.spacer3.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.FILL;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.FILL;
l_gridData.grabExcessVerticalSpace = true;
this.layout2.setLayoutData(l_gridData);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -