org.fujion.annotation.EventHandler.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中org.fujion.annotation.EventHandler.<init>()方法的一些代码示例,展示了EventHandler.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EventHandler.<init>()方法的具体详情如下:
包路径:org.fujion.annotation.EventHandler
类名称:EventHandler
方法名:<init>

EventHandler.<init>介绍

暂无

代码示例

代码示例来源: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.hspconsortium.carewebframework/cwf-ui-reporting

/**
 * The event handler for DatePicker events. Compares DatePicker range against cached date range.
 * If out of range, {@link #fetchData()} is called and cache is refreshed
 */
@EventHandler(value = "selectRange", target = "@dateRangePicker", onFailure = OnFailure.IGNORE)
private void onSelectRange$dateRangePicker() {
  DateRange dateRange = getDateRange();
  if (log.isTraceEnabled()) {
    log.trace("DatePicker range: " + dateRange);
  }
  dateFilter.setDateRange(dateRange);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

/**
 * Copies the XML layout with the owner as the root node to the clipboard.
 */
@EventHandler(value = "click", target = "@mnuCopy")
private void onClick$mnuCopy() {
  clipboard.copy(LayoutParser.parseElement(owner));
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

/**
 * Shows CWF markup for current page.
 */
@EventHandler(value = "click", target = "mnuShowMarkup")
private void onClick$mnuShowMarkup() {
  XMLViewer.showCWF(owner.getOuterComponent());
}

代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Close drop down and update input box if validation successful
 */
@EventHandler(value = "click", target = "popup.btnOK", onFailure = OnFailure.IGNORE)
private void onClick$btnOK() {
  if (validateInput()) {
    setOpen(false);
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

@EventHandler(value = "click", target = "@btnUp")
private void onClick$btnUp() {
  Treenode node = tree.getSelectedNode();
  doDrop(node, (Treenode) node.getPreviousSibling(), true);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

@EventHandler(value = "click", target = "@btnDown")
private void onClick$btnDown() {
  Treenode node = tree.getSelectedNode();
  doDrop((Treenode) node.getNextSibling(), node, true);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

@EventHandler(value = "upload", target = "@btnImport")
private void onUpload$btnImport(UploadEvent event) {
  if (event.getState() == UploadState.DONE) {
    importLayout(shared, event.getBlob());
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

/**
 * Refresh when shared/private toggled.
 */
@EventHandler(value = "change", target = "@radioGroup")
private void onChange$radioGroup() {
  shared = radioGroup.getSelected() == rbShared;
  defaultIsShared(shared);
  refresh(null);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

@EventHandler(value = "change", target = "@textbox")
private void onChange$textbox(ChangeEvent event) {
  editor.setValue(event.getValue(String.class));
  super.onChange(event);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

/**
 * Performs a paste operation, inserted the pasted elements under the current selection.
 */
@EventHandler(value = "click", target = "@btnPaste")
private void onClick$btnPaste() {
  Object data = clipboard.getData();
  
  if (data instanceof Layout) {
    ((Layout) data).materialize(selectedElement());
    requestRefresh();
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

/**
 * Deletes the selected layout.
 */
@EventHandler(value = "click", target = "@btnDelete")
private void onClick$btnDelete() {
  DialogUtil.confirm(MSG_LAYOUT_DELETE, (confirm) -> {
    if (confirm) {
      LayoutUtil.deleteLayout(getSelectedLayout());
      refresh(null);
    }
  });
}

代码示例来源:origin: org.carewebframework/org.carewebframework.shell

/**
 * If the property grid is closed, instead close the component.
 *
 * @param event The close event.
 */
@EventHandler(value = "close", target = "^")
private void onClose(Event event) {
  if (event.getTarget().getAttribute("controller") == propertyGrid) {
    editor.close();
    doClose();
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Populate datebox with today's date while clearing timebox.
 */
@EventHandler(value = "click", target = "popup.btnToday", onFailure = OnFailure.IGNORE)
private void onClick$btnToday() {
  updateDatebox(DateUtil.today());
  updateTimebox(null);
  validateInput();
  close();
}

相关文章

EventHandler类方法