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


Java TabSheet.setSizeFull方法代碼示例

本文整理匯總了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();
}
 
開發者ID:mcollovati,項目名稱:vaadin-vertx-samples,代碼行數:20,代碼來源:ScheduleView.java

示例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);

}
 
開發者ID:datenhahn,項目名稱:componentrenderer,代碼行數:22,代碼來源:ComponentRendererDemoUI.java

示例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);
}
 
開發者ID:qoswork,項目名稱:opennmszh,代碼行數:21,代碼來源:SnmpCollectionAdminApplication.java

示例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;
}
 
開發者ID:tltv,項目名稱:gantt,代碼行數:33,代碼來源:UriFragmentWrapperFactory.java

示例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);
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:43,代碼來源:ScolMailView.java

示例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);
}
 
開發者ID:mcollovati,項目名稱:vaadin-vertx-samples,代碼行數:39,代碼來源:ProfilePreferencesWindow.java

示例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");

}
 
開發者ID:pontusbostrom,項目名稱:VaadinGraphvizComponent,代碼行數:28,代碼來源:DemoUI.java

示例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);
	
}
 
開發者ID:vaadin,項目名稱:grid-renderers-collection-addon,代碼行數:12,代碼來源:DemoUI.java

示例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");
}
 
開發者ID:johannest,項目名稱:border-layout,代碼行數:10,代碼來源:BorderlayoutUI.java

示例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);

    }
 
開發者ID:datenhahn,項目名稱:componentrenderer,代碼行數:16,代碼來源:TestbenchCachingGridTab.java

示例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);
}
 
開發者ID:tsuoanttila,項目名稱:GridExtensionPack,代碼行數:10,代碼來源:DemoUI.java

示例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");
	
}
 
開發者ID:markoradinovic,項目名稱:suggestfield,代碼行數:15,代碼來源:DemoUI.java

示例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);
}
 
開發者ID:alejandro-du,項目名稱:enterprise-app,代碼行數:15,代碼來源:MDIWindow.java

示例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;
}
 
開發者ID:ExtaSoft,項目名稱:extacrm,代碼行數:12,代碼來源:SettingsView.java

示例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();
		}
	});
}
 
開發者ID:chipster,項目名稱:chipster,代碼行數:29,代碼來源:StatView.java


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