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


Java TabFolder.setLayoutData方法代碼示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: createContents

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
@Override
protected Control createContents(Composite parent) {
    TabFolder tabFolder = new TabFolder(parent, SWT.TOP);
    tabFolder.setLayout(new GridLayout(1, true));
    tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));

    TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);
    tabFilter.setText("Filters");

    Group defPanel = new Group(tabFolder, SWT.NONE);
    defPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    defPanel.setLayout(new GridLayout(1, false));
    defPanel.setText("Search Filters");

    tabFilter.setControl(defPanel);

    TabItem support = new TabItem(tabFolder, SWT.NONE);
    support.setText("Misc...");
    Composite supportPanel = createContainer(tabFolder);
    support.setControl(supportPanel);
    SupportPanel.createSupportLinks(supportPanel);

    return super.createContents(defPanel);
}
 
開發者ID:iloveeclipse,項目名稱:datahierarchy,代碼行數:25,代碼來源:DataHierarchyPreferencePage.java

示例7: createDialogArea

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
/***************************************************************************
 * Create the dialog area contents.
 * 
 * @param parent
 *            The base composite of the dialog
 * @return The resulting contents
 **************************************************************************/
@Override
protected Control createDialogArea(Composite parent)
{
	// Main composite of the dialog area -----------------------------------
	Composite top = new Composite(parent, SWT.NONE);
	GridData areaData = new GridData(GridData.FILL_BOTH);
	areaData.widthHint = 600;
	top.setLayoutData(areaData);
	GridLayout layout = new GridLayout();
	layout.numColumns = 1;
	top.setLayout(layout);

	TabFolder folder = new TabFolder(top, SWT.BORDER);
	folder.setLayoutData(new GridData(GridData.FILL_BOTH));

	createGenericProperties(folder);
	createHistoryOfChanges(folder);

	folder.layout();

	return parent;
}
 
開發者ID:Spacecraft-Code,項目名稱:SPELL,代碼行數:30,代碼來源:PropertiesDialog.java

示例8: createContents

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
@Override
protected Control createContents(Composite parent) {
    TabFolder tabFolder = new TabFolder(parent, SWT.TOP);
    tabFolder.setLayout(new GridLayout(1, true));
    tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));

    TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);
    tabFilter.setText("Filters");

    Group defPanel = new Group(tabFolder, SWT.NONE);
    defPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    defPanel.setLayout(new GridLayout(1, false));
    defPanel.setText("Search Filters");

    tabFilter.setControl(defPanel);

    TabItem support = new TabItem(tabFolder, SWT.NONE);
    support.setText("Misc...");
    Composite supportPanel = createContainer(tabFolder);
    support.setControl(supportPanel);
    SupportPanel.createSupportLinks(supportPanel);

    createFilterPreferences(defPanel);

    return tabFolder;
}
 
開發者ID:iloveeclipse,項目名稱:jdepend4eclipse,代碼行數:27,代碼來源:JDependPreferencePage.java

示例9: createControl

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
/**
 * Creates the CRS PreferencePage root control with no CRS selected
 * 
 * @param parent
 *            PreferencePage for this chooser
 * @return control for the PreferencePage
 */
public Control createControl(final Composite parent) {
	GridData gridData = null;

	gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
	folder = new TabFolder(parent, SWT.NONE);
	folder.setLayoutData(gridData);

	final TabItem standard = new TabItem(folder, SWT.NONE);
	standard.setText("Standard CRS");
	final Control stdCRS = createStandardCRSControl(folder);
	standard.setControl(stdCRS);

	final TabItem custom = new TabItem(folder, SWT.NONE);
	custom.setText("Custom CRS");
	final Control cstCRS = createCustomCRSControl(folder);
	custom.setControl(cstCRS);

	return folder;
}
 
開發者ID:gama-platform,項目名稱:gama,代碼行數:27,代碼來源:CRSChooser.java

示例10: createParameterExceptionsFolder

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
private void createParameterExceptionsFolder(Composite composite) {
	TabFolder folder= new TabFolder(composite, SWT.TOP);
	folder.setLayoutData(new GridData(GridData.FILL_BOTH));

	TabItem item= new TabItem(folder, SWT.NONE);
	item.setText(RefactoringMessages.ChangeSignatureInputPage_parameters);
	item.setControl(createParameterTableControl(folder));

	TabItem itemEx= new TabItem(folder, SWT.NONE);
	itemEx.setText(RefactoringMessages.ChangeSignatureInputPage_exceptions);
	itemEx.setControl(createExceptionsTableControl(folder));

	folder.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent e) {
			((TabItem) e.item).getControl().setFocus();
		}
	});
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:20,代碼來源:ChangeSignatureWizard.java

示例11: createContents

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
@Override
protected Control createContents(Composite parent) {
	isInit = true;
	Composite tParent = new Composite(parent, SWT.BORDER);
	tParent.setLayoutData(new GridData(GridData.FILL_BOTH));
	tParent.setLayout(new GridLayout());
	
	addSpellInstalGroup(tParent);
	
	tabFolder = new TabFolder(tParent, SWT.NONE);
	tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
	
	hunspellTabItem = new TabItem(tabFolder, SWT.NONE);
	hunspellTabItem.setText(Messages.getString("qa.preference.SpellPage.hunspellTab"));
	
	aspellTabItem = new TabItem(tabFolder, SWT.NONE);
	aspellTabItem.setText(Messages.getString("qa.preference.SpellPage.aspellTab"));
	
	createHunspellCmp();
	createAspellCmp();
	
	initData();
	return parent;
}
 
開發者ID:heartsome,項目名稱:translationstudio8,代碼行數:25,代碼來源:SpellPage.java

示例12: createLeftContainerTabFolder

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
private TabFolder createLeftContainerTabFolder(Composite leftContainer) {
	GridData tabGridData = new GridData();
	tabGridData.horizontalAlignment = GridData.FILL;
	tabGridData.verticalAlignment = GridData.FILL;
	tabGridData.horizontalSpan = 3;
	tabGridData.verticalSpan = 7;
	tabGridData.grabExcessVerticalSpace = true;
	tabGridData.heightHint = 600;
	tabGridData.widthHint = 700;

	final TabFolder tabFolder = new TabFolder(leftContainer, SWT.CHECK | SWT.BORDER | SWT.H_SCROLL);
	tabFolder.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent event) {
			if (tabFolder.getSelection()[0].getText().equals(ALL_FEATURES_TAB_TITLE)) {
				installBtn.setEnabled(!selectedFeatures.isEmpty());
			} else if (tabFolder.getSelection()[0].getText().equals(UPDATES_TAB_TITLE)) {
				installBtn.setEnabled(!selectedUpdates.isEmpty());
			}
		}
	});
	tabFolder.setLayoutData(tabGridData);
	tabFolder.setSize(400, 420);
	return tabFolder;
}
 
開發者ID:wso2,項目名稱:developer-studio,代碼行數:26,代碼來源:UpdaterDialog.java

示例13: createTabLogView

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
private void createTabLogView() {
    tabLogView = new TabFolder(shell, SWT.NONE);
    tabLogView.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));

    TabItem itmSummaryLog = new TabItem(tabLogView, SWT.NONE);
    itmSummaryLog.setText("Summary Log");
    txtSummaryArea = new Text(tabLogView, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.H_SCROLL);
    txtSummaryArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    txtSummaryArea.setText(deployLog);
    txtSummaryArea.setEditable(false);
    itmSummaryLog.setControl(txtSummaryArea);

    TabItem itmDebugLog = new TabItem(tabLogView, SWT.NONE);
    itmDebugLog.setText("Debug Log");
    txtDebugArea = new Text(tabLogView, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.H_SCROLL);
    txtDebugArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    txtDebugArea.setText(Utils.isNotEmpty(debugLog) ? debugLog : "n/a");
    txtDebugArea.setEditable(false);
    itmDebugLog.setControl(txtDebugArea);

}
 
開發者ID:forcedotcom,項目名稱:idecore,代碼行數:22,代碼來源:LogViewShell.java

示例14: createNotificationsTabFolder

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
private void createNotificationsTabFolder()
{
    _notificationTabFolder = new TabFolder(_form.getBody(), SWT.NONE);
    FormData layoutData = new FormData();
    layoutData.left = new FormAttachment(0);
    layoutData.top = new FormAttachment(0);
    layoutData.right = new FormAttachment(100);
    layoutData.bottom = new FormAttachment(100);
    _notificationTabFolder.setLayoutData(layoutData);
    _notificationTabFolder.setVisible(false);
    
    VHNotificationsTabControl controller = new VHNotificationsTabControl(_notificationTabFolder);       
    TabItem tab = new TabItem(_notificationTabFolder, SWT.NONE);
    tab.setText(NOTIFICATIONS);
    tab.setData(TabControl.CONTROLLER, controller);
    tab.setControl(controller.getControl());
}
 
開發者ID:wso2,項目名稱:andes,代碼行數:18,代碼來源:MBeanView.java

示例15: createDialogArea

import org.eclipse.swt.widgets.TabFolder; //導入方法依賴的package包/類
/**
 * Creates and returns the contents of the upper part of this dialog (above
 * the button bar).
 * <p>
 * The <code>TabDialog</code> overrides this framework method to create and
 * return a new <code>Composite</code> with an empty tab folder.
 * </p>
 * 
 * @param parent
 *            the parent composite to contain the dialog area
 * @return the dialog area control
 */
protected Control createDialogArea( Composite parent )
{
	Composite composite = (Composite) super.createDialogArea( parent );
	TabFolder tabFolder = new TabFolder( composite, SWT.TOP );
	tabFolder.setLayoutData( new GridData( GridData.FILL_BOTH ) );
	addTabPages( ); // add pages
	for ( Iterator<TabPage> iterator = tabList.iterator( ); iterator.hasNext( ); )
	{
		TabPage page = iterator.next( );
		TabItem tabItem = new TabItem( tabFolder, SWT.NONE );
		tabItem.setControl( page.createControl( tabFolder ) );
		tabItem.setText( page.getName( ) );
	}
	return composite;
}
 
開發者ID:eclipse,項目名稱:birt,代碼行數:28,代碼來源:TabDialog.java


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