/** * Set the screen caption. If called in {@link #init(java.util.Map)}, overrides the value from XML. * @param caption caption */ @Override public void setCaption(String caption) { frame.setCaption(caption); }
/** * @deprecated Please use {@link Window#setCaption(String)} ()} and {@link Window#setDescription(String)} ()} methods. */ @Deprecated default void setWindowCaption(Window window, String caption, String description) { window.setCaption(caption); window.setDescription(description); }
public void setMainWindowProps() { String newWindowCaption = getCurrentStepFrame().getName() + " " + mainWizardFrame.formatMessage("stepNo", currentFrameIdx + 1, stepFrames.size()); Window window = mainWizardFrame.getMainWizardFrame(); window.setCaption(newWindowCaption); setNavigationButtonProps(); }
@Override public void init(Map<String, Object> params) { super.init(params); getDialogOptions().setWidthAuto(); Boolean cancelEnabled = (Boolean) params.get("cancelEnabled"); if (Boolean.FALSE.equals(cancelEnabled)) { this.cancelEnabled = false; } Boolean currentPasswordRequired = (Boolean) params.get("currentPasswordRequired"); if (Boolean.TRUE.equals(currentPasswordRequired)) { currentPasswordField.setVisible(true); currentPasswordLabel.setVisible(true); this.currentPasswordRequired = true; } addAction(new AbstractAction("windowCommit", clientConfig.getCommitShortcut()) { @Override public void actionPerform(Component component) { changePassword(); } }); if (user != null) { String userCaption = user.getCaption(); if (StringUtils.isNotEmpty(userCaption)) { getWindow().setCaption(formatMessage("captionWithUserName", userCaption)); } } }
@Subscribe protected void onInit(InitEvent event) { Window window = getWindow(); Label<String> msgLabel = uiComponents.create(Label.TYPE_STRING); msgLabel.setAlignment(Component.Alignment.TOP_CENTER); msgLabel.addStyleName(HaloTheme.LABEL_H1); msgLabel.setValue(messages.formatMessage(NotFoundScreen.class, "notAssociatedRoute", requestedRoute)); window.add(msgLabel); window.setCaption(messages.formatMessage(NotFoundScreen.class, "tabCaption", requestedRoute)); } }