本文整理了Java中org.fujion.component.Window.setTitle()
方法的一些代码示例,展示了Window.setTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setTitle()
方法的具体详情如下:
包路径:org.fujion.component.Window
类名称:Window
方法名:setTitle
[英]Sets the title text.
[中]设置标题文本。
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.sharedforms
/**
* Set the current caption.
*
* @param caption Current caption.
*/
public void setCaption(String caption) {
panel.setTitle(caption);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
/**
* 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;
}
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-plugin-scenario
private void updateCaption() {
window.setTitle(
title + " - " + scenario.getName() + " (" + model.size() + " resource" + (model.size() == 1 ? ")" : "s)"));
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
@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);
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
root.setTitle(root.getTitle() + " - " + manifestItem.implModule);
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
window.setTitle(StrUtil.formatMessage("@cwf.shell.designer.property.grid.noselection"));
disableButtons(true);
return;
window.setTitle(StrUtil.formatMessage("@cwf.shell.designer.property.grid.title", title));
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
@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();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
window.setTitle(window.getTitle() + " - " + aboutParams.title);
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
@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);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.popupsupport
window.setTitle(popupData.getTitle());
window.setParent(currentPage);
String pos = getPosition();
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
@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", ""));
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
@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();
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
window.setTitle(
StrUtil.formatMessage("@cwf.shell.designer.add.component.title", parentElement.getDefinition().getName()));
window.setOnCanClose(() -> {
代码示例来源:origin: org.carewebframework/org.carewebframework.help.core
root.setMaximizable(!proxied);
root.setMinimizable(!proxied);
root.setTitle(proxied ? null : "Help");
root.setVisible(proxied);
findView(HelpViewType.HISTORY, true, false);
内容来源于网络,如有侵权,请联系作者删除!