📄 testcombobox2.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:03 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestComboBox2.ui
//
package ui2swt.test;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
public class TestComboBox2 extends Composite
{
public Label TextLabel8;
public Combo ComboBox1;
public Label TextLabel8_2;
public Combo ComboBox1_2;
public Label TextLabel9;
public Combo ComboBox2;
public TestComboBox2( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(244,115);
GridLayout l_gridLayout;
l_gridLayout = new GridLayout();
this.setLayout(l_gridLayout);
l_gridLayout.numColumns = 2;
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.TextLabel8 = new Label(this,SWT.RIGHT);
this.TextLabel8.setText("Normal:");
this.ComboBox1 = new Combo(this,SWT.BORDER|SWT.READ_ONLY);
this.TextLabel8_2 = new Label(this,SWT.RIGHT);
this.TextLabel8_2.setText("Normal + Editable:");
this.ComboBox1_2 = new Combo(this,SWT.BORDER);
this.TextLabel9 = new Label(this,SWT.RIGHT);
this.TextLabel9.setText("Font + Editable:");
this.ComboBox2 = new Combo(this,SWT.BORDER);
this.ComboBox2.setFont(new Font(this.ComboBox2.getDisplay(),"TextFont8",16,SWT.BOLD|SWT.ITALIC));
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.TextLabel8.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.ComboBox1.setLayoutData(l_gridData);
l_gridData = new GridData();
l_gridData.horizontalAlignment = GridData.BEGINNING;
l_gridData.grabExcessHorizontalSpace = false;
l_gridData.verticalAlignment = GridData.CENTER;
l_gridData.grabExcessVerticalSpace = true;
this.TextLabel8_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.ComboBox1_2.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.TextLabel9.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.ComboBox2.setLayoutData(l_gridData);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -