本文整理了Java中org.fujion.annotation.EventHandler
类的一些代码示例,展示了EventHandler
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EventHandler
类的具体详情如下:
包路径:org.fujion.annotation.EventHandler
类名称:EventHandler
暂无
代码示例来源:origin: org.fujion/fujion-core
/**
* Handles open and close events from the client.
*
* @param event An open or close event.
*/
@EventHandler(value = { "open", "close" }, syncToClient = false, mode = "init")
private void onOpenOrClose(Event event) {
open = event instanceof OpenEvent;
}
代码示例来源:origin: org.fujion/fujion-core
if (!MiscUtil.intersects(annotation.mode(), activeModes)) {
continue;
OnFailure onFailure = annotation.onFailure();
Set<String> targets = ConvertUtil.convertToSet(annotation.target(), true);
Set<String> types = ConvertUtil.convertToSet(annotation.value(), true);
BaseComponent component = null;
} else {
for (String type : types) {
component.addEventListener(type, new EventListener(instance, method), annotation.syncToClient());
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Clones the selected layout.
*/
@EventHandler(value = "click", target = "@btnClone")
private void onClick$btnClone() {
cloneOrRename(true);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Clicking the apply button commits any pending edits.
*/
@EventHandler(value = "click", target = "@btnApply")
private void onClick$btnApply() {
commitChanges(true);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Invoke owner's about dialog.
*/
@EventHandler(value = "click", target = "@mnuAbout")
private void onClick$mnuAbout() {
owner.about();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Occurs when the tree view selection changes.
*/
@EventHandler(value = "change", target = "@tree")
private void onSelect$tree() {
selectionChanged();
}
代码示例来源:origin: org.fujion/fujion-core
/**
* Handles close events from the client.
*/
@EventHandler(value = "close", syncToClient = false, mode = "init")
private void _close() {
close();
}
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-reporting
/**
* Clear selected items
*/
@EventHandler(value = "click", target = "btnClear", onFailure = OnFailure.IGNORE)
private void onClick$btnClear() {
clearSelection();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core
/**
* Clear the time box.
*/
@EventHandler(value = "click", target = "popup.btnTimeClear", onFailure = OnFailure.IGNORE)
private void onClick$btnTimeClear() {
updateTimebox(null);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.help.core
/**
* Perform search when user presses enter button.
*/
@EventHandler(value = "enter", target = "txtSearch")
private void onEnter$txtSearch() {
onClick$btnSearch();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.plugin.chat
/**
* Clear the dialog panel.
*/
@EventHandler(value = "click", target = "btnClearDialog")
private void onClick$btnClearDialog() {
pnlDialog.destroyChildren();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Refreshes tree when layout has changed.
*/
@EventHandler(value = "layoutChanged", target = "^")
private void onLayoutChanged() {
refresh();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
@EventHandler(value = "click", target = "@btnToFront")
private void onClick$btnToFront() {
bringToFront = !bringToFront;
updateControls();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Clicking cancel button discards changes and closes viewer.
*/
@EventHandler(value = "click", target = "btnCancel")
private void onClick$btnCancel() {
window.close();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Clicking save button commits changes.
*/
@EventHandler(value = "click", target = "@btnSave")
private void onClick$btnSave() {
commit();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Navigate one pane right.
*/
@EventHandler(value = "click", target = "@btnRight")
private void onClick$btnRight() {
navigate(true);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Display the clipboard viewer.
*/
@EventHandler(value = "click", target = "mnuView")
private void onClick$mnuView() {
clipboard.view();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.shell
/**
* Called when clipboard contents changes.
*/
@EventHandler(value = "clipboardChange", target = "@mnuHeader")
private void onClipboardChange() {
updateControls();
}
}
代码示例来源:origin: org.fujion/fujion-core
/**
* Handles a sort request from the client.
*/
@EventHandler(value = "sort", syncToClient = false, mode = "init")
private void _sort() {
toggleSort();
}
代码示例来源:origin: org.fujion/fujion-core
/**
* Handles toggle events from the client.
*/
@EventHandler(value = "toggle", syncToClient = false, mode = "init")
private void _onToggle() {
_setCollapsed(!collapsed, false);
}
内容来源于网络,如有侵权,请联系作者删除!