Package com.github.dandelion.datatables.core.extension.feature

Examples of com.github.dandelion.datatables.core.extension.feature.PaginationType


    Boolean featureAutoWidth = TableConfig.FEATURE_AUTOWIDTH.valueFrom(tableConfiguration);
    String featureLengthMenu = TableConfig.FEATURE_LENGTHMENU.valueFrom(tableConfiguration);
    String cssStripeClasses = TableConfig.CSS_STRIPECLASSES.valueFrom(tableConfiguration);
    Integer featureDisplayLength = TableConfig.FEATURE_DISPLAYLENGTH.valueFrom(tableConfiguration);
    Boolean featureLengthChange = TableConfig.FEATURE_LENGTHCHANGE.valueFrom(tableConfiguration);
    PaginationType featurePaginationType = TableConfig.FEATURE_PAGINATIONTYPE.valueFrom(tableConfiguration);
    Boolean featureStateSave = TableConfig.FEATURE_STATESAVE.valueFrom(tableConfiguration);
    Boolean featureJqueryUi = TableConfig.FEATURE_JQUERYUI.valueFrom(tableConfiguration);
   
    if (StringUtils.isNotBlank(featureDom)) {
      mainConf.put(DTConstants.DT_DOM, featureDom);
    }
    if(featureAutoWidth != null){
      mainConf.put(DTConstants.DT_AUTO_WIDTH, featureAutoWidth);
    }
    if (featureDisplayLength != null) {
      mainConf.put(DTConstants.DT_I_DISPLAY_LENGTH, featureDisplayLength);
    }
    if (featureLengthChange != null) {
      mainConf.put(DTConstants.DT_LENGTH_CHANGE, featureLengthChange);
    }
    if (featurePaginationType != null) {
      mainConf.put(DTConstants.DT_PAGINATION_TYPE, featurePaginationType.toString());
    }
    if (featureStateSave != null) {
      mainConf.put(DTConstants.DT_STATE_SAVE, featureStateSave);
    }
    if (featureJqueryUi != null) {
View Full Code Here


public class FeaturePaginationTypeProcessor extends AbstractConfigurationProcessor {

  @Override
  public void doProcess() {

    PaginationType type = null;
    if (StringUtils.isNotBlank(stringifiedValue)) {
      try {
        type = PaginationType.valueOf(stringifiedValue.toUpperCase());
      } catch (IllegalArgumentException e) {
        throw new ConfigurationProcessingException(stringifiedValue + " is not a valid value among "
View Full Code Here

TOP

Related Classes of com.github.dandelion.datatables.core.extension.feature.PaginationType

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.