Package com.extjs.gxt.ui.client.data

Examples of com.extjs.gxt.ui.client.data.FilterConfig


  @Override
  public List<FilterConfig> getSerialArgs() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (beforeItem != null && beforeItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "before", beforeMenu.getDate());
      configs.add(c);
    }
    if (afterItem != null && afterItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "after", afterMenu.getDate());
      configs.add(c);
    }
    if (onItem != null && onItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "on", onMenu.getDate());
      configs.add(c);
    }
    return configs;
  }
View Full Code Here


  }

  @Override
  @SuppressWarnings("unchecked")
  public List<FilterConfig> getSerialArgs() {
    FilterConfig config = new BaseBooleanFilterConfig();
    config.setType("boolean");
    config.setValue(getValue());
    return Util.createList(config);
  }
View Full Code Here

   * @return the value
   */
  public List<FilterConfig> getValue() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (eq != null && eq.getValue() != null && eq.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "eq", eq.getValue());
      configs.add(config);
    }
    if (lt != null && lt.getValue() != null && lt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "lt", lt.getValue());
      configs.add(config);
    }

    if (gt != null && gt.getValue() != null && gt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "gt", gt.getValue());
      configs.add(config);
    }
    return configs;
  }
View Full Code Here

   * @return the value
   */
  public List<FilterConfig> getValue() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (eq != null && eq.getValue() != null && eq.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "eq", eq.getValue());
      configs.add(config);
    }
    if (lt != null && lt.getValue() != null && lt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "lt", lt.getValue());
      configs.add(config);
    }

    if (gt != null && gt.getValue() != null && gt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "gt", gt.getValue());
      configs.add(config);
    }
    return configs;
  }
View Full Code Here

  }

  @Override
  @SuppressWarnings("unchecked")
  public List<FilterConfig> getSerialArgs() {
    FilterConfig config = new BaseBooleanFilterConfig();
    config.setType("boolean");
    config.setValue(getValue());
    return Util.createList(config);
  }
View Full Code Here

  @Override
  public List<FilterConfig> getSerialArgs() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (beforeItem != null && beforeItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "before", beforeMenu.getDate());
      configs.add(c);
    }
    if (afterItem != null && afterItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "after", afterMenu.getDate());
      configs.add(c);
    }
    if (onItem != null && onItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "on", onMenu.getDate());
      configs.add(c);
    }
    return configs;
  }
View Full Code Here

  }

  @Override
  @SuppressWarnings("unchecked")
  public List<FilterConfig> getSerialArgs() {
    FilterConfig config = new BaseBooleanFilterConfig();
    config.setType("boolean");
    config.setValue(getValue());
    return Util.createList(config);
  }
View Full Code Here

  @Override
  public List<FilterConfig> getSerialArgs() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (beforeItem != null && beforeItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "before", beforeMenu.getDate());
      configs.add(c);
    }
    if (afterItem != null && afterItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "after", afterMenu.getDate());
      configs.add(c);
    }
    if (onItem != null && onItem.isChecked()) {
      FilterConfig c = new BaseDateFilterConfig("date", "on", onMenu.getDate());
      configs.add(c);
    }
    return configs;
  }
View Full Code Here

   * @return the value
   */
  public List<FilterConfig> getValue() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (eq != null && eq.getValue() != null && eq.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "eq", eq.getValue());
      configs.add(config);
    }
    if (lt != null && lt.getValue() != null && lt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "lt", lt.getValue());
      configs.add(config);
    }

    if (gt != null && gt.getValue() != null && gt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "gt", gt.getValue());
      configs.add(config);
    }
    return configs;
  }
View Full Code Here

   * @return the value
   */
  public List<FilterConfig> getValue() {
    List<FilterConfig> configs = new ArrayList<FilterConfig>();
    if (eq != null && eq.getValue() != null && eq.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "eq", eq.getValue());
      configs.add(config);
    }
    if (lt != null && lt.getValue() != null && lt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "lt", lt.getValue());
      configs.add(config);
    }

    if (gt != null && gt.getValue() != null && gt.isValid()) {
      FilterConfig config = new BaseNumericFilterConfig("numeric", "gt", gt.getValue());
      configs.add(config);
    }
    return configs;
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.data.FilterConfig

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.