com.vaadin.ui.TabSheet.SelectedTabChangeListener Java Examples
The following examples show how to use
com.vaadin.ui.TabSheet.SelectedTabChangeListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServerDesc.java From primecloud-controller with GNU General Public License v2.0 | 5 votes |
@Override public void attach() { setWidth("100%"); setHeight("100%"); setCaption(ViewProperties.getCaption("panel.serverDesc")); addStyleName(Reindeer.PANEL_LIGHT); addStyleName("server-desc-panel"); VerticalLayout layout = (VerticalLayout) getContent(); layout.setWidth("100%"); layout.setHeight("100%"); layout.setMargin(false); layout.setSpacing(false); layout.addStyleName("server-desc-layout"); tab = new TabSheet(); tab.addStyleName(Reindeer.TABSHEET_BORDERLESS); tab.setWidth("100%"); tab.setHeight("100%"); addComponent(tab); // 基本情報タブ serverDescBasic = new ServerDescBasic(sender); tab.addTab(serverDescBasic, ViewProperties.getCaption("tab.serverDescBasic"), Icons.BASIC.resource()); // 詳細情報タブ serverDescDetail = new ServerDescDetail(); tab.addTab(serverDescDetail, ViewProperties.getCaption("tab.serverDescDetail"), Icons.DETAIL.resource()); tab.addListener(new SelectedTabChangeListener() { @Override public void selectedTabChange(SelectedTabChangeEvent event) { ServerDesc.this.selectedTabChange(event); } }); }
Example #2
Source File: ServiceDesc.java From primecloud-controller with GNU General Public License v2.0 | 5 votes |
@Override public void attach() { setWidth("100%"); setHeight("100%"); setCaption(ViewProperties.getCaption("panel.serviceDesc")); addStyleName("service-desc-panel"); addStyleName(Reindeer.PANEL_LIGHT); VerticalLayout layout = (VerticalLayout) getContent(); layout.setWidth("100%"); layout.setHeight("100%"); layout.setMargin(false); layout.setSpacing(false); layout.addStyleName("service-desc-layout"); tab = new TabSheet(); tab.addStyleName(Reindeer.TABSHEET_BORDERLESS); tab.setWidth("100%"); tab.setHeight("100%"); addComponent(tab); // 基本情報タブ serviceDescBasic = new ServiceDescBasic(sender); tab.addTab(serviceDescBasic, ViewProperties.getCaption("tab.serviceDescBasic"), Icons.BASIC.resource()); // 詳細情報タブ serviceDescDetail = new ServiceDescDetail(); tab.addTab(serviceDescDetail, ViewProperties.getCaption("tab.serviceDescDetail"), Icons.DETAIL.resource()); tab.addListener(new SelectedTabChangeListener() { @Override public void selectedTabChange(SelectedTabChangeEvent event) { ServiceDesc.this.selectedTabChange(event); } }); }
Example #3
Source File: StatView.java From chipster with MIT License | 5 votes |
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(); } }); }
Example #4
Source File: ReportView.java From chipster with MIT License | 5 votes |
public ReportView(ChipsterAdminUI app) { super(app, UPDATE_WAIT); this.addComponent(getToolbar()); this.addComponent(super.getProggressIndicator()); tabSheet = new TabSheet(); dataSource = new ReportDataSource(app.getEndpoint()); tabSheet.setSizeFull(); this.addComponent(tabSheet); this.setExpandRatio(tabSheet, 1); this.setSizeFull(); filebrokerLabel = createReportLabel("waiting for status report..."); compLabel = createReportLabel("waiting for status report..."); jobmanagerLabel = createReportLabel("waiting for status report..."); filebrokerLayout.addComponent(filebrokerLabel); tabSheet.addTab(filebrokerLayout, "Filebroker"); compLayout.addComponent(compLabel); tabSheet.addTab(compLayout, "Comp"); jobmanagerLayout.addComponent(jobmanagerLabel); tabSheet.addTab(jobmanagerLayout, "Jobmanager"); tabSheet.addSelectedTabChangeListener(new SelectedTabChangeListener() { @Override public void selectedTabChange(SelectedTabChangeEvent e) { update(); } }); }
Example #5
Source File: VerticalTabsheet.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
public void addSelectedTabChangeListener(TabSheet.SelectedTabChangeListener listener) { this.addListener(SelectedTabChangeEvent.class, listener, SELECTED_TAB_CHANGE_METHOD); }