Package org.richfaces.model

Examples of org.richfaces.model.FilterField


    for (Iterator<UIComponent> iterator = list.iterator(); iterator
        .hasNext();) {
      UIComponent component = iterator.next();
      if (component instanceof UIColumn) {
        UIColumn column = (UIColumn) component;
        FilterField filterField = column.getFilterField();
        if (filterField != null) {
          filterFields.add(filterField);
        }
        SortField2 sortField = column.getSortField();
        if (sortField != null) {
View Full Code Here


    for (Iterator<UIComponent> iterator = list.iterator(); iterator
        .hasNext();) {
      UIComponent component = iterator.next();
      if (component instanceof UIColumn) {
        UIColumn column = (UIColumn) component;
        FilterField filterField = column.getFilterField();
        if (filterField != null) {
          filterFields.add(filterField);
        }
        SortField2 sortField = column.getSortField();
        if (sortField != null) {
View Full Code Here

    for (Iterator<UIComponent> iterator = list.iterator(); iterator.hasNext();) {
      UIComponent component = iterator.next();
      if (component instanceof org.richfaces.component.UIColumn) {
        org.richfaces.component.UIColumn column = (org.richfaces.component.UIColumn) component;
        if(column.isRendered()){
          FilterField filterField = column.getFilterField();
          if (filterField != null) {
            filterFields.add(filterField);
          }
          SortField2 sortField = column.getSortField();
          if (sortField != null) {
View Full Code Here

    return rendered;
  }
  //
 
  public FilterField getFilterField(){
    FilterField filterField = null;
    MethodExpression filterMethod = getFilterMethod();
    ValueExpression filterExpression = getValueExpression("filterExpression");
    ValueExpression filterBy = getValueExpression("filterBy");
    String filterValue = getFilterValue();
    if (filterMethod != null) {
      filterField = new FilterField(filterMethod);
    } else if (filterExpression != null) {
      filterField = new FilterField(filterExpression);
    } else if (filterBy != null) {
      filterField = new ExtendedFilterField(filterBy, filterValue);
    }
    return filterField;
  }
View Full Code Here

        };
        Object object = new Object();
        column.setValueExpression("filterExpression", expression);
        column.setFilter(filter);
        column.setFilterValue(object);
        FilterField filterField = column.getFilterField();
        Assert.assertEquals(expression, filterField.getFilterExpression());
        Assert.assertSame(filter, filterField.getFilter());
        Assert.assertEquals(object, filterField.getFilterValue());
    }
View Full Code Here

     */
    @Attribute
    public abstract String getStyleClass();

    public FilterField getFilterField() {
        FilterField field = null;
        Filter<?> filter = getFilter();
        ValueExpression filterExpression = getValueExpression("filterExpression");
        if (filter != null || filterExpression != null) {
            field = new FilterField(filterExpression, filter, getFilterValue());
        }
        return field;
    }
View Full Code Here

        Map<Object, SortField> sortFieldsMap = new LinkedHashMap<Object, SortField>();
        for (Iterator<UIComponent> iterator = columns(); iterator.hasNext();) {
            UIComponent component = iterator.next();
            if (component instanceof AbstractColumn && component.isRendered()) {
                AbstractColumn column = (AbstractColumn) component;
                FilterField filterField = column.getFilterField();
                if (filterField != null) {
                    filterFields.add(filterField);
                }
                SortField sortField = column.getSortField();
                if (sortField != null) {
View Full Code Here

    List<UIComponent> list = getChildren();
    for (Iterator<UIComponent> iterator = list.iterator(); iterator.hasNext();) {
      UIComponent component = iterator.next();
      if (component instanceof org.richfaces.component.UIColumn) {
        org.richfaces.component.UIColumn column = (org.richfaces.component.UIColumn) component;
        FilterField filterField = column.getFilterField();
        if (filterField != null) {
          filterFields.add(filterField);
        }
        SortField2 sortField = column.getSortField();
        if (sortField != null) {
View Full Code Here

    return rendered;
  }
  //
 
  public FilterField getFilterField(){
    FilterField filterField = null;
    MethodExpression filterMethod = getFilterMethod();
    ValueExpression filterExpression = getValueExpression("filterExpression");
    ValueExpression filterBy = getValueExpression("filterBy");
    String filterValue = getFilterValue();
    if (filterMethod != null) {
      filterField = new FilterField(filterMethod);
    } else if (filterExpression != null) {
      filterField = new FilterField(filterExpression);
    } else if (filterBy != null) {
      filterField = new ExtendedFilterField(filterBy, filterValue);
    }
    return filterField;
  }
View Full Code Here

TOP

Related Classes of org.richfaces.model.FilterField

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.