本文整理匯總了Java中com.vaadin.ui.TabSheet.setWidth方法的典型用法代碼示例。如果您正苦於以下問題:Java TabSheet.setWidth方法的具體用法?Java TabSheet.setWidth怎麽用?Java TabSheet.setWidth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.vaadin.ui.TabSheet
的用法示例。
在下文中一共展示了TabSheet.setWidth方法的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例11: ImportExportView
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
public ImportExportView() {
super("Import / Export");
TabSheet mainLayout = new TabSheet();
mainLayout.setWidth(100, PERCENTAGE);
mainLayout.addTab(new HttpSourceImportExport(), "HTTP Sources");
mainLayout.addTab(new HttpSourceTestImportExport(), "HTTP Source Tests");
mainLayout.addTab(new NamedQueryImportExport(), "Named Queries");
addComponent(mainLayout);
}
示例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 © 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;
}
示例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);
}
示例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;
}
示例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");
}