Examples of addListener()


Examples of nz.ac.waikato.modeljunit.Tester.addListener()

  public static void main(String[] args)
  {
    Set<String> sut = new StringSetBuggy(); // StringSetBuggy();
    Tester tester = new GreedyTester(new SimpleSetWithAdaptor(sut));
    //tester.buildGraph(); // to get better statistics
    tester.addListener(new VerboseListener());
   
    // uncoment this line if you want to stop when the first error is found.
    // tester.addListener(new StopOnFailureListener());
   
    tester.addCoverageMetric(new TransitionCoverage());
View Full Code Here

Examples of nz.govt.natlib.fx.ParserContext.addListener()

    // Set up the parser context and listener to hold the adapter output
    ParserContext pContext = new ParserContext();
   
    ParserListener listener= new DTDXmlParserListener(adapterOutput, outDTD == null ? null
        : Config.getInstance().getXMLBaseURL() + "/" + outDTD);
    pContext.addListener(listener);
   
    // Attempt to harvest the metadata.
    try {       
      // Extract the metadata.
      adapter.adapt(file, pContext);
View Full Code Here

Examples of org.activiti.explorer.ui.content.CreateAttachmentPopupWindow.addListener()

        } else {
          popup.setTaskId(task.getId());
        }
       
        // Add listener to update attachments when added
        popup.addListener(new SubmitEventListener() {
         
          private static final long serialVersionUID = 1L;

          @Override
          protected void submitted(SubmitEvent event) {
View Full Code Here

Examples of org.activiti.explorer.ui.custom.ConfirmationDialogPopupWindow.addListener()

    ViewManager viewManager = ExplorerApp.get().getViewManager();
   
    // Add listener to confirmation window. If confirmed, membership is deleted
    ConfirmationDialogPopupWindow confirmationPopup =
      new ConfirmationDialogPopupWindow(i18nManager.getMessage(Messages.USER_CONFIRM_DELETE_GROUP, userId, groupId));
    confirmationPopup.addListener(new ConfirmationEventListener() {
      protected void rejected(ConfirmationEvent event) {
      }
      protected void confirmed(ConfirmationEvent event) {
        identityService.deleteMembership(userId, groupId);
        membershipChangeListener.notifyMembershipChanged();
View Full Code Here

Examples of org.activiti.explorer.ui.custom.SelectUsersPopupWindow.addListener()

     
      public void buttonClick(ClickEvent event) {
        final SelectUsersPopupWindow involvePeoplePopupWindow =
          new SelectUsersPopupWindow(i18nManager.getMessage(Messages.PEOPLE_INVOLVE_POPUP_CAPTION), true);
       
        involvePeoplePopupWindow.addListener(new SubmitEventListener() {
          protected void submitted(SubmitEvent event) {
            Collection<String> selectedUserIds = involvePeoplePopupWindow.getSelectedUserIds();
            for (String userId : selectedUserIds) {
              String role = involvePeoplePopupWindow.getSelectedUserRole(userId);
              taskService.addUserIdentityLink(task.getId(), userId, role);
View Full Code Here

Examples of org.antlr.v4.Tool.addListener()

    final String[] optionsA = new String[options.size()];
    options.toArray(optionsA);
    Tool antlr = newTool(optionsA);
    ErrorQueue equeue = new ErrorQueue(antlr);
    antlr.addListener(equeue);
    if (defaultListener) {
      antlr.addListener(new DefaultToolListener(antlr));
    }
    antlr.processGrammarsOnCommandLine();
View Full Code Here

Examples of org.apache.any23.plugin.crawler.SiteCrawler.addListener()

        siteCrawler.setNumOfCrawlers( numCrawlers );
        siteCrawler.setMaxPages( maxPages );
        siteCrawler.setMaxDepth( maxDepth );
        siteCrawler.setPolitenessDelay(politenessDelay);

        siteCrawler.addListener(new CrawlerListener() {
            @Override
            public void visitedPage(Page page) {
                final String pageURL = page.getWebURL().getURL();
                System.err.println( format("Processing page: [%s]", pageURL) );
View Full Code Here

Examples of org.apache.axis2.engine.ListenerManager.addListener()

            getTransportsIn().keySet().iterator();
        while (iter.hasNext()) {
            String trp = (String) iter.next();
            TransportInDescription trsIn =
                configctx.getAxisConfiguration().getTransportsIn().get(trp);
            listenerManager.addListener(trsIn, false);
        }
    }

    public void testN2N() throws Exception {
        // Creating the Simple Commodity Client
View Full Code Here

Examples of org.apache.batik.dom.events.EventListenerList.addListener()

        EventListenerList list = (EventListenerList) listeners.get(type);
        if (list == null) {
            list = new EventListenerList();
            listeners.put(type, list);
        }
        list.addListener(namespaceURI, null, listener);
    }

    /**
     * Unregisters an implementation event listener.
     */
 
View Full Code Here

Examples of org.apache.cassandra.repair.RepairSession.addListener()

        // register listeners
        gossiper.register(session);
        failureDetector.registerFailureDetectionEventListener(session);

        // unregister listeners at completion
        session.addListener(new Runnable()
        {
            /**
             * When repair finished, do clean up
             */
            public void run()
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.