本文整理汇总了Java中org.eclipse.swt.widgets.Button.setBounds方法的典型用法代码示例。如果您正苦于以下问题:Java Button.setBounds方法的具体用法?Java Button.setBounds怎么用?Java Button.setBounds使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.widgets.Button
的用法示例。
在下文中一共展示了Button.setBounds方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createGroupVisibility
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
private void createGroupVisibility() {
GridData gridData = new org.eclipse.swt.layout.GridData();
gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
groupVisibility = new Group(this, SWT.NONE);
groupVisibility.setText("Mask value in");
groupVisibility.setLayoutData(gridData);
checkboxLog = new Button(groupVisibility, SWT.CHECK);
checkboxLog.setBounds(new org.eclipse.swt.graphics.Rectangle(12,42,200,18));
checkboxLog.setText("log files");
checkboxStudio = new Button(groupVisibility, SWT.CHECK);
checkboxStudio.setBounds(new org.eclipse.swt.graphics.Rectangle(12,72,200,16));
checkboxStudio.setText("studio user interface");
checkboxPlatform = new Button(groupVisibility, SWT.CHECK);
checkboxPlatform.setBounds(new org.eclipse.swt.graphics.Rectangle(12,102,200,16));
checkboxPlatform.setText("platform user interface");
checkboxXml = new Button(groupVisibility, SWT.CHECK);
checkboxXml.setBounds(new org.eclipse.swt.graphics.Rectangle(12,132,200,16));
checkboxXml.setText("project's XML files");
}
示例2: createGroupDefinition
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes groupDefinition
*
*/
private void createGroupDefinition() {
groupDefinition = new Group(this, SWT.NONE);
groupDefinition.setText("Definition");
checkBoxName = new Button(groupDefinition, SWT.CHECK);
checkBoxName.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,50,16));
checkBoxName.setText("name");
checkBoxType = new Button(groupDefinition, SWT.CHECK);
checkBoxType.setBounds(new org.eclipse.swt.graphics.Rectangle(8,41,51,16));
checkBoxType.setText("type");
checkBoxType
.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
if (!checkBoxType.getSelection()) {
//com.twinsoft.convertigo.studio.Studio.theApp.warning(java.util.ResourceBundle.getBundle("com/twinsoft/convertigo/studio/res/editors/IncludedTagAttributesEditorPanel").getString("type_warning"));
}
}
});
}
示例3: createGroupDecoration
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes groupDecoration
*
*/
private void createGroupDecoration() {
groupDecoration = new Group(this, SWT.NONE);
groupDecoration.setText("Decoration");
checkBoxIntense = new Button(groupDecoration, SWT.CHECK);
checkBoxIntense.setBounds(new org.eclipse.swt.graphics.Rectangle(8,20,46,16));
checkBoxIntense.setText("bold");
checkBoxReverse = new Button(groupDecoration, SWT.CHECK);
checkBoxReverse.setBounds(new org.eclipse.swt.graphics.Rectangle(8,42,61,16));
checkBoxReverse.setText("reverse");
checkBoxUnderline = new Button(groupDecoration, SWT.CHECK);
checkBoxUnderline.setBounds(new org.eclipse.swt.graphics.Rectangle(75,20,68,16));
checkBoxUnderline.setText("underline");
checkBoxBlink = new Button(groupDecoration, SWT.CHECK);
checkBoxBlink.setBounds(new org.eclipse.swt.graphics.Rectangle(75,42,53,16));
checkBoxBlink.setText("blink");
}
示例4: createGroup
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes group
*
*/
private void createGroup() {
GridData gridData3 = new org.eclipse.swt.layout.GridData();
gridData3.grabExcessHorizontalSpace = false;
gridData3.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
group = new Group(this, SWT.NONE);
group.setLayoutData(gridData3);
radioButton1 = new Button(group, SWT.RADIO);
radioButton1.setBounds(new org.eclipse.swt.graphics.Rectangle(143,18,109,16));
radioButton1.setText("Sister screen class");
radioButton2 = new Button(group, SWT.RADIO);
radioButton2.setBounds(new org.eclipse.swt.graphics.Rectangle(12,18,126,16));
radioButton2.setText("Inherited screen class");
radioButton2.setSelection(true);
}
示例5: createGroupDefinition
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes groupDefinition
*
*/
private void createGroupDefinition() {
GridData gridData = new org.eclipse.swt.layout.GridData();
gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
gridData.horizontalSpan = 2;
groupDefinition = new Group(this, SWT.NONE);
groupDefinition.setText("Jour(s)");
groupDefinition.setLayoutData(gridData);
// first line
checkMonday = new Button(groupDefinition, SWT.CHECK);
checkMonday.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,42,16));
checkMonday.setText("Lundi");
checkTuesday = new Button(groupDefinition, SWT.CHECK);
checkTuesday.setBounds(new org.eclipse.swt.graphics.Rectangle(54,18,42,16));
checkTuesday.setText("Mardi");
checkWednesday = new Button(groupDefinition, SWT.CHECK);
checkWednesday.setBounds(new org.eclipse.swt.graphics.Rectangle(100,18,60,16));
checkWednesday.setText("Mercredi");
checkThursday = new Button(groupDefinition, SWT.CHECK);
checkThursday.setBounds(new org.eclipse.swt.graphics.Rectangle(160,18,42,16));
checkThursday.setText("Jeudi");
checkFriday = new Button(groupDefinition, SWT.CHECK);
checkFriday.setBounds(new org.eclipse.swt.graphics.Rectangle(204,18,60,16));
checkFriday.setText("Vendredi");
checkSaturday = new Button(groupDefinition, SWT.CHECK);
checkSaturday.setBounds(new org.eclipse.swt.graphics.Rectangle(268,18,50,16));
checkSaturday.setText("Samedi");
checkSunday = new Button(groupDefinition, SWT.CHECK);
checkSunday.setBounds(new org.eclipse.swt.graphics.Rectangle(322,18,60,16));
checkSunday.setText("Dimanche");
}
示例6: createCompositeIntense
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes compositeIntense
*
*/
private void createCompositeIntense() {
compositeIntense = new Composite(groupDecoration, SWT.NONE);
compositeIntense.setBounds(new org.eclipse.swt.graphics.Rectangle(5,14,231,21));
radioButtonIntenseOn = new Button(compositeIntense, SWT.RADIO);
radioButtonIntenseOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,59,16));
radioButtonIntenseOn.setText("bold");
radioButtonIntenseOff = new Button(compositeIntense, SWT.RADIO);
radioButtonIntenseOff.setBounds(new org.eclipse.swt.graphics.Rectangle(85,4,56,16));
radioButtonIntenseOff.setText("normal");
radioButtonIntenseDontCare = new Button(compositeIntense, SWT.RADIO);
radioButtonIntenseDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
radioButtonIntenseDontCare.setText("don't care");
}
示例7: createCompositeReverse
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes compositeReverse
*
*/
private void createCompositeReverse() {
compositeReverse = new Composite(groupDecoration, SWT.NONE);
compositeReverse.setBounds(new org.eclipse.swt.graphics.Rectangle(5,36,231,21));
radioButtonReverseOn = new Button(compositeReverse, SWT.RADIO);
radioButtonReverseOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,59,16));
radioButtonReverseOn.setText("reverse");
radioButtonReverseOff = new Button(compositeReverse, SWT.RADIO);
radioButtonReverseOff.setBounds(new org.eclipse.swt.graphics.Rectangle(85,4,56,16));
radioButtonReverseOff.setText("normal");
radioButtonReverseDontCare = new Button(compositeReverse, SWT.RADIO);
radioButtonReverseDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
radioButtonReverseDontCare.setText("don't care");
}
示例8: createCompositeUnderline
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes compositeUnderline
*
*/
private void createCompositeUnderline() {
compositeUnderlined = new Composite(groupDecoration, SWT.NONE);
compositeUnderlined.setBounds(new org.eclipse.swt.graphics.Rectangle(5,59,231,21));
radioButtonUnderlinedOn = new Button(compositeUnderlined, SWT.RADIO);
radioButtonUnderlinedOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,71,16));
radioButtonUnderlinedOn.setText("underlined");
radioButtonUnderlinedOff = new Button(compositeUnderlined, SWT.RADIO);
radioButtonUnderlinedOff.setBounds(new org.eclipse.swt.graphics.Rectangle(86,4,54,16));
radioButtonUnderlinedOff.setText("normal");
radioButtonUnderlinedDontCare = new Button(compositeUnderlined, SWT.RADIO);
radioButtonUnderlinedDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
radioButtonUnderlinedDontCare.setText("don't care");
}
示例9: createCompositeBlink
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes compositeBlink
*
*/
private void createCompositeBlink() {
compositeBlink = new Composite(groupDecoration, SWT.NONE);
compositeBlink.setBounds(new org.eclipse.swt.graphics.Rectangle(5,82,231,21));
radioButtonBlinkOn = new Button(compositeBlink, SWT.RADIO);
radioButtonBlinkOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,43,16));
radioButtonBlinkOn.setText("blink");
radioButtonBlinkOff = new Button(compositeBlink, SWT.RADIO);
radioButtonBlinkOff.setBounds(new org.eclipse.swt.graphics.Rectangle(86,4,57,16));
radioButtonBlinkOff.setText("normal");
radioButtonBlinkDontCare = new Button(compositeBlink, SWT.RADIO);
radioButtonBlinkDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
radioButtonBlinkDontCare.setText("don't care");
}
示例10: createGroupPosition
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes groupPosition
*
*/
private void createGroupPosition() {
groupPosition = new Group(this, SWT.NONE);
groupPosition.setText("Position");
checkBoxLine = new Button(groupPosition, SWT.CHECK);
checkBoxLine.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,44,16));
checkBoxLine.setText("line");
checkBoxColumn = new Button(groupPosition, SWT.CHECK);
checkBoxColumn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,42,45,16));
checkBoxColumn.setText("column");
}
示例11: createGroupColor
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
/**
* This method initializes groupColor
*
*/
private void createGroupColor() {
groupColor = new Group(this, SWT.NONE);
groupColor.setText("Color");
checkBoxForeground = new Button(groupColor, SWT.CHECK);
checkBoxForeground.setBounds(new org.eclipse.swt.graphics.Rectangle(8,21,81,16));
checkBoxForeground.setText("foreground");
checkBoxBackground = new Button(groupColor, SWT.CHECK);
checkBoxBackground.setBounds(new org.eclipse.swt.graphics.Rectangle(8,43,78,16));
checkBoxBackground.setText("background");
}
示例12: buttonWidget
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
public Button buttonWidget(Composite parent, int style, int[] bounds,
String value) {
Button button = new Button(parent, style);
button.setBounds(bounds[0], bounds[1], bounds[2], bounds[3]);
button.setText(value);
return button;
}
示例13: buttonWidget
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
public Button buttonWidget(Composite parent, int style, int[] bounds,
String value, Image image) {
Button button = new Button(parent, style);
button.setBounds(bounds[0], bounds[1], bounds[2], bounds[3]);
button.setText(value);
button.setImage(image);
return button;
}
示例14: buttonWidget
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
public Button buttonWidget(Composite parent, int style, int[] bounds, String value) {
Button button = new Button(parent, style);
button.setBounds(bounds[0], bounds[1], bounds[2], bounds[3]);
button.setText(value);
return button;
}
示例15: buttonWidget
import org.eclipse.swt.widgets.Button; //导入方法依赖的package包/类
public Button buttonWidget(Composite parent, int style, int[] bounds,
String value, Image image) {
Button button = new Button(parent, style);
button.setBounds(bounds[0], bounds[1], bounds[2], bounds[3]);
button.setText(value);
button.setImage(image);
return button;
}