📄 testtextedit3.java
字号:
//
// This file was generated by the ui2swt tool (http://ui2swt.sourceforge.net/)
//
// Date:
// Sun Jun 17 17:26:53 EST 2007
//
// Source:
// file:/C:/Documents and Settings/James and Louisa/My Documents/Development/workspace/ui2swt/src/test/ui/TestTextEdit3.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.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
public class TestTextEdit3 extends Composite
{
public Label textLabel21;
public Label textLabel21_2;
public Text textEdit1;
public Text textEdit1_2;
public Label textLabel21_4;
public Label textLabel21_5;
public Text textEdit1_4;
public Text textEdit1_5;
public Label textLabel21_7;
public Label textLabel24;
public Text textEdit1_7;
public Label textLabel25;
public TestTextEdit3( Composite iParent, int iStyle )
{
super(iParent, iStyle);
this.setSize(544,572);
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.textLabel21 = new Label(this,SWT.NONE);
this.textLabel21.setText("Normal:");
this.textLabel21_2 = new Label(this,SWT.NONE);
this.textLabel21_2.setText("Font:");
this.textEdit1 = new Text(this,SWT.MULTI|SWT.BORDER|SWT.H_SCROLL|SWT.V_SCROLL);
this.textEdit1_2 = new Text(this,SWT.MULTI|SWT.BORDER|SWT.H_SCROLL|SWT.V_SCROLL);
this.textEdit1_2.setFont(new Font(this.textEdit1_2.getDisplay(),"TextFont8",16,SWT.BOLD|SWT.ITALIC));
this.textLabel21_4 = new Label(this,SWT.NONE);
this.textLabel21_4.setText("No Scroll Bars:");
this.textLabel21_5 = new Label(this,SWT.NONE);
this.textLabel21_5.setText("No Frame:");
this.textEdit1_4 = new Text(this,SWT.MULTI|SWT.BORDER);
this.textEdit1_5 = new Text(this,SWT.MULTI|SWT.H_SCROLL|SWT.V_SCROLL);
this.textLabel21_7 = new Label(this,SWT.NONE);
this.textLabel21_7.setText("Read Only:");
this.textLabel24 = new Label(this,SWT.NONE);
this.textLabel24.setText("");
this.textEdit1_7 = new Text(this,SWT.MULTI|SWT.BORDER|SWT.READ_ONLY|SWT.H_SCROLL|SWT.V_SCROLL);
this.textEdit1_7.setText("The quick brown fox jumped over the lazy dog.");
this.textLabel25 = new Label(this,SWT.NONE);
this.textLabel25.setText("");
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.textLabel21.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.textLabel21_2.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.textEdit1.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.textEdit1_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.textLabel21_4.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.textLabel21_5.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.textEdit1_4.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.textEdit1_5.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.textLabel21_7.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.textLabel24.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.textEdit1_7.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.textLabel25.setLayoutData(l_gridData);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -