Package org.zkoss.zk.ui.event

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


    final List suspends = new LinkedList();
    for (int j = 0; j < ary.length; ++j) {
      final Class klass = (Class)ary[j];
      try {
        final EventThreadSuspend suspend =
          (EventThreadSuspend)klass.newInstance();
        suspend.beforeSuspend(comp, evt, obj);
        suspends.add(suspend);
      } catch (Throwable ex) {
        throw UiException.Aide.wrap(ex);
        //Don't intercept; to prevent the event being suspended
      }
View Full Code Here


  public void invokeEventThreadSuspends(List suspends, Component comp, Event evt)
  throws UiException {
    if (suspends == null || suspends.isEmpty()) return;

    for (Iterator it = suspends.iterator(); it.hasNext();) {
      final EventThreadSuspend fn = (EventThreadSuspend)it.next();
      try {
        fn.afterSuspend(comp, evt);
      } catch (Throwable ex) {
        log.error("Failed to invoke "+fn+" after suspended", ex);
      }
    }
  }
View Full Code Here

TOP

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

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.