@Override public void setCaption(String caption) { // Override to provide backwards compatibility getState().caption = caption; getPage().setTitle(caption); }
protected void updatePageTitle() { String pageTitle = pageTitle(); getPage().setTitle(pageTitle); log.debug("Page title set to '{}'", pageTitle); }
/** * Sets the window title adding an OpenCms prefix.<p> * * @param title the window title */ public static void setWindowTitle(String title) { get().getPage().setTitle(WINDOW_TITLE_PREFIX + title); }
@Override public void setCaption(String caption) { super.setCaption(caption); if (component.isAttached()) { component.getUI().getPage().setTitle(caption); } } }
@Override protected void init(VaadinRequest request) { getPage().setTitle("Vaadin and Spring Security Demo - Hybrid Security"); if (SecurityUtils.isLoggedIn()) { showMain(); } else { showLogin(); } }
private void handleAttachToUI(ClientConnector.AttachEvent event) { String caption = getCaption(); if (StringUtils.isNoneEmpty(caption)) { component.getUI().getPage().setTitle(caption); } }
@Override protected void init(VaadinRequest vaadinRequest) { super.init(vaadinRequest); super.getPage().setTitle(this.title); VerticalLayout content = (VerticalLayout)super.getContent(); Component headerContent = content.getComponent(0); content.removeComponent(headerContent); }
@Override public void changeView(@Nonnull KrailView toView) { checkNotNull(toView); log.debug("changing view to {}", toView.getName()); Component content = toView.getRootComponent(); if (content == null) { throw new ConfigurationException("The root component for " + toView.getName() + " cannot be null"); } translator.translate(toView); content.setSizeFull(); getViewDisplayPanel().setContent(content); this.view = toView; String pageTitle = pageTitle(); getPage().setTitle(pageTitle); log.debug("Page title set to '{}'", pageTitle); }
@Override protected void init(VaadinRequest vaadinRequest) { getPage().setTitle(StringUtils.isEmpty(this.title) ? "Application" : this.title); final HorizontalLayout rootLayout = new HorizontalLayout(); rootLayout.setSizeFull(); setContent(rootLayout); rootLayout.addComponent(getSideBar()); rootLayout.addComponent(getDisplayView()); rootLayout.setExpandRatio(getDisplayView(), 1.0f); }
@Override public void init(VaadinRequest request) { this.getPage().setTitle(this.getTitle()); this.setContent(this.rootLayout); this.rootLayout.setSpacing(true); this.rootLayout.setSizeFull(); this.rootLayout.setMargin(new MarginInfo(false, true, true, true)); this.rootLayout.addComponent(this.buildRootUpperBar()); this.rootLayout.addComponent(new HorizontalLine(3)); final Component lowerPanel = this.buildLowerPanel(); this.rootLayout.addComponent(lowerPanel); this.rootLayout.setExpandRatio(lowerPanel, 1.0f); this.rootLayout.setComponentAlignment(lowerPanel, Alignment.MIDDLE_CENTER); }
@Override public void init(VaadinRequest request) { this.getPage().setTitle(this.getTitle()); this.setContent(this.rootLayout); this.rootLayout.setSpacing(true); this.rootLayout.setSizeFull(); this.rootLayout.setMargin(new MarginInfo(false, true, true, true)); this.rootLayout.addComponent(this.buildRootUpperBar()); this.rootLayout.addComponent(new HorizontalLine(3)); final Component lowerPanel = this.buildLowerPanel(); this.rootLayout.addComponent(lowerPanel); this.rootLayout.setExpandRatio(lowerPanel, 1.0f); this.rootLayout.setComponentAlignment(lowerPanel, Alignment.MIDDLE_CENTER); }
page.setTitle(pageTitle());
/** * Make sure you call this from sub-class overrides. The Vaadin Page is not available during the construction of * this class, but is available when this method is invoked. As a result, this method sets the navigator a listener * for URI changes and obtains the browser locale setting for initialising {@link CurrentLocale}. Both of these are * provided by the Vaadin Page. * * @see com.vaadin.ui.UI#init(com.vaadin.server.VaadinRequest) */ @Override protected void init(VaadinRequest request) { VaadinSession session = getSession(); session.setConverterFactory(converterFactory); // page isn't available during injected construction, so we have to do this here Page page = getPage(); page.addUriFragmentChangedListener(navigator); setErrorHandler(errorHandler); session.setErrorHandler(errorHandler); page.setTitle(pageTitle()); // also loads the UserSitemap if not already loaded getKrailNavigator().init(); //layout this UI, which may also create UYI components doLayout(); // now that browser is active, and user sitemap loaded, and UI constructed, set up currentLocale currentLocale.readFromEnvironment(); translator.translate(this); // Navigate to the correct start point String fragment = getPage().getUriFragment(); getKrailNavigator().navigateTo(fragment); }
/** * @see com.vaadin.ui.UI#init(com.vaadin.server.VaadinRequest) */ @Override protected void init(VaadinRequest request) { addStyleName("login-dialog"); LoginParameters params = (LoginParameters)(request.getWrappedSession().getAttribute(INIT_DATA_SESSION_ATTR)); if (params == null) { params = CmsLoginHelper.getLoginParameters(getCmsObject(), (HttpServletRequest)request, true); request.getWrappedSession().setAttribute(CmsLoginUI.INIT_DATA_SESSION_ATTR, params); } VaadinSession.getCurrent().setErrorHandler(new CmsVaadinErrorHandler()); m_controller = new CmsLoginController(m_adminCms, params); m_controller.setUi(this); setLocale(params.getLocale()); m_loginForm = new CmsLoginForm(m_controller, params.getLocale()); m_controller.onInit(); getPage().setTitle( CmsAppWorkplaceUi.WINDOW_TITLE_PREFIX + CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_LOGIN_HEADLINE_0)); } }
getPage().setTitle("Vaadin and Spring Security Demo - Filter Based Security"); setErrorHandler(this::handleError);
@Override protected void init(VaadinRequest request) { getPage().setTitle("PopupButton Application");