Examples of fireEvent()


Examples of br.com.jteam.jfcm.controller.EventDispatchService.fireEvent()

    try {
      preparedFile = showFileAdaper.prepareFileToView(presentationFile);
      EventDispatchService dispatchService = EventDispatchService.getInstance();
      if (preparedFile.isImageFile()) {
        Image image = (Image) preparedFile.getContent();
        dispatchService.fireEvent(new ShowImageEvent(image));
      } else if (preparedFile.isTextFile()) {
        String text = (String) preparedFile.getContent();
        dispatchService.fireEvent(new ShowTextEvent(text));
      }
    } catch (ShowFileContentAdapterException e) {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.Button.fireEvent()

        @Override
        public void componentSelected(MenuEvent ce) {
          ButtonEvent e = new ButtonEvent(b);
          e.setEvent(ce.getEvent());
          b.fireEvent(Events.Select, e);
        }

      });
      menu.add(item);
    } else if (c instanceof ButtonGroup) {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.SplitButton.fireEvent()

        @Override
        public void componentSelected(MenuEvent ce) {
          ButtonEvent e = new ButtonEvent(sb);
          e.setEvent(ce.getEvent());
          sb.fireEvent(Events.Select, e);
        }

      });
      menu.add(item);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent()

        if (currentWindow_ != null && !currentWindow_.isClosed()) {
            final Page enclosedPage = currentWindow_.getEnclosedPage();
            if (enclosedPage instanceof HtmlPage) {
                final HtmlElement focusedElement = ((HtmlPage) enclosedPage).getFocusedElement();
                if (focusedElement != null) {
                    focusedElement.fireEvent(Event.TYPE_BLUR);
                }
            }
        }
        currentWindow_ = window;
        //1. In IE activeElement becomes focused element for new current window
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlImageInput.fireEvent()

            // Find and "mousedown" the standard "ok" button
            e = client.getElement(controlId+"ok");
            assertNotNull("Control not found: "+controlId+"ok",e);
            assertTrue("Control not expected type (HtmlImageInput): "+e.getClass(),e instanceof HtmlImageInput);
            HtmlImageInput okButton = (HtmlImageInput)e;
            okButton.fireEvent("mousedown");
         }
      }
     
      // Make sure name input is no longer visible
      hiddenStyle = nameInput.getStyleAttribute();
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlInput.fireEvent()

        assertThat(message.getTextContent(), matcher);
    }

    protected HtmlPage submit(HtmlPage page) throws IOException {
        HtmlInput input = getInput(page);
        input.fireEvent("blur");
        return page;
    }

    protected HtmlInput getInput(HtmlPage page) {
        HtmlForm htmlForm = page.getFormByName("form");
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.fireEvent()

            LOG.debug("Firing " + event);
        }
        final HTMLElement jsElt = (HTMLElement) getScriptObject();
        final ContextAction action = new ContextAction() {
            public Object run(final Context cx) {
                return jsElt.fireEvent(event);
            }
        };

        final ContextFactory cf = client.getJavaScriptEngine().getContextFactory();
        final ScriptResult result = (ScriptResult) cf.call(action);
View Full Code Here

Examples of com.google.gwt.event.shared.EventBus.fireEvent()

        view.preview().setHTML(result.getHtml());
        success.onSuccess(true);

        if (newPage) {
          EventBus eventBus = getEventBus();
          eventBus.fireEvent(new AddWikiPageEvent(getName()));
          newPage = false;
        }

        mayStop = true;
        content = c;
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerManager.fireEvent()

        setMapView.removeStyleName("contextDisabled");
      }
    });
    setMapView.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
          bus.fireEvent(new CacheRegionMapMetaDataEvent(m.getCenter(), m.getZoomLevel()));
          m.removeControl(self);
        }
    });
       
    setAsCurrentRegion = new HTML("Set as current region");
View Full Code Here

Examples of com.google.gwt.event.shared.SimpleEventBus.fireEvent()

        EasyMock.isA(AsyncCallback.class));
    EasyMockUtils.setLastAsyncCallbackSuccessWithResult(signoffs);
    mockProjService.getLabels(EasyMock.eq(42L), EasyMock.isA(AsyncCallback.class));
    EasyMockUtils.setLastAsyncCallbackSuccessWithResult(labels);

    mockEventBus.fireEvent(EasyMock.isA(ProjectHasNoElementsEvent.class));

    mockView.setPresenter((AttributesView.Presenter) EasyMock.anyObject());
    mockView.setProjectAttributes(attributes);
    mockView.setSignoffs(signoffs);
    mockView.setProjectLabels(labels);
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.