当前位置: 首页>>代码示例>>Java>>正文


Java SWT.BORDER属性代码示例

本文整理汇总了Java中org.eclipse.swt.SWT.BORDER属性的典型用法代码示例。如果您正苦于以下问题:Java SWT.BORDER属性的具体用法?Java SWT.BORDER怎么用?Java SWT.BORDER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.swt.SWT的用法示例。


在下文中一共展示了SWT.BORDER属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

protected void initialize() {
	Label label0 = new Label (this, SWT.NONE);
	label0.setText ("Please choose type(s) which are returned by transaction response:");
	
	list = new List(this, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL);
	GridData data = new GridData ();
	data.horizontalAlignment = GridData.FILL;
	data.verticalAlignment = GridData.FILL;
	data.grabExcessHorizontalSpace = true;
	data.grabExcessVerticalSpace = true;
	data.heightHint = 200;
	list.setLayoutData (data);

	GridLayout gridLayout = new GridLayout();
	setLayout(gridLayout);
	setSize(new Point(408, 251));
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:17,代码来源:TransactionXSDTypesDialogComposite.java

示例2: createFilterControls

protected void createFilterControls(Composite con) {
	Label filterLabel = new Label(con,SWT.NONE);
	filterLabel.setText("Filter:");
	GridDataFactory.swtDefaults().applyTo(filterLabel);
	Text filterText = new Text(con, SWT.BORDER);
	filterText.setMessage("(" + PreferenceFilter.MIN_FILTER_CHARS + " chars at least)");
	filterText.addModifyListener(event -> {
		filterChanged(filterText.getText());
	});
	GridDataFactory.fillDefaults().grab(true,false).applyTo(filterText);
	Button clearBtn = new Button(con, SWT.PUSH);
	clearBtn.setImage(AbstractUIPlugin.imageDescriptorFromPlugin(PrefEditorPlugin.PLUGIN_ID,"icons/clear.gif").createImage());
	GridDataFactory.swtDefaults().applyTo(clearBtn);
	clearBtn.addSelectionListener(new SelectionAdapter() {
		
		@Override
		public void widgetSelected(SelectionEvent e) {
			filterText.setText("");
			filterChanged("");
		}
		
	});
}
 
开发者ID:32kda,项目名称:com.onpositive.prefeditor,代码行数:23,代码来源:ViewerPage.java

示例3: createDialogArea

@Override
protected Control createDialogArea(Composite parent) {
  Composite container = (Composite) super.createDialogArea(parent);
  GridLayout layout = new GridLayout(2, false);
  layout.marginRight = 5;
  layout.marginLeft = 10;
  container.setLayout(layout);

  Label lblUser = new Label(container, SWT.NONE);
  lblUser.setText("User:");

  txtUser = new Text(container, SWT.BORDER);
  txtUser.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
  txtUser.setText(user);

  Label lblPassword = new Label(container, SWT.NONE);
  GridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
  gd_lblNewLabel.horizontalIndent = 1;
  lblPassword.setLayoutData(gd_lblNewLabel);
  lblPassword.setText("Password:");

  txtPassword = new Text(container, SWT.BORDER | SWT.SINGLE | SWT.PASSWORD);
  txtPassword.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
  txtPassword.setText(password);
  return container;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:26,代码来源:PasswordDialog.java

示例4: createProjectSection

/**
 * Create the element that allow to select a project See the GraphWalker
 * offline command for more information
 */
private void createProjectSection(Composite parent) {
	fProjLabel = new Label(parent, SWT.NONE);
	fProjLabel.setText(MessageUtil.getString("label_project"));
	GridData gd = new GridData();
	gd.horizontalIndent = 25;
	fProjLabel.setLayoutData(gd);

	fProjText = new Text(parent, SWT.SINGLE | SWT.BORDER);
	fProjText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	fProjText.addModifyListener(new ModifyListener() {
		@Override
		public void modifyText(ModifyEvent evt) {
			validatePage();
			updateConfigState();

		}
	});
	fProjText.setData(GW4E_LAUNCH_CONFIGURATION_CONTROL_ID, GW4E_LAUNCH_CONFIGURATION_TEXT_ID_PROJECT);

}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:24,代码来源:GW4ELaunchConfigurationTab.java

示例5: addDtoParentsSection

private void addDtoParentsSection(Composite parent) {
	Composite composite = createDefaultComposite(parent);

	// Label for owner field
	Label ownerLabel = new Label(composite, SWT.NONE);
	ownerLabel.setText(DTO_PARENTS_TITLE);

	// Owner text field
	dtoParentsText = new Text(composite, SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
	GridData gridData = new GridData(GridData.FILL_BOTH);
	gridData.heightHint = 100;
	dtoParentsText.setLayoutData(gridData);

	// Populate owner text field
	String text = PropertyUtils.getDtoParentClasses(getProject());
	if (text == null) {
		text = "";
	}
	dtoParentsText.setText(text);
}
 
开发者ID:sebez,项目名称:vertigo-chroma-kspplugin,代码行数:20,代码来源:VertigoPropertyPage.java

示例6: createSimpleIdTextBox

private void createSimpleIdTextBox(Composite composite_1) {
	Composite composite = new Composite(composite_1, SWT.NONE);
	composite.setLayout(new GridLayout(2, false));
	GridData gd_composite = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
	gd_composite.heightHint = 29;
	composite.setLayoutData(gd_composite);

	idTextBox = new Text(composite, SWT.BORDER);
	idTextBox.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
	idTextBox.setText(expressionDataStructure.getId());
	idTextBox.addModifyListener(new ModifyListener() {

		@Override
		public void modifyText(ModifyEvent e) {
			expressionDataStructure.setId(idTextBox.getText());
			dialog.refreshErrorLogs();
		}
	});

}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:20,代码来源:ExpressionComposite.java

示例7: createDebugJSonComponent

private void createDebugJSonComponent(Composite parent) {
	Composite comp = new Group(parent, SWT.NONE);
	comp.setLayout(new GridLayout());
	comp.setLayoutData(new GridData(GridData.FILL_BOTH));

	Label jsonLabel = new Label(comp, SWT.NONE);
	jsonLabel.setText("&Launch Parameters (Json):");
	jsonLabel.setLayoutData(new GridData(GridData.BEGINNING));

	jsonText = new Text(comp, SWT.MULTI | SWT.WRAP | SWT.BORDER | SWT.V_SCROLL);
	jsonText.setLayoutData(new GridData(GridData.FILL_BOTH));
	jsonText.addModifyListener(new ModifyListener() {

		@Override
		public void modifyText(ModifyEvent e) {
			updateLaunchConfigurationDialog();
		}
	});

}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:20,代码来源:DSPMainTab.java

示例8: createPageContent

@Override
protected void createPageContent(@NonNull SectionComposite sectionComposite) {

	Composite parent = sectionComposite.getContent();

	Composite composite = new Composite(parent, SWT.BORDER);
	composite.setLayout(new GridLayout(2, false));

	Label lblDev = new Label(composite, SWT.NONE);
	lblDev.setText("Developer");
	developer = new Text(composite, SWT.BORDER);

	Label lblObjectId = new Label(composite, SWT.NONE);
	lblObjectId.setText("Process ID");
	objectId = new Text(composite, SWT.BORDER);
	objectId.setTextLimit(10);

	Label lblprocType = new Label(composite, SWT.NONE);
	lblprocType.setText("Process Type");
	procType = new Text(composite, SWT.BORDER);
	procType.setTextLimit(4);

	Label lblstatus = new Label(composite, SWT.NONE);
	lblstatus.setText("Status");
	status = new Text(composite, SWT.BORDER);

	Label lblPrio = new Label(composite, SWT.NONE);
	lblPrio.setText("Priority");
	priority = new Text(composite, SWT.BORDER);
	priority.setTextLimit(1);

}
 
开发者ID:theits,项目名称:CharmMylynConnector,代码行数:32,代码来源:CharmQueryPage.java

示例9: createMappingTable

private Table createMappingTable(Composite composite_6) {
	mappingTableViewer = new TableViewer(composite_6, SWT.BORDER
			| SWT.FULL_SELECTION | SWT.MULTI);
	Table table = mappingTableViewer.getTable();
	table.setLinesVisible(true);
	table.setHeaderVisible(true);
	GridData gd_table = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
	gd_table.widthHint = 374;
	table.setLayoutData(gd_table);
	mappingTableViewer.setContentProvider(new ArrayContentProvider());
	ColumnViewerToolTipSupport.enableFor(mappingTableViewer);
	return table;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:13,代码来源:LookupMapDialog.java

示例10: initialize

private void initialize() {
	GridData gridData2 = new org.eclipse.swt.layout.GridData();
	gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData1 = new org.eclipse.swt.layout.GridData();
	gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData1.grabExcessHorizontalSpace = false;
	gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.horizontalSpan = 2;
	GridLayout gridLayout = new GridLayout();
	gridLayout.numColumns = 2;
	gridLayout.verticalSpacing = 5;
	labelHelp = new Label(this, SWT.NONE);
	labelHelp.setText("Defines the connection address to use for this ''screen'' connector.\n\n This connector needs:\n\t a destination address, as a hostname (or IP adress) and optionally a port,\n\t a connection parameter, optional.\n\n" +
			"The connection parameter has different meanings according to the emulator technology:\n\t3270: TN3270 device name\n\t5250: TN5250 device name\n\tDKU: MAILBOX\n\tMinitel: service code (e.g. '3615SNCF')\n\n");
	labelHelp.setLayoutData(gridData);
	labelConnectionParameter = new Label(this, SWT.NONE);
	labelConnectionParameter.setText("Connection parameter");
	textConnectionParameter = new Text(this, SWT.BORDER);
	textConnectionParameter.setLayoutData(gridData1);
	labelHost = new Label(this, SWT.NONE);
	labelHost.setText("Host name");
	textHost = new Text(this, SWT.BORDER);
	textHost.setLayoutData(gridData2);
	labelPort = new Label(this, SWT.NONE);
	labelPort.setText("Port");
	textPort = new Text(this, SWT.BORDER);
	textPort.setLayoutData(gridData2);
	labelConnectionType = new Label(this, SWT.NONE);
	labelConnectionType.setText("Connection type");
	createComboConnectionType();
	this.setLayout(gridLayout);
	setSize(new org.eclipse.swt.graphics.Point(402,289));
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:35,代码来源:CariocaServiceCodeEditorComposite.java

示例11: createDestinationGroup

/**
 * Create the export destination specification widgets
 */
protected void createDestinationGroup(Composite parent) {
	Font font = parent.getFont();
	// destination specification group
	Composite destinationSelectionGroup = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	destinationSelectionGroup.setLayout(layout);
	destinationSelectionGroup.setLayoutData(new GridData(
			GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));
	destinationSelectionGroup.setFont(font);

	Label destinationLabel = new Label(destinationSelectionGroup, SWT.NONE);
	destinationLabel.setText(getTargetLabel());
	destinationLabel.setFont(font);

	// destination name entry field
	destinationNameField = new Combo(destinationSelectionGroup, SWT.SINGLE
			| SWT.BORDER);
	destinationNameField.addListener(SWT.Modify, this);
	destinationNameField.addListener(SWT.Selection, this);
	GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL
			| GridData.GRAB_HORIZONTAL);
	data.widthHint = SIZING_TEXT_FIELD_WIDTH;
	destinationNameField.setLayoutData(data);
	destinationNameField.setFont(font);

	// destination browse button
	destinationBrowseButton = new Button(destinationSelectionGroup,
			SWT.PUSH);
	destinationBrowseButton.setText(N4ExportMessages.DataTransfer_browse);
	destinationBrowseButton.addListener(SWT.Selection, this);
	destinationBrowseButton.setFont(font);
	setButtonLayoutData(destinationBrowseButton);

	// new Label(parent, SWT.NONE); // vertical spacer
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:39,代码来源:AbstractExportToSingleFileWizardPage.java

示例12: createErrorGroup

/**
 * @param parent
 * @param composite
 */
private void createErrorGroup(Composite parent) {
	Composite errorGroup = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 1;
	errorGroup.setLayout(layout);
	errorGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	errorGroup.setFont(parent.getFont());
	errorText = new Text(errorGroup, SWT.READ_ONLY | SWT.WRAP | SWT.MULTI | SWT.BORDER);
	errorText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	errorText.setText("asldfjlasjflkj");
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:15,代码来源:ExportSelectionPage.java

示例13: createDialogArea

/**
 * Create contents of the dialog.
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	Composite container = (Composite) super.createDialogArea(parent);
	container.setLayout(new GridLayout(1, false));
	
	getShell().setText(title);
	
	SashForm mainSashForm = new SashForm(container, SWT.BORDER);
	mainSashForm.setSashWidth(2);
	mainSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	createAvailableFieldTable(mainSashForm);
	
	Composite filterLogicMainComposite = new Composite(mainSashForm, SWT.NONE);
	filterLogicMainComposite.setLayout(new GridLayout(1, false));
	
	SashForm filterLogicSashForm = new SashForm(filterLogicMainComposite, SWT.VERTICAL);
	filterLogicSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	filterLogicInnerComposite = new Composite(filterLogicSashForm, SWT.BORDER);
	filterLogicInnerCompositeLayout = new StackLayout();
	filterLogicInnerComposite.setLayout(filterLogicInnerCompositeLayout);
	
	createExpressionOrOperationComposite(filterLogicInnerComposite);
	
	createErrorLogsTable(filterLogicSashForm);
	
	filterLogicSashForm.setWeights(new int[] {3, 1});
	mainSashForm.setWeights(new int[] {1, 2});
	return container;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:35,代码来源:FilterExpressionOperationDialog.java

示例14: createControl

@Override
public void createControl(final Composite parent) {
  final Composite container = new Composite(parent, SWT.NONE);
  setControl(container);
  container.setLayout(new FillLayout(SWT.HORIZONTAL));

  treeViewer = new TreeViewer(container, SWT.BORDER);
  treeViewer.setUseHashlookup(true);
  treeViewer.setLabelProvider(new CreatingAtomWizardLabelProvider());
  treeViewer.setContentProvider(new CreatingAtomWizardContentProvider());
  treeViewer.setInput(ResourcesPlugin.getWorkspace().getRoot().getProjects());
  treeViewer.setFilters(new ViewerFilter[] {new CreatingAtomWizardFilter()});

  treeViewer.addSelectionChangedListener(new ISelectionChangedListener() {

    @Override
    public void selectionChanged(final SelectionChangedEvent event) {
      if (((TreeSelection) event.getSelection()).getFirstElement() instanceof IMarker) {
        SelectionPage.this.setPageComplete(true);
      } else {
        SelectionPage.this.setPageComplete(false);
      }
    }
  });

  setPageComplete(false);
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:27,代码来源:SelectionPage.java

示例15: createDialogArea

@Override
protected Control createDialogArea(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    container.setLayout(new GridLayout(2, false));
    container.setLayoutData(new GridData(GridData.FILL_BOTH));

    new Label(container, SWT.NONE).setText(Messages.FeedBackDialog_subject);

    txtSubject = new Text(container, SWT.BORDER);
    txtSubject.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    new Label(container, SWT.NONE).setText(Messages.e_mail);

    emailFrom = new Text(container, SWT.BORDER);
    emailFrom.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    new Label(container, SWT.NONE).setText(Messages.feedback_message);

    txtMessage = new Text(container, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.heightHint = new PixelConverter(container).convertHeightInCharsToPixels(8);
    txtMessage.setLayoutData(gd);

    new Label(container, SWT.NONE);

    btnCheckLog = new Button(container, SWT.CHECK);
    btnCheckLog.setText(Messages.add_log);

    return container;
}
 
开发者ID:pgcodekeeper,项目名称:pgcodekeeper,代码行数:30,代码来源:FeedBackDialog.java


注:本文中的org.eclipse.swt.SWT.BORDER属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。