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

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


      contentVc.contextPut("hasTableSearch", Boolean.FALSE);
    }
  }

  private AutoCompleterController createTableSearchController(UserRequest ureq, WindowControl wControl) {
    ListProvider genericProvider = new ListProvider() {
      public void getResult(String searchValue, ListReceiver receiver) {
        Set<String> searchEntries = new TreeSet();
        // loop over hole data-model
        for (int rowIndex=0; rowIndex < table.getUnfilteredTableDataModel().getRowCount(); rowIndex++) {
          for (int colIndex=0; colIndex < table.getUnfilteredTableDataModel().getColumnCount(); colIndex++) {
View Full Code Here


  @Override
  protected Controller handleOwnMenuTreeEvent(Object uobject, final UserRequest ureq) {
    if (uobject.equals("guidemo-autocompletion")) {
      // for a demo of autocompletion, do a user search
      ListProvider provider = new ListProvider() {
        public void getResult(String searchValue, ListReceiver receiver) {
          Map<String, String> userProperties = new HashMap<String, String>();
          userProperties.put(UserConstants.FIRSTNAME, searchValue);
          userProperties.put(UserConstants.LASTNAME, searchValue);
          userProperties.put(UserConstants.EMAIL, searchValue);
View Full Code Here

   
    boolean ajax = Windows.getWindows(ureq).getWindowManager().isAjaxEnabled();
    final Locale loc = ureq.getLocale();
    if (ajax) {
      // insert a autocompleter search
      ListProvider provider = new ListProvider() {
        public void getResult(String searchValue, ListReceiver receiver) {
          Map<String, String> userProperties = new HashMap<String, String>();
          userProperties.put(UserConstants.FIRSTNAME, searchValue);
          userProperties.put(UserConstants.LASTNAME, searchValue);
          userProperties.put(UserConstants.EMAIL, searchValue);
View Full Code Here

TOP

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

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.