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


Java SWT.NULL属性代码示例

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


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

示例1: initialize

public void initialize(Composite composite) {
	if ( autoDHT ){
		CoreFactory.addCoreRunningListener(new CoreRunningListener() {

			@Override
			public void coreRunning(Core core) {
				DHTOpsView.this.core = core;
				init(core);
			}
		});
	}

	panel = new Composite(composite,SWT.NULL);
	panel.setLayout(new FillLayout());
	drawPanel = new DHTOpsPanel(panel);
	drawPanel.setAutoAlpha(autoAlpha);
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:17,代码来源:DHTOpsView.java

示例2: DiskInfoTab

/**
 * Create the DISK INFO tab.
 */
public DiskInfoTab(CTabFolder tabFolder, FormattedDisk[] disks) {
	this.formattedDisks = disks;
	
	CTabItem ctabitem = new CTabItem(tabFolder, SWT.NULL);
	ctabitem.setText(textBundle.get("DiskInfoTab.Title")); //$NON-NLS-1$
	
	tabFolder.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent event) {
			getInfoTable().removeAll();
			buildDiskInfoTable(getFormattedDisk(0));	// FIXME!
		}
	});
	
	ScrolledComposite scrolledComposite = new ScrolledComposite(
		tabFolder, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
	scrolledComposite.setExpandHorizontal(true);
	scrolledComposite.setExpandVertical(true);
	ctabitem.setControl(scrolledComposite);
	
	composite = new Composite(scrolledComposite, SWT.NONE);
	createDiskInfoTable();
	if (disks.length > 1) {
		RowLayout layout = new RowLayout(SWT.VERTICAL);
		layout.wrap = false;
		composite.setLayout(layout);
		for (int i=0; i<disks.length; i++) {
			Label label = new Label(composite, SWT.NULL);
			label.setText(disks[i].getDiskName());
			buildDiskInfoTable(disks[i]);
		}
	} else {
		composite.setLayout(new FillLayout());
		buildDiskInfoTable(disks[0]);
	}
	composite.pack();
	scrolledComposite.setContent(composite);
	scrolledComposite.setMinSize(
		composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
}
 
开发者ID:AppleCommander,项目名称:AppleCommander,代码行数:42,代码来源:DiskInfoTab.java

示例3: createControl

@Override
public void createControl(Composite parent) {
	final TabFolder tabFolder = new TabFolder(parent, SWT.NULL);
	String[] tabIndex = new String[] { "基本属性", "备注", "其他" };
	for (int i = 0; i < tabIndex.length - 1; i++) {
		TabItem tabItem = new TabItem(tabFolder, SWT.NULL);
		tabItem.setText(tabIndex[i]);
		Composite composite = new Composite(tabFolder, SWT.NULL);
		if (i == 0) {
			createBasicControl(composite);
		} else if (i == 1) {
			createCommentControl(composite);
		}
		tabItem.setControl(composite);
	}
	setControl(parent);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:TableModifyWizardPage.java

示例4: initialize

private void initialize(Composite composite) {

    mainPanel = new Composite(composite,SWT.NULL);
    GridLayout mainLayout = new GridLayout();
    mainPanel.setLayout(mainLayout);

    CoreFactory.addCoreRunningListener(new CoreRunningListener() {
			@Override
			public void coreRunning(Core core) {
				Utils.execSWTThread(new AERunnable() {
					@Override
					public void runSupport() {
						if (mainPanel == null || mainPanel.isDisposed()) {
							return;
						}
						createGeneralPanel();
						createConnectionPanel();
						createCapacityPanel();
						createAutoSpeedPanel();

						initialised	= true;
					}
				});
			}
		});
  }
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:26,代码来源:TransferStatsView.java

示例5: createControl

/**
 * Creates the page control by creating individual options in the order
 * subject to their position in the list.'
 * 
 * @param composite
 */
public void createControl(Composite composite) {
	Composite container = new Composite(composite, SWT.NULL);
	GridLayout layout = new GridLayout();
	layout.numColumns = 3;
	layout.verticalSpacing = 9;
	container.setLayout(layout);

	for (int i = 0; i < options.size(); i++) {
		TemplateOption option = (TemplateOption) options.get(i);
		option.createControl(container, 3);
	}
	if (helpContextId != null)
		PlatformUI.getWorkbench().getHelpSystem().setHelp(container, helpContextId);
	setControl(container);
	Dialog.applyDialogFont(container);
	container.forceFocus();
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:23,代码来源:OptionTemplateWizardPage.java

示例6: initialize

public void
initialize(
	Composite _parent_composite )
{
	parent_composite	= _parent_composite;

	composite = new Composite( parent_composite, SWT.NULL );
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:8,代码来源:SubscriptionManagerUI.java

示例7: configSectionCreate

@Override
public Composite configSectionCreate(final Composite parent) {

  // Sub-Section: File -> Torrent
  // ----------------------------
  Composite cTorrent = new Composite(parent, SWT.NULL);

  configSectionCreateSupport( cTorrent );

  return( cTorrent );
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:11,代码来源:ConfigSectionFileTorrents.java

示例8: createControl

@Override
public void createControl(Composite parent) {
	initializeDialogUnits(parent);

	Composite composite = new Composite(parent, SWT.NULL);
	composite.setLayout(new FillLayout());
	text = new Text(composite, SWT.MULTI | SWT.READ_ONLY | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);

	setControl(composite);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:10,代码来源:SpecExportCodeSummaryPage.java

示例9: createGroup

protected Group createGroup(Composite parent, String text) {
	Group group = new Group(parent, SWT.NULL);
	group.setText(text);
	GridLayout locationLayout = new GridLayout();
	locationLayout.numColumns = 3;
	locationLayout.marginHeight = 10;
	locationLayout.marginWidth = 10;
	group.setLayout(locationLayout);
	return group;
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:10,代码来源:LaunchConfigurationTab.java

示例10: addRestartMenuItem

public static MenuItem addRestartMenuItem(Menu menuParent) {
	MenuItem file_restart = new MenuItem(menuParent, SWT.NULL);
	Messages.setLanguageText(file_restart, MENU_ID_RESTART); //$NON-NLS-1$

	file_restart.addListener(SWT.Selection, new Listener() {

		@Override
		public void handleEvent(Event event) {
			UIFunctionsManagerSWT.getUIFunctionsSWT().dispose(true, false);
		}
	});
	return file_restart;
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:13,代码来源:MenuFactory.java

示例11: createControl

@Override
public void createControl(Composite parent) {
	final TabFolder tabFolder = new TabFolder(parent, SWT.BORDER);
	String[] tabIndex = new String[] { "基本属性", "描述", "其他" };
	for (int i = 0; i < tabIndex.length; i++) {
		TabItem tabItem = new TabItem(tabFolder, SWT.NULL);
		tabItem.setText(tabIndex[i]);
		Composite composite = new Composite(tabFolder, SWT.NULL);
		if (i == 0) {
			createBasicControl(composite);
		}
		tabItem.setControl(composite);
	}
	setControl(parent);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:15,代码来源:ColumnModifyWizardPage.java

示例12: initialize

private void initialize(Composite composite) {
	CoreFactory.addCoreRunningListener(new CoreRunningListener() {

	@Override
	public void coreRunning(Core core) {
		VivaldiView.this.core = core;
		init(core);
	}
});

	panel = new Composite(composite,SWT.NULL);
  panel.setLayout(new FillLayout());
  drawPanel = new VivaldiPanel(panel);
	drawPanel.setAutoAlpha(autoAlpha);
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:15,代码来源:VivaldiView.java

示例13: createControl

@Override
public void createControl(Composite parent) {
	Composite container = new Composite(parent, SWT.NULL);
	GridLayout layout = new GridLayout();
	container.setLayout(layout);
	layout.numColumns = 3;
	layout.verticalSpacing = 9;
	createDbConnectionControl(container);
	initDbConnectionControl();
	addListeners();
	setControl(container);
	setPageComplete(validatePage());
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:13,代码来源:DbConectionWizardPage.java

示例14: createPageLayout

protected Composite createPageLayout(Composite parent) {
	Composite main = new Composite(parent, SWT.NULL);
	main.setLayout(new GridLayout());
	main.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
	return main;
}
 
开发者ID:Yakindu,项目名称:solidity-ide,代码行数:6,代码来源:SolidityCompilerPreferencePage.java

示例15: createControl

@Override
public void createControl(Composite parent) {
	super.createControl(parent);
	Composite control = (Composite) getControl();

	Composite extensionGroup = new Composite(control, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	extensionGroup.setLayout(layout);
	extensionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

	Label refOccieLabel = new Label(extensionGroup, SWT.NONE);
	refOccieLabel.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, true));
	refOccieLabel.setText(Messages.NewConnectorWizard_RefExtensionLabel);
	refOccieLabel.setFont(parent.getFont());

	Composite composite = new Composite(extensionGroup, SWT.NULL);
	GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
	composite.setLayoutData(layoutData);
	TableColumnLayout tableLayout = new TableColumnLayout();
	composite.setLayout(tableLayout);

	Table table = new Table(composite,
			SWT.CHECK | SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);
	refExtensionViewer = new CheckboxTableViewer(table);

	refExtensionViewer.setContentProvider(ArrayContentProvider.getInstance());

	refExtensionViewer.addSelectionChangedListener(new ISelectionChangedListener() {
		@Override
		public void selectionChanged(SelectionChangedEvent event) {
			setPageComplete(validatePage());
		}
	});

	Collection<String> registeredExtensions = new ArrayList<String>(
			OcciRegistry.getInstance().getRegisteredExtensions());
	// removed the OCCI core extension as it is added by default.
	registeredExtensions.remove(OcciCoreConstants.OCCI_CORE_SCHEME);
	refExtensionViewer.setInput(registeredExtensions);
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:41,代码来源:NewConnectorWizard.java


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