本文整理汇总了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);
}
示例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;
}
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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());
// }
}
示例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;
}
示例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 });
}