Examples of EventListener


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

  }

  public static void info(String message, final ActionListener action) {
    try {
      Messagebox.show(message, I18N.get("Information"), Messagebox.OK,
          Messagebox.INFORMATION, new EventListener() {
            public void onEvent(Event evt) throws Exception {
              if (((Integer) evt.getData()).intValue() == Messagebox.OK) {
                action.actionPerformed(evt);
              }
            }
View Full Code Here

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

  }

  public static void error(String message, final ActionListener action) {
    try {
      Messagebox.show(message, I18N.get("Error"), Messagebox.OK,
          Messagebox.ERROR, new EventListener() {
            public void onEvent(Event evt) throws Exception {
              if (((Integer) evt.getData()).intValue() == Messagebox.OK) {
                action.actionPerformed(evt);
              }
            }
View Full Code Here

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

  public static void confirm(String message, final ActionListener action) {
    try {
      Messagebox.show(message, I18N.get("Confirm"), Messagebox.OK
          | Messagebox.CANCEL, Messagebox.QUESTION,
          new EventListener() {
            public void onEvent(Event evt) throws Exception {
              if (((Integer) evt.getData()).intValue() == Messagebox.OK) {
                action.actionPerformed(evt);
              }
            }
View Full Code Here

Examples of pl.com.bottega.ddd.annotations.event.EventListener

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        if (!(bean instanceof SagaInstance)) {
            for (Method method : bean.getClass().getMethods()) {
              EventListener listenerAnnotation = method.getAnnotation(EventListener.class);             
               
              if (listenerAnnotation == null) {
                    continue;
                }
               
              Class<?> eventType = method.getParameterTypes()[0];
               
                if (listenerAnnotation.asynchronous()){
                  //TODO just a temporary fake impl
                  EventHandler handler = new AsynchronousEventHandler(eventType, beanName, method, beanFactory);
                  //TODO add to some queue
                  eventPublisher.registerEventHandler(handler);                 
                }
View Full Code Here

Examples of se.sics.mspsim.core.EventListener

                if (chips[i] == null) {
                    context.err.println("Can not find chip: " + context.getArgument(i));
                    return 1;
                }
            }
            eventListener = new EventListener() {
                public void event(EventSource source, String event, Object data) {
                    context.out.println("Event:" + source.getName() + ":" + event);
                }
            };
            for (Chip chip : chips) {
View Full Code Here

Examples of sos.scheduler.editor.actions.listeners.EventListener

  public EventForm(Composite parent, int style, ActionsDom dom, Element eventGroup, int type_) {

    super(parent, style);          

    type = type_;
    listener = new EventListener(dom, eventGroup, type_);
    initialize();
    setToolTipText();
    txtEventName.setFocus();

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.