/** * Set the current caption. * * @param caption Current caption. */ public void setCaption(String caption) { panel.setTitle(caption); }
/** * Display the CWF markup for the component tree rooted at root. * * @param root Root component of tree. * @param excludedProperties Excluded properties. * @return The dialog. */ public static Window showCWF(BaseComponent root, String... excludedProperties) { Window window = showXML(CWF2XML.toDocument(root, excludedProperties)); window.setTitle("CWF Markup"); return window; }
private void updateCaption() { window.setTitle( title + " - " + scenario.getName() + " (" + model.size() + " resource" + (model.size() == 1 ? ")" : "s)")); }
@Override public void afterInitialized(BaseComponent root) { window = (Window) root; window.setTitle(root.getAttribute("title", "")); btnPrint.setVisible(root.getAttribute("allowPrint", false)); String text = root.getAttribute("text", ""); if (text.startsWith("<html>")) { cmpHtml.setContent(text); } else { cmpText.setLabel(text); } }
root.setTitle(root.getTitle() + " - " + manifestItem.implModule);
@Override public void afterInitialized(BaseComponent comp) { this.root = (Window) comp; root.setAttribute("controller", this); root.setTitle(root.getAttribute("title", "")); root.addClass("flavor:" + root.getAttribute("panelClass", "panel-primary")); prompt.setLabel(root.getAttribute("prompt", "")); textbox.setValue(root.getAttribute("oldValue", null)); textbox.selectAll(); updateState(); }
window.setTitle(window.getTitle() + " - " + aboutParams.title);
@Override public void afterInitialized(BaseComponent root) { window = (Window) root; window.setTitle(StrUtil.formatMessage(root.getAttribute("title", ""))); lblPrompt.setLabel(StrUtil.formatMessage(root.getAttribute("prompt", ""))); LayoutIdentifier dfltLayout = root.getAttribute("dfltLayout", LayoutIdentifier.class); txtLayout.setValue(dfltLayout == null ? null : dfltLayout.name); boolean shared = dfltLayout == null ? LayoutManager.defaultIsShared() : dfltLayout.shared; (shared ? rbShared : rbPrivate).setChecked(true); radioGroup.setVisible(!root.getAttribute("hideScope", false)); allowDups = root.getAttribute("allowDups", true); }
window.setTitle(popupData.getTitle()); window.setParent(currentPage); String pos = getPosition();
@Override public void afterInitialized(BaseComponent root) { window = (Window) root; shared = defaultIsShared(); boolean manage = root.getAttribute("manage", false); window.setTitle(StrUtil.formatMessage(manage ? CAP_LAYOUT_MANAGE : CAP_LAYOUT_LOAD)); lblPrompt.setLabel(StrUtil.formatMessage(manage ? MSG_LAYOUT_MANAGE : MSG_LAYOUT_LOAD)); modelAndView = lstLayouts.getModelAndView(String.class); modelAndView.setRenderer(renderer); pnlSelect.setVisible(!manage); tbManage.setVisible(manage); ((Radiobutton) radioGroup.getChildAt(shared ? 0 : 1)).setChecked(true); pnlScope.addClass(manage ? "pull-right" : "pull-left"); upload.bind(btnImport); refresh(root.getAttribute("dflt", "")); }
@Override public void afterInitialized(BaseComponent comp) { this.root = (Window) comp; root.setAttribute("controller", this); control = (DialogControl<?>) root.getAttribute("control"); root.setTitle(control.getTitle()); icon.addClass(control.getIconClass()); message.addClass(control.getTextClass()); message.setLabel(control.getMessage()); root.addClass(control.getPanelClass()); chkRemember.setVisible(root.hasAttribute("remember")); root.setOnCanClose(() -> { control.callback(response); return true; }); if (control.getFormat() == ChoiceFormat.BUTTONS) { processButtonResponses(); } else { processListResponses(); } }
window.setTitle( StrUtil.formatMessage("@cwf.shell.designer.add.component.title", parentElement.getDefinition().getName())); window.setOnCanClose(() -> {
root.setMaximizable(!proxied); root.setMinimizable(!proxied); root.setTitle(proxied ? null : "Help"); root.setVisible(proxied); findView(HelpViewType.HISTORY, true, false);