Package org.cyclop.model

Examples of org.cyclop.model.UserPreferences


    resultModel = initResultTable(importResultContainer);
  }

  private ImportOptions createImportOptions() {
    ImportOptions importOptions = new ImportOptions();
    UserPreferences prefs = um.readPreferences();
    importOptions.setContinueWithErrors(prefs.isImportContinueWithErrors());
    importOptions.setIncludeInHistory(prefs.isImportIncludeInHistory());
    importOptions.setParallel(prefs.isImportParallel());
    return importOptions;
  }
View Full Code Here


    final BootstrapPagingNavigator importResultPager = new BootstrapPagingNavigator("importResultPager",
        historyTable, new PagerConfigurator() {

          @Override
          public void onItemsPerPageChanged(AjaxRequestTarget target, long newItemsPerPage) {
            UserPreferences prefs = um.readPreferences().setPagerImportItems(newItemsPerPage);
            um.storePreferences(prefs);
          }

          @Override
          public long getInitialItemsPerPage() {
View Full Code Here

    String js = JsFunctionBuilder.function("onQueryImportResponse").param(response).build();
    target.appendJavaScript(js);
  }

  private void updatePreferences(ImportOptions importOptions) {
    UserPreferences prefs = um.readPreferences();
    prefs.setImportContinueWithErrors(importOptions.isContinueWithErrors())
        .setImportIncludeInHistory(importOptions.isIncludeInHistory())
        .setImportParallel(importOptions.isParallel());
    um.storePreferences(prefs);
  }
View Full Code Here

TOP

Related Classes of org.cyclop.model.UserPreferences

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.