当前位置: 首页>>代码示例>>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;未经允许,请勿转载。