當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。