本文整理了Java中org.fujion.component.Window.setAttribute()
方法的一些代码示例,展示了Window.setAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setAttribute()
方法的具体详情如下:
包路径:org.fujion.component.Window
类名称:Window
方法名:setAttribute
暂无
代码示例来源:origin: org.carewebframework/org.carewebframework.help.core
@Override
public void afterInitialized(BaseComponent comp) {
root = (Window) comp;
root.setAttribute("controller", this);
init();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
private void returnResult(PluginDefinition definition) {
if (definition != null) {
childElement = createChild ? definition.createElement(parentElement, null, false) : null;
if (childElement instanceof ElementUI) {
((ElementUI) childElement).bringToFront();
}
window.setAttribute("pluginDefinition", definition);
window.setAttribute("childElement", childElement);
window.close();
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
private void close(LayoutIdentifier layoutId) {
window.setAttribute("layoutId", layoutId);
LayoutManager.defaultIsShared(layoutId.shared);
window.close();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
@EventHandler(value = "click", target = "btnCancel")
private void onCancel() {
root.setAttribute("result", null);
root.close();
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Sets the selected layout and closes the dialog.
*/
@EventHandler(value = "click", target = "@btnOK")
private void onClick$btnOK() {
LayoutIdentifier id = getSelectedLayout();
if (id != null) {
window.setAttribute("layoutId", id);
window.close();
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
@EventHandler(value = "enter", target = "@textbox")
@EventHandler(value = "click", target = "@btnOK")
private void onCommit() {
root.setAttribute("result", textbox.getValue());
root.close();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
/**
* Clicking the OK button creates a DateRangeItem object with the responses from the dialog and
* closes the dialog.
*/
@EventHandler(value = "click", target = "btnOK")
private void onClick$btnOK() {
if (startDate.getValue().after(endDate.getValue())) {
Datebox temp = startDate;
startDate = endDate;
endDate = temp;
}
DateRange dateRange = new DateRange(null, startDate.getValue(), endDate.getValue());
root.setAttribute("result", dateRange);
root.close();
}
代码示例来源: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.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();
}
}
内容来源于网络,如有侵权,请联系作者删除!