本文整理匯總了Java中com.vaadin.ui.TabSheet.setSizeFull方法的典型用法代碼示例。如果您正苦於以下問題:Java TabSheet.setSizeFull方法的具體用法?Java TabSheet.setSizeFull怎麽用?Java TabSheet.setSizeFull使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.vaadin.ui.TabSheet
的用法示例。
在下文中一共展示了TabSheet.setSizeFull方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ScheduleView
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
public ScheduleView() {
setSizeFull();
addStyleName("schedule");
DashboardEventBus.register(this);
TabSheet tabs = new TabSheet();
tabs.setSizeFull();
tabs.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
tabs.addComponent(buildCalendarView());
tabs.addComponent(buildCatalogView());
addComponent(tabs);
tray = buildTray();
addComponent(tray);
injectMovieCoverStyles();
}
示例2: startDemoApp
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
private void startDemoApp() {
layout.setSizeFull();
layout.setMargin(true);
layout.setSpacing(true);
addHeader();
TabSheet tabSheet = new TabSheet();
tabSheet.setSizeFull();
layout.addComponent(tabSheet);
tabSheet.addTab(new ClassicGridTab(),"Classic Grid");
tabSheet.addTab(new ClassicGridWithDecoratorTab(),"Classic Grid with Decorator");
tabSheet.addTab(new ComponentGridTab(), "Typed Component Grid");
tabSheet.addTab(new NotABeanGridWithDecoratorTab(), "Not a bean grid");
tabSheet.addTab(new ClassicGridWithStaticContainerTab(), "Classic Grid with Static Container");
layout.setExpandRatio(tabSheet, 1.0f);
setContent(layout);
}
示例3: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
public void init() {
if (dataCollectionDao == null)
throw new RuntimeException("dataCollectionDao cannot be null.");
setTheme(Runo.THEME_NAME);
Logger logger = new SimpleLogger();
SnmpCollectionPanel scAdmin = new SnmpCollectionPanel(dataCollectionDao, logger);
DataCollectionGroupAdminPanel dcgAdmin = new DataCollectionGroupAdminPanel(dataCollectionDao);
TabSheet tabs = new TabSheet();
tabs.setStyleName(Runo.TABSHEET_SMALL);
tabs.setSizeFull();
tabs.addTab(scAdmin);
tabs.addTab(dcgAdmin);
final Window mainWindow = new Window("SNMP Collection Administration", tabs);
setMainWindow(mainWindow);
}
示例4: wrapByUriFragment
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
/**
* Wrap the given component into a component identified by the given uri
* fragment.
* <p>
* 'tabsheet' wraps it to Tabsheet component.
* <p>
* Returns by default the component itself.
*
* @param uriragment
* @param component
* @return
*/
public static Component wrapByUriFragment(String uriragment, Gantt gantt) {
if (uriragment == null) {
return gantt;
}
if (uriragment.contains("tabsheet")) {
TabSheet tabsheet = new TabSheet();
tabsheet.setSizeFull();
Tab tab = tabsheet.addTab(gantt);
tab.setCaption("Tabsheet test");
return tabsheet;
} else if (uriragment.startsWith("grid")) {
return new GridGanttLayout(gantt);
} else if (uriragment.startsWith("treegrid")) {
return new TreeGridGanttLayout(gantt);
}
return gantt;
}
示例5: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
/**
* Initialise la vue
*/
@PostConstruct
public void init() {
/* Style */
setSizeFull();
setSpacing(true);
/*Layout des mails*/
VerticalLayout layoutMailModel = new VerticalLayout();
layoutMailModel.setSizeFull();
layoutMailModel.setSpacing(true);
layoutMailModel.setMargin(true);
/*Layout des typ decision*/
VerticalLayout layoutMailTypeDec = new VerticalLayout();
layoutMailTypeDec.setSizeFull();
layoutMailTypeDec.setSpacing(true);
layoutMailTypeDec.setMargin(true);
/*Le layout a onglet*/
TabSheet sheet = new TabSheet();
sheet.setImmediate(true);
sheet.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
addComponent(sheet);
sheet.setSizeFull();
sheet.addTab(layoutMailModel, applicationContext.getMessage("mail.model.title", null, UI.getCurrent().getLocale()),FontAwesome.ENVELOPE_O);
sheet.addTab(layoutMailTypeDec, applicationContext.getMessage("mail.typdec.title", null, UI.getCurrent().getLocale()),FontAwesome.ENVELOPE);
/*Populate le layoutMailModel*/
populateMailModelLayout(layoutMailModel);
/*Populate le layoutMailModel*/
populateMailTypeDecLayout(layoutMailTypeDec);
/* Inscrit la vue aux mises à jour de mail */
mailEntityPusher.registerEntityPushListener(this);
}
示例6: ProfilePreferencesWindow
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
private ProfilePreferencesWindow(final User user,
final boolean preferencesTabOpen) {
addStyleName("profile-window");
setId(ID);
Responsive.makeResponsive(this);
setModal(true);
setCloseShortcut(KeyCode.ESCAPE, null);
setResizable(false);
setClosable(false);
setHeight(90.0f, Unit.PERCENTAGE);
VerticalLayout content = new VerticalLayout();
content.setSizeFull();
content.setMargin(new MarginInfo(true, false, false, false));
setContent(content);
TabSheet detailsWrapper = new TabSheet();
detailsWrapper.setSizeFull();
detailsWrapper.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
detailsWrapper.addStyleName(ValoTheme.TABSHEET_ICONS_ON_TOP);
detailsWrapper.addStyleName(ValoTheme.TABSHEET_CENTERED_TABS);
content.addComponent(detailsWrapper);
content.setExpandRatio(detailsWrapper, 1f);
detailsWrapper.addComponent(buildProfileTab());
detailsWrapper.addComponent(buildPreferencesTab());
if (preferencesTabOpen) {
detailsWrapper.setSelectedTab(1);
}
content.addComponent(buildFooter());
fieldGroup = new BeanFieldGroup<User>(User.class);
fieldGroup.bindMemberFields(this);
fieldGroup.setItemDataSource(user);
}
示例7: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
protected void init(VaadinRequest request) {
Label label = new Label("<h1>Demo of the Graphviz component</h1>",
ContentMode.HTML);
label.setHeightUndefined();
// Show it in the middle of the screen
final VerticalLayout layout = new VerticalLayout();
layout.setStyleName("demoContentLayout");
layout.setSizeFull();
TabSheet tabs = new TabSheet();
tabs.setSizeFull();
layout.addComponent(label);
layout.addComponent(tabs);
layout.setMargin(true);
layout.setExpandRatio(tabs, 1);
setContent(layout);
tabs.addTab(new SimpleDemoView(), "Simple demo");
tabs.addTab(new MoreComplexDemoView(), "More complex demo");
tabs.addTab(new UMLDemoView(), "An UML demo");
tabs.addTab(new InteractiveDemoView(), "Interactive demo");
tabs.addTab(new SubgraphDemoView(), "Subgraph demo");
}
示例8: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
protected void init(VaadinRequest request) {
TabSheet tabSheet = new TabSheet();
tabSheet.addTab(new CheckBoxDemo(), "Checkbox renderer");
tabSheet.addTab(new DateTextDemo(), "DateField and TextField renderers");
tabSheet.addTab(new SparklineDemo(), "Sparkline renderer");
tabSheet.setSizeFull();
setContent(tabSheet);
}
示例9: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
protected void init(VaadinRequest request) {
TabSheet tabs = new TabSheet();
tabs.setSizeFull();
setContent(tabs);
tabs.addTab(getSimpleExamle(), "Basic functionality");
tabs.addTab(getAnotherExample(), "Sequential add");
}
示例10: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
private void init() {
setSizeFull();
setMargin(true);
setSpacing(true);
TabSheet sheet = new TabSheet();
sheet.setSizeFull();
sheet.addTab(createGrid(), "Tab 1");
sheet.addTab(createGrid(), "Tab 2");
addComponent(sheet);
setExpandRatio(sheet, 1.0f);
}
示例11: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
protected void init(VaadinRequest request) {
TabSheet tabSheet = new TabSheet();
tabSheet.addTab(new DemoContentLayout(), "main demo");
tabSheet.addTab(new SidebarMenuExtensionLayout(), "sidebar extension demo");
tabSheet.addTab(new HeaderWrapExtensionLayout(), "header wrap demo");
tabSheet.setSizeFull();
setContent(tabSheet);
}
示例12: init
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
@Override
protected void init(VaadinRequest request) {
TabSheet tab = new TabSheet();
tab.setSizeFull();
setContent(tab);
final SuggestFieldDemo suggestFieldDemo = new SuggestFieldDemo();
tab.addTab(suggestFieldDemo, "SuggestField demo");
final TokenModeDemo tokenModeDemo = new TokenModeDemo();
tab.addTab(tokenModeDemo, "TokenMode demo");
}
示例13: initWorkbenchArea
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
protected void initWorkbenchArea() {
tabsheet = new TabSheet();
tabsheet.setSizeFull();
tabsheet.setCloseHandler(this);
workbenchAreaLayout = new VerticalLayout();
workbenchAreaLayout.setSizeFull();
workbenchAreaLayout.addComponent(tabsheet);
workbenchAreaLayout.setExpandRatio(tabsheet, 1);
workbenchAreaLayout.setMargin(true);
windowLayout.addComponent(workbenchAreaLayout);
windowLayout.setExpandRatio(workbenchAreaLayout, 1);
}
示例14: createContent
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
/** {@inheritDoc} */
@Override
protected Component createContent() {
logger.debug("Creating view content...");
final TabSheet settingsSheet = new TabSheet();
settingsSheet.setSizeFull();
settingsSheet.addTab(new MainSettingsForm(), "Общие настройки", Fontello.WRENCH_1);
return settingsSheet;
}
示例15: StatView
import com.vaadin.ui.TabSheet; //導入方法依賴的package包/類
public StatView(ChipsterAdminUI app) {
super(app, TIMEOUT);
this.addComponent(getToolbar());
this.addComponent(super.getProggressIndicator());
tabSheet = new TabSheet();
tabSheet.setSizeFull();
this.addComponent(tabSheet);
this.setExpandRatio(tabSheet, 1);
this.setSizeFull();
tabSheet.addTab(monthlyStats, "Monthly statistics");
tabSheet.addTab(yearlyStats, "Yearly statistics");
tabSheet.addTab(toolUsage, "Tools usage (1 year)");
tabSheet.addTab(topUsers, "Top users (1 year)");
tabSheet.addTab(toolFails, "Tool fails (1 year)");
tabSheet.addTab(moduleUsage, "Module job counts (beta)");
tabSheet.addSelectedTabChangeListener(new SelectedTabChangeListener() {
@Override
public void selectedTabChange(SelectedTabChangeEvent e) {
update();
}
});
}