Package org.richfaces.demo.capitals

Examples of org.richfaces.demo.capitals.Capital


  private String filterZone = "5";
  private String filterValue="";
  private ArrayList<SelectItem> filterZones = new ArrayList<SelectItem>();

  public boolean filterStates(Object current) {
    Capital currentCapital = (Capital)current;
    if (filterValue.length()==0) {
      return true;
    }
    if (currentCapital.getState().toLowerCase().startsWith(filterValue.toLowerCase())) {
      return true;
    }else {
      return false;
    }
  }
View Full Code Here

TOP

Related Classes of org.richfaces.demo.capitals.Capital

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.