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


Java TabSheet.setHeight方法代碼示例

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


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

示例1: buildVerticalLayoutRightPanel

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildVerticalLayoutRightPanel() {
	// common part: create layout
	verticalLayoutRightPanel = new VerticalLayout();
	verticalLayoutRightPanel.setImmediate(false);
	verticalLayoutRightPanel.setWidth("100.0%");
	verticalLayoutRightPanel.setHeight("-1px");
	verticalLayoutRightPanel.setMargin(true);
	verticalLayoutRightPanel.setSpacing(true);
	
	// horizontalLayoutRightToolbar
	horizontalLayoutRightToolbar = buildHorizontalLayoutRightToolbar();
	verticalLayoutRightPanel.addComponent(horizontalLayoutRightToolbar);
	
	// tabSheet
	tabSheet = new TabSheet();
	tabSheet.setImmediate(true);
	tabSheet.setWidth("100.0%");
	tabSheet.setHeight("-1px");
	verticalLayoutRightPanel.addComponent(tabSheet);
	verticalLayoutRightPanel.setExpandRatio(tabSheet, 1.0f);
	
	return verticalLayoutRightPanel;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:25,代碼來源:PolicyWorkspace.java

示例2: createGroupDefinitionTabs

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
private TabSheet createGroupDefinitionTabs() {
    final TabSheet tabSheet = new TabSheet();
    tabSheet.setId(UIComponentIdProvider.ROLLOUT_GROUPS);
    tabSheet.setWidth(850, Unit.PIXELS);
    tabSheet.setHeight(300, Unit.PIXELS);
    tabSheet.setStyleName(SPUIStyleDefinitions.ROLLOUT_GROUPS);

    final TabSheet.Tab simpleTab = tabSheet.addTab(createSimpleGroupDefinitionTab(),
            i18n.getMessage("caption.rollout.tabs.simple"));
    simpleTab.setId(UIComponentIdProvider.ROLLOUT_SIMPLE_TAB);

    final TabSheet.Tab advancedTab = tabSheet.addTab(defineGroupsLayout,
            i18n.getMessage("caption.rollout.tabs.advanced"));
    advancedTab.setId(UIComponentIdProvider.ROLLOUT_ADVANCED_TAB);

    tabSheet.addSelectedTabChangeListener(event -> validateGroups());

    return tabSheet;
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:20,代碼來源:AddUpdateRolloutWindowLayout.java

示例3: buildHorizontalLayout_3

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_3() {
	// common part: create layout
	horizontalLayout_3 = new HorizontalLayout();
	horizontalLayout_3.setImmediate(false);
	horizontalLayout_3.setWidth("100.0%");
	horizontalLayout_3.setHeight("100.0%");
	horizontalLayout_3.setMargin(false);
	
	// tabSheet_1
	tabSheet_1 = new TabSheet();
	tabSheet_1.setImmediate(false);
	tabSheet_1.setWidth("100.0%");
	tabSheet_1.setHeight("100.0%");
	horizontalLayout_3.addComponent(tabSheet_1);
	
	return horizontalLayout_3;
}
 
開發者ID:alenca,項目名稱:zklogtool,代碼行數:19,代碼來源:MainLayout.java

示例4: buildMainLayout

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("100%");
	mainLayout.setMargin(false);
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("100.0%");
	
	// tabSheetMessage
	tabSheetMessage = new TabSheet();
	tabSheetMessage.setImmediate(false);
	tabSheetMessage.setWidth("100.0%");
	tabSheetMessage.setHeight("100.0%");
	mainLayout.addComponent(tabSheetMessage);
	mainLayout.setExpandRatio(tabSheetMessage, 1.0f);
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:24,代碼來源:CaptureView.java

示例5: buildHorizontalSplitPanelOrganization

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalSplitPanel buildHorizontalSplitPanelOrganization() {
	// common part: create layout
	horizontalSplitPanelOrganization = new HorizontalSplitPanel();
	horizontalSplitPanelOrganization.setSplitPosition(25, Sizeable.UNITS_PERCENTAGE);
	horizontalSplitPanelOrganization.setImmediate(false);
	horizontalSplitPanelOrganization.setWidth("100.0%");
	horizontalSplitPanelOrganization.setHeight("100.0%");
	horizontalSplitPanelOrganization.setMargin(false);
	
	// tabSheetOrganization		
	tabSheetOrganization = new TabSheet();		
	tabSheetOrganization.setImmediate(true);
	tabSheetOrganization.setWidth("100.0%");
	tabSheetOrganization.setHeight("100.0%");
	horizontalSplitPanelOrganization.addComponent(tabSheetOrganization);
	
	return horizontalSplitPanelOrganization;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:20,代碼來源:OrganizationView.java

示例6: buildTabSheet

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private TabSheet buildTabSheet() {
	// common part: create layout
	tabSheet = new TabSheet();
	tabSheet.setImmediate(true);
	tabSheet.setWidth("100.0%");
	tabSheet.setHeight("-1px");
	
	// verticalLayout_2
	verticalLayout_2 = buildVerticalLayout_2();
	tabSheet.addTab(verticalLayout_2, "Dirección", null);
	
	// verticalLayout_3
	verticalLayout_3 = buildVerticalLayout_3();
	tabSheet.addTab(verticalLayout_3, "Coordenadas", null);
	
	return tabSheet;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:19,代碼來源:LocationField.java

示例7: buildMainLayout

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(false);
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("-1px");
	
	// tabSheet
	tabSheet = new TabSheet();
	tabSheet.setImmediate(false);
	tabSheet.setWidth("100.0%");
	tabSheet.setHeight("100.0%");
	mainLayout.addComponent(tabSheet);
	mainLayout.setExpandRatio(tabSheet, 1.0f);
	
	return mainLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:24,代碼來源:LocalizationField.java

示例8: buildProfileLayout

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildProfileLayout() {
	// common part: create layout
	profileLayout = new VerticalLayout();
	profileLayout.setImmediate(false);
	profileLayout.setWidth("100.0%");
	profileLayout.setHeight("100.0%");
	profileLayout.setMargin(true);
	profileLayout.setSpacing(true);
	
	// profileTabsheet
	profileTabsheet = new TabSheet();
	profileTabsheet.setImmediate(false);
	profileTabsheet.setWidth("100.0%");
	profileTabsheet.setHeight("100.0%");
	profileLayout.addComponent(profileTabsheet);
	profileLayout.setExpandRatio(profileTabsheet, 1.0f);
	
	return profileLayout;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:21,代碼來源:LogoutViewForm.java

示例9: buildVerticalLayoutPanel

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildVerticalLayoutPanel() {
	// common part: create layout
	verticalLayoutPanel = new VerticalLayout();
	verticalLayoutPanel.setImmediate(false);
	verticalLayoutPanel.setWidth("100.0%");
	verticalLayoutPanel.setHeight("100.0%");
	verticalLayoutPanel.setMargin(false);
	
	// tabSheetModule
	tabSheetModule = new TabSheet();
	tabSheetModule.setImmediate(false);
	tabSheetModule.setWidth("100.0%");
	tabSheetModule.setHeight("100.0%");

	verticalLayoutPanel.addComponent(tabSheetModule);
	verticalLayoutPanel.setExpandRatio(tabSheetModule, 1.0f);
	
	return verticalLayoutPanel;
}
 
開發者ID:thingtrack,項目名稱:konekti,代碼行數:21,代碼來源:WorkbenchPanel.java

示例10: buildMainLayout

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new AbsoluteLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("100%");
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("100.0%");
	
	// tabSheetOpciones
	tabSheetOpciones = new TabSheet();
	tabSheetOpciones.setImmediate(false);
	tabSheetOpciones.setWidth("100.0%");
	tabSheetOpciones.setHeight("100.0%");
	mainLayout.addComponent(tabSheetOpciones,
			"top:20.0px;bottom:20.0px;left:0.0px;");
	
	return mainLayout;
}
 
開發者ID:unicesi,項目名稱:academ,代碼行數:23,代碼來源:PanelOpciones.java

示例11: creaSolapas

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
private void creaSolapas(){
		log.debug("Creo las pestañas de la pagina.");
		
		parametria = new TabSheet();
		parametria.setHeight(100.0f, Unit.PERCENTAGE);
		parametria.addStyleName(ValoTheme.TABSHEET_EQUAL_WIDTH_TABS);
		parametria.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
/*
		reportes.addTab(parametriaRamo.getTab(), "Ramo");
		reportes.addTab(parametriaProducto.getTab(),  "Producto");
		reportes.addTab(parametriaPlan.getTab(),  "Plan");
		reportes.addTab(parametriaCobertura.getTab(),  "Cobertura");
*/
	}
 
開發者ID:damiancom,項目名稱:garantia,代碼行數:15,代碼來源:ParametriaView.java

示例12: buildMainLayout

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("100%");
	mainLayout.setMargin(true);
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("100.0%");
	
	// horizontalLayout_1
	horizontalLayout_1 = buildHorizontalLayout_1();
	mainLayout.addComponent(horizontalLayout_1);
	
	// tabSheet
	tabSheet = new TabSheet();
	tabSheet.setImmediate(false);
	tabSheet.setWidth("100.0%");
	tabSheet.setHeight("100.0%");
	mainLayout.addComponent(tabSheet);
	mainLayout.setExpandRatio(tabSheet, 1.0f);
	
	// labelCopyright
	labelCopyright = new Label();
	labelCopyright.setImmediate(false);
	labelCopyright.setWidth("-1px");
	labelCopyright.setHeight("40px");
	labelCopyright
			.setValue("<center>Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</center>");
	mainLayout.addComponent(labelCopyright);
	mainLayout.setComponentAlignment(labelCopyright, new Alignment(48));
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:38,代碼來源:XacmlAdminConsole.java

示例13: createPageVisitHistory

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
/**
 * Creates the page visit history.
 *
 * @param pageName
 *            the page name
 * @param pageId
 *            the page id
 * @param panelContent
 *            the panel content
 */
protected final void createPageVisitHistory(final String pageName, final String pageId,
		final VerticalLayout panelContent) {

	final TabSheet tabsheet = new TabSheet();
	tabsheet.setWidth(100, Unit.PERCENTAGE);
	tabsheet.setHeight(100, Unit.PERCENTAGE);

	panelContent.addComponent(tabsheet);
	panelContent.setExpandRatio(tabsheet, ContentRatio.LARGE);

	final HorizontalLayout tabContentPageItemRankHistory = new HorizontalLayout();
	tabContentPageItemRankHistory.setWidth(100, Unit.PERCENTAGE);
	tabContentPageItemRankHistory.setHeight(100, Unit.PERCENTAGE);
	final Tab tabPageItemRankHistory = tabsheet.addTab(tabContentPageItemRankHistory);

	tabPageItemRankHistory.setCaption(CURRENT_PAGE_VISIT_HISTORY);
	adminChartDataManager.createApplicationActionEventPageElementDailySummaryChart(tabContentPageItemRankHistory,
			pageName, pageId);

	final HorizontalLayout tabContentPageModeSummary = new HorizontalLayout();
	tabContentPageModeSummary.setWidth(100, Unit.PERCENTAGE);
	tabContentPageModeSummary.setHeight(100, Unit.PERCENTAGE);
	final Tab tabPageModeSummary = tabsheet.addTab(tabContentPageModeSummary);
	tabPageModeSummary.setCaption(GENERAL_PAGE_MODE_PAGE_VISIT);

	adminChartDataManager.createApplicationActionEventPageModeDailySummaryChart(tabContentPageModeSummary,
			pageName);

}
 
開發者ID:Hack23,項目名稱:cia,代碼行數:40,代碼來源:AbstractPageModContentFactoryImpl.java

示例14: buildUserPages

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@AutoGenerated
private TabSheet buildUserPages(UsersUI uui) {
	// common part: create layout
	userPages = new TabSheet();
	userPages.setImmediate(true);
	userPages.setWidth("100.0%");
	userPages.setHeight("100%");

	// hide the tabs because we don't want the user switching manually.
	userPages.hideTabs(true);

	// userListTab
	userListTab = new UserListComponent();
	userListTab.setImmediate(false);
	userListTab.setWidth("100.0%");
	userListTab.setHeight("100%");
	userPages.addTab(userListTab, "List", null);

	// userDetailTab
	userDetailTab = new UserDetailComponent(uui);
	userDetailTab.setImmediate(false);
	userDetailTab.setWidth("100.0%");
	userDetailTab.setHeight("100%");
	userPages.addTab(userDetailTab, "Detail", null);

	return userPages;
}
 
開發者ID:dnebinger,項目名稱:vaadin-sample-portlet,代碼行數:28,代碼來源:LiferayUsersComponent.java

示例15: attach

import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
public void attach() {
    setWidth("100%");
    setHeight("100%");
    setCaption(ViewProperties.getCaption("panel.loadBalancerDesc"));
    addStyleName("loadbalancer-desc-panel");
    addStyleName(Reindeer.PANEL_LIGHT);

    VerticalLayout layout = (VerticalLayout) getContent();
    layout.setWidth("100%");
    layout.setHeight("100%");
    layout.setMargin(false);
    layout.setSpacing(false);
    layout.addStyleName("loadbalancer-desc-layout");

    tab = new TabSheet();
    tab.addStyleName(Reindeer.TABSHEET_BORDERLESS);
    tab.setWidth("100%");
    tab.setHeight("100%");
    addComponent(tab);

    // 基本情報
    loadBalancerDescBasic = new LoadBalancerDescBasic(sender);
    tab.addTab(loadBalancerDescBasic, ViewProperties.getCaption("tab.loadBalancerDescBasic"),
            Icons.BASIC.resource());

    // 詳細情報
    loadBalancerDescServer = new LoadBalancerDescServer(sender);
    tab.addTab(loadBalancerDescServer, ViewProperties.getCaption("tab.loadBalancerDescServer"),
            Icons.DETAIL.resource());

    tab.addListener(TabSheet.SelectedTabChangeEvent.class, this, "selectedTabChange");
}
 
開發者ID:primecloud-controller-org,項目名稱:primecloud-controller,代碼行數:34,代碼來源:LoadBalancerDesc.java


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