@Override public PanelBuilder borderless() { getInstance().addStyleName(ValoTheme.PANEL_BORDERLESS); getInstance().addStyleName(Reindeer.PANEL_LIGHT); return builder(); }
@Override public PanelBuilder borderless() { getInstance().addStyleName(ValoTheme.PANEL_BORDERLESS); return builder(); }
protected void init() { this.tabsheetPanel = new Panel(); this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS); this.tabsheetPanel.setSizeFull(); super.setSizeFull(); }
protected void initAddSubTaskPanel(HorizontalLayout headerLayout) { // The add button is placed in a panel, so we can catch 'enter' and 'escape' events addSubTaskPanel = new Panel(); addSubTaskPanel.setContent(new VerticalLayout()); addSubTaskPanel.setSizeUndefined(); addSubTaskPanel.addStyleName(Reindeer.PANEL_LIGHT); addSubTaskPanel.addStyleName("no-border"); headerLayout.addComponent(addSubTaskPanel); initAddSubTaskPanelKeyboardActions(); initAddButton(); }
private Panel createPanel(Component content, String caption) { Panel panel = new Panel(); panel.setSizeFull(); panel.setCaption(caption); panel.setContent(content); panel.addStyleName("novscroll"); return panel; } }
@Override public com.vaadin.ui.Component getPopupComponent() { Panel popupPanel = new Panel(); popupPanel.addStyleName(ValoTheme.PANEL_BORDERLESS); popupPanel.setHeight("300px"); popupPanel.setWidth("300px"); popupViewLayout.setImmediate(true); popupPanel.setContent(popupViewLayout); popupPanel.setImmediate(true); return popupPanel; }
protected void initInformationPanel() { Panel infoPanel = new Panel(); infoPanel.addStyleName(Reindeer.PANEL_LIGHT); infoPanel.setSizeFull(); profilePanelLayout.addComponent(infoPanel); profilePanelLayout.setExpandRatio(infoPanel, 1.0f); // info panel should take all the remaining width available // All the information sections are put under each other in a vertical layout this.infoPanelLayout = new VerticalLayout(); infoPanel.setContent(infoPanelLayout); initAboutSection(); initContactSection(); }
@Override public void createSection(Accordion compositionRoot, SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors) { final Panel panel = new Panel(); panel.addStyleName(SIDE_BAR_SECTION_STYLE); panel.setSizeFull(); final VerticalLayout layout = new VerticalLayout(); panel.setContent(layout); for (SideBarItemDescriptor item : itemDescriptors) { layout.addComponent(itemComponentFactory.createItemComponent(item)); } compositionRoot.addTab(panel, descriptor.getCaption()); } }
/** * @see org.opencms.ui.dialogs.history.diff.I_CmsDiffProvider#diff(org.opencms.file.CmsObject, org.opencms.gwt.shared.CmsHistoryResourceBean, org.opencms.gwt.shared.CmsHistoryResourceBean) */ public Optional<Component> diff(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2) { Panel panel = new Panel(""); panel.addStyleName(ValoTheme.PANEL_BORDERLESS); HorizontalLayout hl = new HorizontalLayout(); panel.setContent(hl); hl.addComponent(createButton(cms, v1)); hl.addComponent(createButton(cms, v2)); VerticalLayout outerContainer = new VerticalLayout(); outerContainer.addComponent(hl); outerContainer.setComponentAlignment(hl, Alignment.MIDDLE_RIGHT); outerContainer.setMargin(true); hl.setSpacing(true); return Optional.fromNullable((Component)outerContainer); }
/** * Constructor */ public AbstractDialog() { super(); // defaults setModal(true); setResizable(false); setDraggable(false); setClosable(false); // style name addStyleName("h-dialog"); // build content = new Panel(); content.setWidth("100%"); content.addStyleName(ValoTheme.PANEL_BORDERLESS); content.addStyleName("h-dialog-content"); actions = new HorizontalLayout(); actions.setWidth("100%"); actions.setSpacing(true); actions.addStyleName(ValoTheme.WINDOW_BOTTOM_TOOLBAR); actions.addStyleName("h-dialog-actions"); root = new VerticalLayout(); root.addComponent(content); root.addComponent(actions); setContent(root); }
/** * Constructor */ public AbstractDialog() { super(); // defaults setModal(true); setResizable(false); setDraggable(false); setClosable(false); // style name addStyleName("h-dialog"); // build content = new Panel(); content.setWidth("100%"); content.addStyleName(ValoTheme.PANEL_BORDERLESS); content.addStyleName("h-dialog-content"); actions = new HorizontalLayout(); actions.setWidth("100%"); actions.setSpacing(true); actions.addStyleName(ValoTheme.WINDOW_BOTTOM_TOOLBAR); actions.addStyleName("h-dialog-actions"); root = new VerticalLayout(); root.addComponent(content); root.addComponent(actions); setContent(root); }
/** * Creates a resource list panel.<p> * * @param caption the caption to use * @param resources the resources * * @return the panel */ protected Panel createResourceListPanel(String caption, List<CmsResource> resources) { Panel result = new Panel(caption); result.addStyleName("v-scrollable"); result.setSizeFull(); VerticalLayout resourcePanel = new VerticalLayout(); result.setContent(resourcePanel); resourcePanel.addStyleName(OpenCmsTheme.REDUCED_MARGIN); resourcePanel.addStyleName(OpenCmsTheme.REDUCED_SPACING); resourcePanel.setSpacing(true); resourcePanel.setMargin(true); for (CmsResource resource : resources) { resourcePanel.addComponent(new CmsResourceInfo(resource)); } return result; }
imagePanel.addStyleName(Reindeer.PANEL_LIGHT); imagePanel.setWidth(100, UNITS_PERCENTAGE); imagePanel.setHeight("100%");
public DetailPanel() { setSizeFull(); addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL); setMargin(true); CssLayout cssLayout = new CssLayout(); // Needed for rounded corners cssLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL); cssLayout.setSizeFull(); super.addComponent(cssLayout); mainPanel = new Panel(); mainPanel.addStyleName(Reindeer.PANEL_LIGHT); mainPanel.setSizeFull(); cssLayout.addComponent(mainPanel); // Use default layout VerticalLayout verticalLayout = new VerticalLayout(); verticalLayout.setWidth(100, UNITS_PERCENTAGE); verticalLayout.setMargin(true); mainPanel.setContent(verticalLayout); }
/** * Creates the main component of the editor with all sub-components. * @return the completely filled main component of the editor. * @throws IOException thrown if setting the table's content data source fails. * @throws CmsException thrown if setting the table's content data source fails. */ private Component createMainComponent() throws IOException, CmsException { VerticalLayout mainComponent = new VerticalLayout(); mainComponent.setSizeFull(); mainComponent.addStyleName("o-message-bundle-editor"); m_table = createTable(); Panel navigator = new Panel(); navigator.setSizeFull(); navigator.setContent(m_table); navigator.addActionHandler(new CmsMessageBundleEditorTypes.TableKeyboardHandler(m_table)); navigator.addStyleName("v-panel-borderless"); mainComponent.addComponent(m_options.getOptionsComponent()); mainComponent.addComponent(navigator); mainComponent.setExpandRatio(navigator, 1f); m_options.updateShownOptions(m_model.hasMasterMode(), m_model.canAddKeys()); return mainComponent; }
protected void init() { this.tabsheetPanel = new Panel(); this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS); this.tabsheetPanel.setSizeFull(); this.createModuleTreePanel(); this.setWidth("100%"); this.setHeight("100%"); HorizontalSplitPanel hsplit = new HorizontalSplitPanel(); hsplit.setStyleName(ValoTheme.SPLITPANEL_LARGE); HorizontalLayout leftLayout = new HorizontalLayout(); leftLayout.setSizeFull(); leftLayout.setMargin(true); leftLayout.addComponent(this.topologyTreePanel); hsplit.setFirstComponent(leftLayout); HorizontalLayout rightLayout = new HorizontalLayout(); rightLayout.setSizeFull(); rightLayout.setMargin(true); rightLayout.addComponent(this.tabsheetPanel); hsplit.setSecondComponent(rightLayout); hsplit.setSplitPosition(30, Unit.PERCENTAGE); this.flowStates = this.topologyCache.getStateMap(); this.setContent(hsplit); }
protected void init() { this.tabsheetPanel = new Panel(); this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS); this.tabsheetPanel.setSizeFull(); this.createTopologyTreePanel(); this.setWidth("100%"); this.setHeight("100%"); this.businessStreamCombo = new ComboBox(); HorizontalSplitPanel hsplit = new HorizontalSplitPanel(); hsplit.setStyleName(ValoTheme.SPLITPANEL_LARGE); HorizontalLayout leftLayout = new HorizontalLayout(); leftLayout.setSizeFull(); leftLayout.setMargin(true); leftLayout.addComponent(this.topologyTreePanel); hsplit.setFirstComponent(leftLayout); HorizontalLayout rightLayout = new HorizontalLayout(); rightLayout.setSizeFull(); rightLayout.setMargin(true); rightLayout.addComponent(this.tabsheetPanel); hsplit.setSecondComponent(rightLayout); hsplit.setSplitPosition(300, Unit.PIXELS); this.flowStates = this.topologyCache.getStateMap(); this.setContent(hsplit); }
@Override public void doBuild(ViewChangeBusMessage event) { super.doBuild(event); centrePanel = new Panel(); centrePanel.addStyleName(ChameleonTheme.PANEL_BUBBLE); centrePanel.setSizeUndefined(); VerticalLayout vl = new VerticalLayout(); centrePanel.setContent(vl); vl.setSpacing(true); vl.setSizeUndefined(); label = new Label(); usernameBox = new TextField(); passwordBox = new PasswordField(); Label demoInfoLabel = new Label("for this demo, enter any user name, and a password of 'password'"); Label demoInfoLabel2 = new Label("In a real application your Shiro Realm implementation defines how to authenticate"); submitButton = new Button(); submitButton.addClickListener(this); statusMsgLabel = new Label("Please enter your username and password"); vl.addComponent(label); vl.addComponent(demoInfoLabel); vl.addComponent(demoInfoLabel2); vl.addComponent(usernameBox); vl.addComponent(passwordBox); vl.addComponent(submitButton); vl.addComponent(statusMsgLabel); setMiddleCentre(centrePanel); }
private void init() { final Panel rootPanel = new Panel(); rootPanel.setSizeFull(); rootPanel.addStyleName("config-panel"); final VerticalLayout vLayout = new VerticalLayout(); vLayout.setMargin(true); vLayout.setSizeFull(); final Label header = new Label(i18n.getMessage("configuration.rollout.title")); header.addStyleName("config-panel-header"); vLayout.addComponent(header); final HorizontalLayout hLayout = new HorizontalLayout(); hLayout.setSpacing(true); hLayout.setImmediate(true); approvalCheckbox = SPUIComponentProvider.getCheckBox("", "", null, false, ""); approvalCheckbox.setId(UIComponentIdProvider.ROLLOUT_APPROVAL_ENABLED_CHECKBOX); approvalCheckbox.setValue(approvalConfigurationItem.isConfigEnabled()); approvalCheckbox.addValueChangeListener(this); approvalConfigurationItem.addChangeListener(this); hLayout.addComponent(approvalCheckbox); hLayout.addComponent(approvalConfigurationItem); final Link linkToApprovalHelp = SPUIComponentProvider .getHelpLink(uiProperties.getLinks().getDocumentation().getRollout()); hLayout.addComponent(linkToApprovalHelp); hLayout.setComponentAlignment(linkToApprovalHelp, Alignment.BOTTOM_RIGHT); vLayout.addComponent(hLayout); rootPanel.setContent(vLayout); setCompositionRoot(rootPanel); }
private void init() { final Panel rootPanel = new Panel(); rootPanel.setSizeFull(); rootPanel.addStyleName("config-panel"); final VerticalLayout vLayout = new VerticalLayout(); vLayout.setMargin(true); vLayout.setSizeFull(); final Label header = new Label(i18n.getMessage("configuration.rollout.title")); header.addStyleName("config-panel-header"); vLayout.addComponent(header); final HorizontalLayout hLayout = new HorizontalLayout(); hLayout.setSpacing(true); hLayout.setImmediate(true); approvalCheckbox = SPUIComponentProvider.getCheckBox("", "", null, false, ""); approvalCheckbox.setId(UIComponentIdProvider.ROLLOUT_APPROVAL_ENABLED_CHECKBOX); approvalCheckbox.setValue(approvalConfigurationItem.isConfigEnabled()); approvalCheckbox.addValueChangeListener(this); approvalConfigurationItem.addChangeListener(this); hLayout.addComponent(approvalCheckbox); hLayout.addComponent(approvalConfigurationItem); final Link linkToApprovalHelp = SPUIComponentProvider .getHelpLink(i18n, uiProperties.getLinks().getDocumentation().getRollout()); hLayout.addComponent(linkToApprovalHelp); hLayout.setComponentAlignment(linkToApprovalHelp, Alignment.BOTTOM_RIGHT); vLayout.addComponent(hLayout); rootPanel.setContent(vLayout); setCompositionRoot(rootPanel); }