當前位置: 首頁>>代碼示例>>Java>>正文


Java TabFolder類代碼示例

本文整理匯總了Java中org.eclipse.swt.widgets.TabFolder的典型用法代碼示例。如果您正苦於以下問題:Java TabFolder類的具體用法?Java TabFolder怎麽用?Java TabFolder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TabFolder類屬於org.eclipse.swt.widgets包,在下文中一共展示了TabFolder類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createFeatureListTab

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
private void createFeatureListTab(TabFolder tabFolder, ActiveTab type) {
	TabItem tabItem = new TabItem(tabFolder, SWT.NULL);
	if (type == ActiveTab.ALL_FEATURES) {
		tabItem.setText(ALL_FEATURES_TAB_TITLE);
	} else {
		tabItem.setText(UPDATES_TAB_TITLE);
	}
	ScrolledComposite scroll = new ScrolledComposite(tabFolder, SWT.V_SCROLL | SWT.H_SCROLL);
	scroll.setLayout(new GridLayout());
	scroll.setLayoutData(new GridData());

	Group group = new Group(scroll, SWT.NONE);
	group.setLayout(new GridLayout());
	group.setLayoutData(new GridData());
	listFeatures(group, type);
	scroll.setContent(group);
	scroll.setExpandHorizontal(true);
	scroll.setExpandVertical(true);
	scroll.setMinSize(group.computeSize(SWT.DEFAULT, SWT.DEFAULT));
	tabItem.setControl(scroll);
}
 
開發者ID:wso2,項目名稱:developer-studio,代碼行數:22,代碼來源:UpdaterDialog.java

示例2: selectInitialFilterPage

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
private void selectInitialFilterPage ( final TabFolder tabFolder )
{
    if ( this.initialFilter == null )
    {
        return;
    }

    switch ( this.initialFilter.first )
    {
        case SIMPLE:
            tabFolder.setSelection ( 0 );
            break;
        case FREEFORM:
            tabFolder.setSelection ( 1 );
            break;
        case ADVANCED:
            break;
    }
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:20,代碼來源:EventHistorySearchDialog.java

示例3: createTabFolderOutputDesign

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
/**
 * This method initializes tabFolder
 * 
 */
private void createTabFolderOutputDesign() {
	GridData gridData2 = new org.eclipse.swt.layout.GridData();
	gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData2.grabExcessVerticalSpace = true;
	gridData2.grabExcessHorizontalSpace = true;
	gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	tabFolderOutputDesign = new TabFolder(this, SWT.BOTTOM);
	tabFolderOutputDesign.setLayoutData(gridData2);
	createCompositeDesign();
	createCompositeOutput();
	tabItemOutput = new TabItem(tabFolderOutputDesign, SWT.NONE);
	tabItemOutput.setText("Output");
	tabItemOutput.setControl(compositeOutput);
	tabItemDesign = new TabItem(tabFolderOutputDesign, SWT.NONE);
	tabItemDesign.setText("Design");
	tabItemDesign.setControl(compositeDesign);
	if (connector instanceof HtmlConnector)
		selectTabDesign();
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:24,代碼來源:ConnectorEditorPart.java

示例4: createControl

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
@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,代碼行數:18,代碼來源:TableModifyWizardPage.java

示例5: hookAddToDialogArea

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    SWTUtil.gridLayout(dialogArea);

    final TabFolder folder = new TabFolder(dialogArea, SWT.TOP);
    GridDataBuilder.newInstance().fill().grab().applyTo(folder);

    generalTabItem = new TabItem(folder, SWT.NONE);
    generalTabItem.setText(Messages.getString("BuildPolicyDialog.GeneralTabItemText")); //$NON-NLS-1$
    final GeneralTabControl generalTabControl = new GeneralTabControl(folder, SWT.NONE, configuration);
    generalTabItem.setControl(generalTabControl);

    markersTabItem = new TabItem(folder, SWT.NONE);
    markersTabItem.setText(Messages.getString("BuildPolicyDialog.MarkersTabItemText")); //$NON-NLS-1$
    final MarkerTabControl markerTabControl = new MarkerTabControl(folder, SWT.NONE, configuration);
    markersTabItem.setControl(markerTabControl);
}
 
開發者ID:Microsoft,項目名稱:team-explorer-everywhere,代碼行數:18,代碼來源:BuildPolicyDialog.java

示例6: createTabFolder

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
protected void createTabFolder(final Composite parent) {
    final GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = GridData.FILL;
    gridData.horizontalAlignment = GridData.FILL;

    tabFolder = new TabFolder(parent, SWT.NONE);
    tabFolder.setLayoutData(gridData);

    tabWrapperList = createTabWrapperList(tabFolder);

    for (final ValidatableTabWrapper tab : tabWrapperList) {
        tab.init();
    }

    ListenerAppender.addTabListener(tabFolder, tabWrapperList);

    tabWrapperList.get(0).setInitFocus();
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:21,代碼來源:AbstractTabbedDialog.java

示例7: initialize

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
private void initialize(final Composite parent) {
    keywordCombo = CompositeFactory.createCombo(null, parent, "label.search.keyword", 1);

    replaceCombo = CompositeFactory.createCombo(null, parent, "label.search.replace.word", 1);

    final GridData gridData = new GridData();
    gridData.horizontalAlignment = GridData.FILL;
    gridData.horizontalSpan = 2;
    gridData.grabExcessHorizontalSpace = true;

    tabFolder = new TabFolder(parent, SWT.NONE);
    tabFolder.setLayoutData(gridData);

    createRegionGroup(tabFolder);
    createResultGroup(tabFolder);

    selectAllCheckBox(true);
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:19,代碼來源:SearchDialog.java

示例8: createTabFolder

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
protected void createTabFolder(Composite parent) {
	GridData gridData = new GridData();
	gridData.grabExcessHorizontalSpace = true;
	gridData.grabExcessVerticalSpace = true;
	gridData.verticalAlignment = GridData.FILL;
	gridData.horizontalAlignment = GridData.FILL;

	this.tabFolder = new TabFolder(parent, SWT.NONE);
	this.tabFolder.setLayoutData(gridData);

	this.tabWrapperList = this.createTabWrapperList(this.tabFolder);

	for (ValidatableTabWrapper tab : this.tabWrapperList) {
		tab.init();
	}

	ListenerAppender.addTabListener(tabFolder, tabWrapperList);

	this.tabWrapperList.get(0).setInitFocus();
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:21,代碼來源:AbstractTabbedDialog.java

示例9: initialize

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
private void initialize(Composite parent) {
	this.keywordCombo = CompositeFactory.createCombo(null, parent,
			"label.search.keyword", 1);

	this.replaceCombo = CompositeFactory.createCombo(null, parent,
			"label.search.replace.word", 1);

	GridData gridData = new GridData();
	gridData.horizontalAlignment = GridData.FILL;
	gridData.horizontalSpan = 2;
	gridData.grabExcessHorizontalSpace = true;

	this.tabFolder = new TabFolder(parent, SWT.NONE);
	this.tabFolder.setLayoutData(gridData);

	createRegionGroup(this.tabFolder);
	createResultGroup(this.tabFolder);

	this.selectAllCheckBox(true);
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:21,代碼來源:SearchDialog.java

示例10: createRootComposite

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
@Override
protected Composite createRootComposite(Composite parent) {
	this.tabFolder = new TabFolder(parent, SWT.NONE);

	this.tabItem = new TabItem(this.tabFolder, SWT.NONE);
	this.tabItem.setText(ResourceString.getResourceString("label.basic"));

	Composite composite = CompositeFactory.createComposite(this.tabFolder,
			this.getCompositeNumColumns(), true);
	this.tabItem.setControl(composite);

	this.tabItem = new TabItem(this.tabFolder, SWT.NONE);
	this.tabItem.setText(ResourceString.getResourceString("label.detail"));

	Composite detailComposite = CompositeFactory.createComposite(
			this.tabFolder, 2, true);
	this.initializeDetailTab(detailComposite);
	this.tabItem.setControl(detailComposite);

	return composite;
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:22,代碼來源:AbstractRealColumnDialog.java

示例11: createTabPanel

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
public TabItem createTabPanel(TabFolder folder) {
	this.folder = folder;
	tabIdx   = folder.getItemCount();

	Composite panel = new Composite(folder, SWT.NONE);

	GridLayout layout = new GridLayout(1, true);
	layout.marginWidth  = 0;
	layout.marginHeight = 0;
	panel.setLayout(layout);
	panel.setLayoutData(GridDataFactory.fill(true, true));
	
	fillContent(panel);
	
	TabItem result = new TabItem(folder, SWT.NONE);
	result.setControl(panel);
	result.setText(label);
	return result;
}
 
開發者ID:arisona,項目名稱:ether,代碼行數:20,代碼來源:TabPanel.java

示例12: createPart

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
public Control createPart(Composite parent) {

		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayout(new GridLayout());
		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

		folder = new TabFolder(composite, SWT.NONE);
		folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
		folder.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				updateUI(false);
			}
		});

		try {
			createExistingUserComposite(folder);
			updateUI(false);
		}
		catch (Throwable e1) {
			CloudFoundryPlugin.logError(e1);
		}

		return composite;

	}
 
開發者ID:eclipse,項目名稱:cft,代碼行數:27,代碼來源:CloudFoundryCredentialsPart.java

示例13: loadSelectConfigReferencedObjectsTabItem

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
private void loadSelectConfigReferencedObjectsTabItem(TabFolder tabfolder,
			TabItem referencedtabItem, BTSConfigItem configItem) {
		Composite referencedEditComp = (Composite) referencedtabItem
				.getControl();
		referencedTypeSelector = new ObjectTypeSelectionTreeComposite(
				configurationController, referencedEditComp, SWT.NONE);
		if (configItem.getPassportEditorConfig() == null) {

		} 
		//FIXME update
//		else {
//			if (configItem.getPassportEditorConfig().getReferencedTypesPath() == null) {
//				configItem.getPassportEditorConfig()
//						.setReferencedTypesPath(
//								BtsmodelFactory.eINSTANCE
//										.createBTSObjectTypePathRoot());
//			}
//			referencedTypeSelector.setPathInput(configItem
//					.getPassportEditorConfig().getReferencedTypesPath(),
//					getEditingDomain(configItem), configurationController
//							.getActiveConfiguration());
//		}

	}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:25,代碼來源:BTSConfigurationDialog.java

示例14: createPart

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
public Control createPart(Composite parent) {

		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayout(new GridLayout());
		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

		folder = new TabFolder(composite, SWT.NONE);
		folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
		folder.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				updateUI(false);
			}
		});

		try {
			createExistingUserComposite(folder);
			updateUI(false);
		}
		catch (Throwable e1) {
			DockerFoundryPlugin.logError(e1);
		}

		return composite;

	}
 
開發者ID:osswangxining,項目名稱:dockerfoundry,代碼行數:27,代碼來源:DockerFoundryCredentialsPart.java

示例15: LatticeTabUI

import org.eclipse.swt.widgets.TabFolder; //導入依賴的package包/類
private LatticeTabUI(TabFolder tabFolderMIPA) 
{
	TabItem tabItemLattice = new TabItem(tabFolderMIPA, SWT.NONE);
	tabItemLattice.setToolTipText("representation of lattice");
	tabItemLattice.setText("Lattice");

	SashForm sashLattice = new SashForm(tabFolderMIPA, SWT.NONE);
	tabItemLattice.setControl(sashLattice);

	StyledText styledTextLattice = new StyledText(sashLattice, SWT.BORDER
			| SWT.READ_ONLY);
	styledTextLattice.setText("Information for lattice are given here \n.");
	styledTextLattice.setToolTipText("Information for lattice.");

	Group grpLatticeTree = new Group(sashLattice, SWT.NONE);
	grpLatticeTree.setToolTipText("tree view of lattice");
	grpLatticeTree.setText("Lattice Tree View");
	
	latticeTreeViewer = new TreeViewer(grpLatticeTree, SWT.BORDER);
	Tree latticeTree = latticeTreeViewer.getTree();
	latticeTree.setBounds(10, 29, 444, 526);
	//latticeTreeViewer.setLabelProvider(new LatticeTreeLabelProvider());
	//latticeTreeViewer.setContentProvider(new LatticeTreeContentProvider());
	sashLattice.setWeights(new int[] { 1, 1 });
}
 
開發者ID:alg-nju,項目名稱:mipa,代碼行數:26,代碼來源:LatticeTabUI.java


注:本文中的org.eclipse.swt.widgets.TabFolder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。