Package org.olat.core.gui.control.generic.ajax.autocompletion

Examples of org.olat.core.gui.control.generic.ajax.autocompletion.EntriesChosenEvent


  }

  public void dispatchEvent(UserRequest ureq, Controller source, Event event) {
    log.debug("dispatchEvent event=" + event + "  source=" + source);
    if (event instanceof EntriesChosenEvent) {
      EntriesChosenEvent ece = (EntriesChosenEvent)event;       
      List filterList = ece.getEntries();
      if (!filterList.isEmpty()) {
        this.table.setSearchString((String)filterList.get(0));
        this.modelChanged(false);
      else {
        // reset filter search filter in modelChanged
View Full Code Here


      Controller c = new AutoCompleterController(ureq, getWindowControl(), provider, "-no user found-", false);
     
      // for demo only, normally use in parent controller
      c.addControllerListener(new ControllerEventListener() {
        public void dispatchEvent(UserRequest ureq, Controller source, Event event) {
          EntriesChosenEvent ece = (EntriesChosenEvent) event;
          String sel = ece.getEntries().toString();
          getWindowControl().setInfo("selected entrie(s):"+sel);
         
        }});
      return c;
    }
View Full Code Here

          foundIdentities = tdm.getObjects(tmse.getSelection());
          fireEvent(ureq, new MultiIdentityChosenEvent(foundIdentities));
        }
      }
    } else if (source == autocompleterC) {
      EntriesChosenEvent ece = (EntriesChosenEvent)event;
      List res = ece.getEntries();
      // if we get the event, we have a result
      String mySel = res.isEmpty() ? null : (String) res.get(0);
      if (( mySel == null) || mySel.trim().equals("")) {
        getWindowControl().setWarning(pT.translate("error.search.form.notempty"));
        return;
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.ajax.autocompletion.EntriesChosenEvent

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.