public CompositesLayout() { setSizeFull(); setSpacing(false); setMargin(false); tabSheet.setSizeFull(); addComponent(tabSheet); }
@Override public Component createLayout(TabbedLayoutDefinition definition, Map<String, Component> mappings) { TabSheet tabSheetComponent = new TabSheet(); tabSheetComponent.addStyleName(ValoTheme.TABSHEET_FRAMED); tabSheetComponent.setSizeFull(); if (definition.getTabs().size() == 1) { tabSheetComponent.addStyleName("single-tab"); } definition.getTabs().forEach(tabDefinition -> { FormLayout formSection = new FormLayout(); formSection.setMargin(true); formSection.setSizeFull(); tabDefinition.getFields().forEach(field -> { final Component fieldComponent = mappings.get(field.getName()); if (fieldComponent != null) { formSection.addComponent(fieldComponent); // TODO formSection.setComponentHelpDescription(fieldComponent, fieldComponent.getDescription()); } else { log.warn(String.format("Could not retrieve component field named %s from mappings", field.getName())); } }); tabSheetComponent.addTab(formSection, StringUtils.defaultIfBlank(tabDefinition.getLabel(), tabDefinition.getName())); }); return tabSheetComponent; } }
@Override public void init(VaadinRequest request) { if (dataCollectionDao == null) throw new RuntimeException("dataCollectionDao cannot be null."); TabSheet tabs = new TabSheet(); tabs.addStyleName("light"); tabs.setSizeFull(); tabs.addTab(new SnmpCollectionPanel(dataCollectionDao, new SimpleLogger())); tabs.addTab(new DataCollectionGroupAdminPanel(dataCollectionDao)); setContent(tabs); } }
@Override public void init(VaadinRequest request) { if (dataCollectionDao == null) throw new RuntimeException("dataCollectionDao cannot be null."); TabSheet tabs = new TabSheet(); tabs.addStyleName("light"); tabs.setSizeFull(); tabs.addTab(new SnmpCollectionPanel(dataCollectionDao, new SimpleLogger())); tabs.addTab(new DataCollectionGroupAdminPanel(dataCollectionDao)); setContent(tabs); } }
tabSheet.setSizeFull(); tabSheet.setSelectedTab(0); // select first component! tabSheet.addStyleName(Reindeer.TABSHEET_BORDERLESS);
tabSheet.setSizeFull(); tabSheet.setSelectedTab(0); // select first component! tabSheet.addStyleName(Reindeer.TABSHEET_BORDERLESS);
public ConfigResultView(JmxConfigGeneratorApplication app) { this.app = app; setSizeFull(); VerticalLayout mainLayout = new VerticalLayout(); mainLayout.setSizeFull(); mainLayout.addComponent(tabSheet); mainLayout.addComponent(buttonPanel); tabSheet.setSizeFull(); // TODO set tab name differently (e.g. SNMP Graph properties snippet) tabContentMap.put(OutputDataKey.JmxDataCollectionConfig, new TabContent(OutputDataKey.JmxDataCollectionConfig)); tabContentMap.put(OutputDataKey.SnmpGraphProperties, new TabContent(OutputDataKey.SnmpGraphProperties)); tabContentMap.put(OutputDataKey.CollectdConfigSnippet, new TabContent(OutputDataKey.CollectdConfigSnippet)); // add all tabs for (TabContent eachContent : tabContentMap.values()) tabSheet.addTab(eachContent, eachContent.getCaption()); tabSheet.setSelectedTab(0); // select first component! buttonPanel.getNext().setVisible(false); // TODO MVR enable button again and allow to download buttonPanel.getNext().setCaption("download all"); buttonPanel.getNext().setIcon(IconProvider.getIcon(IconProvider.BUTTON_SAVE)); mainLayout.setExpandRatio(tabSheet, 1); setCompositionRoot(mainLayout); }
residentalsTab.setSizeFull(); tabsheet.addTab(residentalsTab,"Lakók"); tabsheet.setSizeFull(); setContent(tabsheet);
tabSheet.setSizeFull();
/** * The EventsAlarmsWindow method constructs a sub-window instance which can be added to a * main window. The sub-window contains two embedded browsers which are directed at the Events * and Alarms page of the selected node * @param node Selected node * @throws MalformedURLException */ public EventsAlarmsWindow(final Node node, final URL eventsURL, final URL alarmsURL) { super("Events & Alarms" + makeLabel(node)); eventsBrowser = new Embedded("", new ExternalResource(eventsURL)); eventsBrowser.setSizeFull(); alarmsBrowser = new Embedded("", new ExternalResource(alarmsURL)); alarmsBrowser.setSizeFull(); setResizable(false); /*Adds the two browsers to separate tabs in a tabsheet layout*/ m_tabSheet = new TabSheet(); m_tabSheet.setSizeFull(); m_tabSheet.addTab(eventsBrowser, "Events"); m_tabSheet.addTab(alarmsBrowser, "Alarms"); /*Adds tabsheet component to the main layout of the sub-window*/ VerticalLayout layout = new VerticalLayout(); layout.addComponent(m_tabSheet); layout.setSizeFull(); setContent(layout); }
m_tabSheet.setSizeFull(); m_tabSheet.addTab(eventsBrowser, "Events"); m_tabSheet.addTab(alarmsBrowser, "Alarms");
m_tabSheet.setSizeFull(); m_tabSheet.addTab(eventsBrowser, "Events"); m_tabSheet.addTab(alarmsBrowser, "Alarms");
protected void createTabSheet() tabsheet.setSizeFull();
private void initComponents() { I18NSource messages = I18NSource.ThreadUtil.getThreadI18nSource(); tabSheet = new TabSheet(); tabSheet.setSizeFull(); tabSheet.addTab(permissionTab = new ProcessPermissionTab(), messages.getMessage("process.editor.process.permissions")); tabSheet.addTab(processDefinitionTab = new ProcessDefinitionTab(), messages.getMessage("process.editor.process.definition")); tabSheet.addTab(queueTab = new QueueTab(), messages.getMessage("process.editor.queues")); tabSheet.addTab(messageTab = new MessageTab(), messages.getMessage("process.editor.messages")); tabSheet.addTab(dictionaryTab = new DictionaryTab(), messages.getMessage("process.editor.dictionary")); tabSheet.addTab(otherTab = new OtherTab(), messages.getMessage("process.editor.other")); saveButton = VaadinUtility.button(messages.getMessage("process.editor.save"), new Runnable() { @Override public void run() { ((ProcessEditorApplication) ProcessEditorApplication.getCurrent()).saveAndCallback(); } }); titleLabel = new Label(messages.getMessage("process.editor.title")); titleLabel.addStyleName("h1"); }
tabSheet.setSizeFull();
tabs.setSizeFull(); tabs.addTab(resourceTypes, "Resource Types"); tabs.addTab(groups, "MIB Groups");
protected void createTabSheet() tabsheet.setSizeFull();
tabs.setSizeFull(); tabs.addTab(resourceTypes, "Resource Types"); tabs.addTab(groups, "MIB Groups");
ts.setSizeFull(); ts.addTab(stepLayout, messages.getMessage("userstep.editor.widgets.tabcaption")); ts.addTab(stepDefinitionLayout, messages.getMessage("userstep.state.tabcaption"));