Package org.cyclop.web.common

Examples of org.cyclop.web.common.TextModel


    add(browserCallback);
    return browserCallback;
  }

  private void initFilter(final WebMarkupContainer historyContainer) {
    final TextModel filterFieldModel = new TextModel();
    final TextField<String> filterField = new TextField<>("filterField", filterFieldModel);
    filterField.setOutputMarkupId(true);

    filterField.add(new FilterBehaviour(filterFieldModel, historyContainer));
    add(filterField);

    AjaxFallbackLink<Void> resetFilter = new AjaxFallbackLink<Void>("resetFilter") {
      @Override
      public void onClick(AjaxRequestTarget target) {
        ImmutableList<QueryEntry> historyToUpdate = historyService.read().copyAsList();

        rebuildHistoryTable(historyToUpdate, null);
        filterFieldModel.setObject("");
        target.add(filterField);
        target.add(historyContainer);
        target.appendJavaScript("initResetButton();");
      }
    };
View Full Code Here

TOP

Related Classes of org.cyclop.web.common.TextModel

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.