本文整理汇总了Java中org.eclipse.swt.widgets.Group类的典型用法代码示例。如果您正苦于以下问题:Java Group类的具体用法?Java Group怎么用?Java Group使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Group类属于org.eclipse.swt.widgets包,在下文中一共展示了Group类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createVersionArea
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
private void createVersionArea(final Group parent, String versionLabel, Consumer<String> textHandler,
Consumer<Boolean> flagHandler) {
final Composite area = createVersionArea(parent, versionLabel);
final Composite textArea = createVersionInputArea(area);
final Text txtUpperVersion = getSimpleTextArea(textArea);
txtUpperVersion.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
Text textWidget = (Text) e.getSource();
textHandler.accept(textWidget.getText());
}
});
createVersionInclsivnessArea(area, flagHandler);
}
示例2: createNameArea
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
private void createNameArea(Composite parent, String areaName, Consumer<String> textHandler) {
final Group area = new Group(parent, SHADOW_ETCHED_IN);
area.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());
area.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
area.setText(areaName);
final Text txtPackageName = getSimpleTextArea(area);
txtPackageName.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
Text textWidget = (Text) e.getSource();
textHandler.accept(textWidget.getText());
}
});
}
示例3: initTestProjectUI
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
private Composite initTestProjectUI(DataBindingContext dbc, Composite parent) {
// Additional test project options
final Group testProjectOptionsGroup = new Group(parent, NONE);
testProjectOptionsGroup.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());
final Button createTestGreeterFileButton = new Button(testProjectOptionsGroup, CHECK);
createTestGreeterFileButton.setText("Create a test project greeter file");
final Button addNormalSourceFolderButton = new Button(testProjectOptionsGroup, CHECK);
addNormalSourceFolderButton.setText("Also create a non-test source folder");
Label nextPageHint = new Label(testProjectOptionsGroup, NONE);
nextPageHint.setText("The projects which should be tested can be selected on the next page");
nextPageHint.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_FOREGROUND));
initTestProjectBinding(dbc, addNormalSourceFolderButton, createTestGreeterFileButton);
return testProjectOptionsGroup;
}
示例4: createControl
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
@Override
public void createControl(Composite parent) {
_parent = parent;
Composite area = new Composite(parent, SWT.NULL);
GridLayout gl = new GridLayout(1, false);
gl.marginHeight = 0;
area.setLayout(gl);
area.layout();
setControl(area);
Group modelArea = createGroup(area, "Model:");
createModelLayout(modelArea, null);
Group languageArea = createGroup(area, "Language:");
createLanguageLayout(languageArea, null);
Group debugArea = createGroup(area, "Animation:");
createAnimationLayout(debugArea, null);
_k3Area = createGroup(area, "Sequential DSA execution:");
createK3Layout(_k3Area, null);
}
示例5: renderTransparency
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
private void renderTransparency(final Shell shell) {
Group group = new Group(shell, SWT.NONE);
group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 6, 1));
group.setLayout(new GridLayout(1, false));
group.setText("Transparency");
final Scale transparencySlider = new Scale(group, SWT.HORIZONTAL);
transparencySlider.setMinimum(20);
transparencySlider.setMaximum(100);
transparencySlider.setPageIncrement(90);
transparencySlider.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
transparencySlider.setSelection(100);
transparencySlider.addListener(SWT.Selection, new Listener() {
@Override
public void handleEvent(Event event) {
shell.setAlpha(255 * transparencySlider.getSelection() / 100);
}
});
}
示例6: createGroupDecoration
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
/**
* This method initializes groupDecoration
*
*/
private void createGroupDecoration() {
GridData gridData1 = new org.eclipse.swt.layout.GridData();
gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
gridData1.horizontalSpan = 2;
gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
groupDecoration = new Group(this, SWT.NONE);
groupDecoration.setText("Decoration");
createCompositeIntense();
groupDecoration.setLayoutData(gridData1);
createCompositeReverse();
createCompositeUnderline();
createCompositeBlink();
}
示例7: createGroupVisibility
import org.eclipse.swt.widgets.Group; //导入依赖的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");
}
示例8: createGroupDefinition
import org.eclipse.swt.widgets.Group; //导入依赖的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"));
}
}
});
}
示例9: createGroup
import org.eclipse.swt.widgets.Group; //导入依赖的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);
}
示例10: createGroup
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
/**
* This method initializes group
*
*/
private void createGroup() {
GridData gridData1 = new GridData();
gridData1.horizontalAlignment = GridData.BEGINNING;
gridData1.grabExcessHorizontalSpace = true;
gridData1.verticalAlignment = GridData.CENTER;
GridData gridData = new GridData();
gridData.horizontalAlignment = GridData.FILL;
gridData.verticalAlignment = GridData.CENTER;
GridLayout gridLayout1 = new GridLayout();
gridLayout1.numColumns = 2;
GridData gridData3 = new GridData();
gridData3.horizontalAlignment = GridData.FILL;
gridData3.horizontalSpan = 2;
gridData3.grabExcessHorizontalSpace = true;
gridData3.grabExcessVerticalSpace = false;
gridData3.verticalAlignment = GridData.FILL;
group = new Group(this, SWT.NONE);
group.setText("Target Server");
group.setLayoutData(gridData3);
group.setLayout(gridLayout1);
label = new Label(group, SWT.NONE);
label.setText("HTTP Server");
httpServer = new Text(group, SWT.BORDER);
httpServer.setLayoutData(gridData);
label2 = new Label(group, SWT.NONE);
label2.setText("HTTP Port");
httpPort = new Text(group, SWT.BORDER);
httpPort.setLayoutData(gridData1);
label3 = new Label(group, SWT.NONE);
label3.setText("SSL");
ssl = new Button(group, SWT.CHECK);
httpServer.addModifyListener(modifyListener);
httpPort.addModifyListener(modifyListener);
ssl.addSelectionListener(selectionListener);
}
示例11: createDialogArea
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
final Group customDialogArea = new Group(parent, SHADOW_ETCHED_IN);
customDialogArea.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).equalWidth(false).create());
customDialogArea.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).align(FILL, TOP).create());
createNameArea(customDialogArea, PACKAGE_NAME, this::handlePackageNameInput);
createVersionArea(customDialogArea, MINIMUM_VERSION_OPTIONAL, this::handleLowerVersionInput,
this::setLowerExcluded);
createVersionArea(customDialogArea, MAXIMUM_VERSION_OPTIONAL, this::handleUpperVersionInput,
this::setUpperExcluded);
return customDialogArea;
}
示例12: createOptionsGroup
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
/**
* Create the options specification widgets.
*/
protected void createOptionsGroup(Composite parent) {
// options group
Group optionsGroup = new Group(parent, SWT.NONE);
GridLayout layout = new GridLayout();
optionsGroup.setLayout(layout);
optionsGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL));
optionsGroup.setText(IDEWorkbenchMessages.WizardExportPage_options);
optionsGroup.setFont(parent.getFont());
createOptionsGroupButtons(optionsGroup);
}
示例13: createOverwriteExisting
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
/**
* Create the button for checking if we should ask if we are going to overwrite existing files.
*/
private void createOverwriteExisting(Group optionsGroup, Font font) {
// overwrite... checkbox
overwriteExistingFilesCheckbox = new Button(optionsGroup, SWT.CHECK | SWT.LEFT);
overwriteExistingFilesCheckbox.setText(N4ExportMessages.ExportFile_overwriteExisting);
overwriteExistingFilesCheckbox.setFont(font);
}
示例14: createOptionsGroupButtons
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
@Override
protected void createOptionsGroupButtons(Group optionsGroup) {
Font font = optionsGroup.getFont();
optionsGroup.setLayout(new GridLayout(2, true));
Composite left = new Composite(optionsGroup, SWT.NONE);
left.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false));
left.setLayout(new GridLayout(1, true));
// compress... checkbox
compressContentsCheckbox = new Button(left, SWT.CHECK | SWT.LEFT);
compressContentsCheckbox.setText(DataTransferMessages.ZipExport_compressContents);
compressContentsCheckbox.setFont(font);
}
示例15: createOptionsGroupButtons
import org.eclipse.swt.widgets.Group; //导入依赖的package包/类
@Override
protected void createOptionsGroupButtons(Group optionsGroup) {
npmGoalSelection = new Combo(optionsGroup, SWT.SINGLE
| SWT.BORDER);
npmGoalSelection.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
npmGoalSelection.addListener(SWT.Modify, this);
npmGoalSelection.addListener(SWT.Selection, this);
}