Package org.zkoss.zk.ui.event

Examples of org.zkoss.zk.ui.event.EventThreadCleanup


    final List cleanups = new LinkedList();
    for (int j = 0; j < ary.length; ++j) {
      final Class klass = (Class)ary[j];
      try {
        final EventThreadCleanup cleanup =
          (EventThreadCleanup)klass.newInstance();
        cleanup.cleanup(comp, evt, errs);
        cleanups.add(cleanup);
      } catch (Throwable t) {
        if (errs != null) errs.add(t);
        if (!silent)
          log.error("Failed to invoke "+klass, t);
View Full Code Here


  public void invokeEventThreadCompletes(List cleanups, Component comp, Event evt,
  List errs, boolean silent) {
    if (cleanups == null || cleanups.isEmpty()) return;

    for (Iterator it = cleanups.iterator(); it.hasNext();) {
      final EventThreadCleanup fn = (EventThreadCleanup)it.next();
      try {
        fn.complete(comp, evt);
      } catch (Throwable ex) {
        if (errs != null) errs.add(ex);
        if (!silent)
          log.error("Failed to invoke "+fn, ex);
      }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.event.EventThreadCleanup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.