Examples of addEventListener()


Examples of org.libreplan.web.common.EffortDurationBox.addEventListener()

    private void addListenerIfNeeded(Component allEffortComponent) {
        if (isEffortDurationBoxDisabled()) {
            return;
        }
        final EffortDurationBox effortDurationBox = (EffortDurationBox) allEffortComponent;
        effortDurationBox.addEventListener(Events.ON_CHANGE,
                new EventListener() {

                    @Override
                    public void onEvent(Event event) {
                        EffortDuration value = effortDurationBox
View Full Code Here

Examples of org.libreplan.web.common.components.Autocomplete.addEventListener()

        if (getCostCategory(row) != null) {
            autocomplete.setSelectedItem(getCostCategory(row));
        }

        // Setter, set type selected to HourCost.type
        autocomplete.addEventListener("onSelect", new EventListener() {

            @Override
            public void onEvent(Event event) {
                final Comboitem comboitem = autocomplete.getSelectedItem();
View Full Code Here

Examples of org.libreplan.web.common.components.NewDataSortableColumn.addEventListener()

                columnDate.setLabel(_("Date"));
                columnDate.setSclass("date-column");
                Util.setSort(columnDate, "auto=(date)");
                columnDate.setSortDirection("ascending");

                columnDate.addEventListener("onSort", new EventListener() {
                    @Override
                    public void onEvent(Event event) {
                        sortWorkReportLines();
                    }
                });
View Full Code Here

Examples of org.mortbay.jetty.Request.addEventListener()

                    event = new ServletRequestEvent(_scontext,request);
                    for(int i=0;i<LazyList.size(_requestListeners);i++)
                        ((ServletRequestListener)LazyList.get(_requestListeners,i)).requestInitialized(event);
                }
                for(int i=0;i<LazyList.size(_requestAttributeListeners);i++)
                    base_request.addEventListener(((EventListener)LazyList.get(_requestAttributeListeners,i)));
            }
           
            // Handle the request
            try
            {
View Full Code Here

Examples of org.mortbay.jetty.servlet.Context.addEventListener()

    URL resource = EndToEndTest.class.getResource("/endtoend");
    resources.setBaseResource(Resource.newResource(resource));
    newServer.addHandler(resources);

    Context context = new Context(newServer, "/", Context.SESSIONS);
    context.addEventListener(new GuiceServletContextListener());

    Map<String, String> initParams = Maps.newHashMap();
    String modules = Joiner.on(":")
        .join(SocialApiGuiceModule.class.getName(),
              SampleModule.class.getName(),
View Full Code Here

Examples of org.mortbay.jetty.webapp.WebAppContext.addEventListener()

        String webappDir = System.getProperty("webapp.dir");

        WebAppContext webCtx = new WebAppContext(webappDir == null ? "src/main/webapp" : webappDir, getContextPath());

        if (StringUtils.hasText(getContextConfigLocations())) {
            webCtx.addEventListener(new ContextLoaderListener());
            webCtx.addEventListener(new HttpSessionEventPublisher());
            webCtx.getInitParams().put("contextConfigLocation", getContextConfigLocations());
        }

        ServletHolder servlet = new ServletHolder();
View Full Code Here

Examples of org.mozilla.interfaces.nsIDOMEventTarget.addEventListener()

              String text =  element.getFirstChild().getNodeValue();
              if(text == null || text.trim().isEmpty() || "null".equalsIgnoreCase(text)) return;
              search(text.trim());
            }
          };
          target.addEventListener ("click", listener, false);
        }
      });
    }

    gridData = new GridData(GridData.FILL_BOTH);
View Full Code Here

Examples of org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector.addEventListener()

  public void activate() {
    logger.debug("Activate");
    RFXComSerialConnector connector = RFXComConnection.getCommunicator();
    if (connector != null) {
      connector.addEventListener(eventLister);
    }
  }

  public void deactivate() {
    logger.debug("Deactivate");
View Full Code Here

Examples of org.optaplanner.core.api.solver.Solver.addEventListener()

    public void solve(final HttpSession session) {
        final Solver solver = (Solver) session.getAttribute(CloudBalancingSessionAttributeName.SOLVER);
        final CloudBalance unsolvedSolution = (CloudBalance) session.getAttribute(CloudBalancingSessionAttributeName.SHOWN_SOLUTION);

        solver.addEventListener(new SolverEventListener<CloudBalance>() {
            public void bestSolutionChanged(BestSolutionChangedEvent<CloudBalance> event) {
                CloudBalance bestSolution = event.getNewBestSolution();
                session.setAttribute(CloudBalancingSessionAttributeName.SHOWN_SOLUTION, bestSolution);
            }
        });
View Full Code Here

Examples of org.red5.server.api.so.ISharedObject.addEventListener()

    assertTrue("so exists?", service.hasSharedObject(scope, name));
    ISharedObject so = service.getSharedObject(scope, name);
    assertTrue("so not null", so != null);
    assertTrue("name same", so.getName().equals(name));
    //assertTrue("persistent",!so.isPersistent());
    so.addEventListener(this);
    so.setAttribute("this", "that");
  }

}
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.