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


Java SWT.NONE属性代码示例

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


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

示例1: main

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.
 */
public static void main( String[] args ) 
{
    JFreeChart chart = createChart(createDataset());
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setSize(600, 400);
    shell.setLayout(new FillLayout());
    shell.setText("Test for jfreechart running with SWT");
    final ChartComposite frame = new ChartComposite(shell, SWT.NONE, chart, true);
    //frame.setDisplayToolTips(false);
    frame.pack();
    shell.open();
    while (!shell.isDisposed()) {
        if (!display.readAndDispatch())
            display.sleep();
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:22,代码来源:SWTPieChartDemo1.java

示例2: createContents

/**
 * @see PreferencePage#createContents(Composite)
 */
protected Control createContents(Composite parent) {
	Composite composite = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout();
	composite.setLayout(layout);
	GridData data = new GridData(GridData.FILL);
	data.grabExcessHorizontalSpace = true;
	composite.setLayoutData(data);

	addPathSection(composite);
	addSeparator(composite);
	addVersionSection(composite);
	addSeparator(composite);
	addDtoParentsSection(composite);
	return composite;
}
 
开发者ID:sebez,项目名称:vertigo-chroma-kspplugin,代码行数:18,代码来源:VertigoPropertyPage.java

示例3: initialize

/**
 * This method initializes this
 * 
 */
private void initialize() {
	XpathTrigger trigger = (parent.getTrigger() instanceof XpathTrigger)?(XpathTrigger)parent.getTrigger():null;
       GridData gridData2 = new GridData();
       gridData2.horizontalAlignment = GridData.FILL;
       gridData2.grabExcessHorizontalSpace = true;
       gridData2.verticalAlignment = GridData.CENTER;
       GridLayout gridLayout = new GridLayout();
       gridLayout.numColumns = 2;
       this.setLayout(gridLayout);
       xpath_label = new Label(this, SWT.NONE);
       xpath_label.setText("Waiting for Xpath");
       xpath_txt = new Text(this, SWT.BORDER);
       xpath_txt.setText( (trigger!=null)? trigger.getXPath():"");
       xpath_txt.setLayoutData(gridData2);
       xpath_txt.setSize(600, 50);
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:20,代码来源:HttpTriggerXpathEditorComposite.java

示例4: setErrorMessageForDuplicateInputField

private void setErrorMessageForDuplicateInputField() {
	if(!duplicateOperationInputFieldMap.isEmpty())
   {
	   for(Map.Entry<String, List<String>> entry:duplicateOperationInputFieldMap.entrySet())
	   {
		   for(String f:entry.getValue())
		   {   
			   boolean logError=true;
			   errorLabel=new Label( errorTableViewer.getTable(), SWT.NONE);
			   errorLabel.setVisible(true); 
			   errorLabel.setText("Duplicate Operation Input Field"+" "+f +" "+"exist in"+" "+entry.getKey()); 
			   for(Label tempErrorLabel:errorLabelList) {
				   if(StringUtils.equalsIgnoreCase(errorLabel.getText(),tempErrorLabel.getText()))
				   logError=false;
			   }
			   if(logError)
			   errorLabelList.add(errorLabel);
		   }
	   }
   }
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:21,代码来源:TransformDialog.java

示例5: createDialogArea

@Override
protected Control createDialogArea(Composite parent) {
    Composite area = (Composite) super.createDialogArea(parent);

    Composite container = new Composite(area, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.marginWidth = gridLayout.marginHeight = 0;
    container.setLayout(gridLayout);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.minimumHeight = 600;
    gd.minimumWidth = 1024;
    container.setLayoutData(gd);

    diffPane = new DiffPaneViewer(container, SWT.NONE);
    diffPane.setDbSources(dbProject, dbRemote);
    diffPane.setInput(input, availableElements);

    return area;
}
 
开发者ID:pgcodekeeper,项目名称:pgcodekeeper,代码行数:19,代码来源:DiffPaneDialog.java

示例6: ChartManager

public ChartManager ( final Composite parent, final int style )
{
    super ( parent, style );

    setLayout ( makeLayout () );

    // title row

    this.title = new Label ( this, SWT.NONE );
    this.title.setLayoutData ( new GridData ( GridData.CENTER, GridData.FILL, true, false, 1, 1 ) );

    // row 2

    this.chartArea = new ChartArea ( this, SWT.NONE );
    this.chartArea.setLayoutData ( makeMainLayoutData () );

    addDisposeListener ( new DisposeListener () {

        @Override
        public void widgetDisposed ( final DisposeEvent e )
        {
            onDispose ();
        }
    } );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:25,代码来源:ChartManager.java

示例7: createQueryFilterView

private void createQueryFilterView(GridData comboLayoutData, GridData textLayoutData) {
    Label label = new Label(group, SWT.NONE);
    label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
    label.setText(resourceBundle.getString("query"));

    queryFilterCombo = new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY);
    queryFilterCombo.setLayoutData(comboLayoutData);
    fillCombo(queryFilterCombo, FilterValueType.STRING);
    queryFilterCombo.select(0);
    queryFilterCombo.addModifyListener(e -> {
        FilterCondition condition = FilterCondition.getFilterConditionFromConditionText(queryFilterCombo.getText());
        listeners.forEach(listener -> listener.processesFiltersViewQueryFilterConditionChanged(this, condition));
    });

    queryFilterText = new Text(group, SWT.NONE);
    queryFilterText.setLayoutData(textLayoutData);
    queryFilterText.addModifyListener(e -> {
        String text = queryFilterText.getText();
        final String result = text.isEmpty() ? null : text;
        listeners.forEach(listener -> listener.processesFiltersViewQueryFilterValueChanged(this, result));
    });
}
 
开发者ID:technology16,项目名称:pgsqlblocks,代码行数:22,代码来源:DBProcessesFiltersView.java

示例8: createButtonSectionInFieldMappingSection

private void createButtonSectionInFieldMappingSection(Composite composite) {

		Composite composite_4 = new Composite(composite, SWT.NONE);
		composite_4.setLayout(new GridLayout(2, false));
		GridData gd_composite_4 = new GridData(SWT.FILL, SWT.CENTER, true,
				false, 1, 1);
		gd_composite_4.heightHint = 40;
		composite_4.setLayoutData(gd_composite_4);

		Composite composite_10 = new Composite(composite_4, SWT.NONE);
		GridLayout gl_composite_10 = new GridLayout(1, false);
		gl_composite_10.verticalSpacing = 0;
		gl_composite_10.marginWidth = 0;
		gl_composite_10.marginHeight = 0;
		composite_10.setLayout(gl_composite_10);
		composite_10.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true,
				true, 1, 1));

		Label lblMappingView = new Label(composite_10, SWT.NONE);
		lblMappingView.setText("Output Mapping");

		Composite composite_11 = new Composite(composite_4, SWT.NONE);
		GridLayout gl_composite_11 = new GridLayout(5, false);
		gl_composite_11.verticalSpacing = 0;
		gl_composite_11.marginWidth = 0;
		gl_composite_11.marginHeight = 0;
		composite_11.setLayout(gl_composite_11);
		composite_11.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true,
				true, 1, 1));

		createPullButton(composite_11);
		
		createAddButton(composite_11);

		createDeleteButton(composite_11);

		createUpButton(composite_11);

		createDownButton(composite_11);
	}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:40,代码来源:JoinMapDialog.java

示例9: createTableViewerColumns

/**
 * Creates columns for the Schema Grid
 * @param tableViewer
 */
public TableViewerColumn createTableViewerColumns(TableViewer tableViewer, String columnName) {
	TableViewerColumn tableViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);
	TableColumn tblclmnItem = tableViewerColumn.getColumn();
	tblclmnItem.setWidth(100);
	tblclmnItem.setText(columnName);
	return tableViewerColumn;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:11,代码来源:DatasetInformationDialog.java

示例10: createAddButton

private void createAddButton(Composite composite_11) {
	btnAdd = new Button(composite_11, SWT.NONE);
	btnAdd.setImage(ImagePathConstant.ADD_BUTTON.getImageFromRegistry());
	btnAdd.setToolTipText(Messages.ADD_KEY_SHORTCUT_TOOLTIP);
	btnAdd.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent e) {
			addNewRow();
		}
	});
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:11,代码来源:LookupMapDialog.java

示例11: activateView

@Override
protected void activateView ()
{
    if ( this.viewer != null )
    {
        return;
    }

    this.viewer = new VisualInterfaceViewer ( this.parent, SWT.NONE, this.descriptor.getUri (), this.scriptObjects, this.descriptor.getProperties () );
    this.viewer.setZooming ( this.descriptor.getZooming () );
    this.viewer.setLayoutData ( new GridData ( SWT.FILL, SWT.FILL, true, true ) );

    // always add summary listener if we are active
    this.viewer.addSummaryListener ( this );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:15,代码来源:VisualInterfaceViewInstance.java

示例12: fill

@Override
public void fill ( final org.eclipse.swt.widgets.Menu menu, final int index )
{
    final MenuItem item = new MenuItem ( menu, SWT.NONE, index );

    final Profile profile = getProfile ();

    final String name = this.definition.getName () == null ? "<unnamed>" : this.definition.getName ();
    String profileName = profile != null ? profile.getName () : "default";
    if ( profileName == null )
    {
        profileName = "<unnamed>";
    }

    item.setText ( String.format ( "Run %s (%s)", name, profileName ) );

    item.addSelectionListener ( new SelectionAdapter () {
        @Override
        public void widgetSelected ( final SelectionEvent evt )
        {
            try
            {
                run ( name );
            }
            catch ( final Exception e )
            {
                logger.warn ( "Failed to run", e );
                StatusManager.getManager ().handle ( StatusHelper.convertStatus ( Activator.PLUGIN_ID, e ), StatusManager.BLOCK );
            }
        }
    } );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:32,代码来源:DefinitionContributionItem.java

示例13: createDialogArea

@Override
protected Control createDialogArea(Composite parent) {
	Composite area = (Composite) super.createDialogArea(parent);
	Composite container = new Composite(area, SWT.NONE);
	container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	GridLayout layout = new GridLayout(2, false);
	container.setLayout(layout);
	Label lbtOcciServerUrl = new Label(container, SWT.NONE);
	lbtOcciServerUrl.setText(Messages.OcciServerDialog_Label);
	txtOcciServerUrl = new Text(container, SWT.BORDER);
	txtOcciServerUrl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	return area;
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:13,代码来源:OcciServerDialog.java

示例14: createPropertiesGroup

/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.ExponentialPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:14,代码来源:ExponentialPropertiesEditionPartImpl.java

示例15: AccessModifierComponent

/**
 * Creates a new AccessModifierComponent.
 *
 * @param model
 *            The model to bind to
 * @param container
 *            The parent to create the widgets in
 */
public AccessModifierComponent(AccessModifiableModel model, WizardComponentContainer container) {
	super(container);

	this.model = model;
	this.componentContainer = container;
	this.dataBindingContext = container.getDataBindingContext();

	Label accessModifierLabel = new Label(componentContainer.getComposite(), SWT.NONE);
	accessModifierLabel.setLayoutData(fillLabelDefaults());
	accessModifierLabel.setText("Access modifier:");

	Composite accessModifiersComposite = new Composite(componentContainer.getComposite(), SWT.NONE);
	accessModifiersComposite.setLayout(RowLayoutFactory.swtDefaults().extendedMargins(0, 0, 0, 0).create());

	GridData accessModifiersCompositeLayoutData = fillTextDefaults();
	accessModifiersCompositeLayoutData.horizontalSpan = 2;
	accessModifiersComposite.setLayoutData(accessModifiersCompositeLayoutData);

	publicAccessModifierBox = new Button(accessModifiersComposite, SWT.RADIO);
	publicAccessModifierBox.setText("public");

	projectAccessModifierBox = new Button(accessModifiersComposite, SWT.RADIO);
	projectAccessModifierBox.setText("project");

	privateAccessModifierBox = new Button(accessModifiersComposite, SWT.RADIO);
	privateAccessModifierBox.setText("private");

	internalAnnotationBox = new Button(accessModifiersComposite, SWT.CHECK);
	getInternalAnnotationBox().setText("@Internal");

	setupBindings();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:40,代码来源:AccessModifierComponent.java


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