Package org.primefaces.component.datatable.feature

Examples of org.primefaces.component.datatable.feature.DataTableFeature


    @Override
    public void decode(FacesContext context, UIComponent component) {
        DataTable table = (DataTable) component;

        for(Iterator<DataTableFeature> it = DataTable.FEATURES.values().iterator(); it.hasNext();) {
            DataTableFeature feature = it.next();
           
            if(feature.shouldDecode(context, table)) {
                feature.decode(context, table);
            }
        }
       
        decodeBehaviors(context, component);       
    }
View Full Code Here


  public void encodeEnd(FacesContext context, UIComponent component) throws IOException{
    DataTable table = (DataTable) component;

        if(table.shouldEncodeFeature(context)) {
            for(Iterator<DataTableFeature> it = DataTable.FEATURES.values().iterator(); it.hasNext();) {
                DataTableFeature feature = it.next();

                if(feature.shouldEncode(context, table)) {
                    feature.encode(context, this, table);
                }
            }
        }
        else
            preRender(context, table);
View Full Code Here

    @Override
    public void decode(FacesContext context, UIComponent component) {
        DataTable table = (DataTable) component;

        for(Iterator<DataTableFeature> it = DataTable.FEATURES.values().iterator(); it.hasNext();) {
            DataTableFeature feature = it.next();
           
            if(feature.shouldDecode(context, table)) {
                feature.decode(context, table);
            }
        }
       
        decodeBehaviors(context, component);       
    }
View Full Code Here

  public void encodeEnd(FacesContext context, UIComponent component) throws IOException{
    DataTable table = (DataTable) component;

        if(table.shouldEncodeFeature(context)) {
            for(Iterator<DataTableFeature> it = DataTable.FEATURES.values().iterator(); it.hasNext();) {
                DataTableFeature feature = it.next();

                if(feature.shouldEncode(context, table)) {
                    feature.encode(context, this, table);
                }
            }
        }
        else
            preRender(context, table);
View Full Code Here

TOP

Related Classes of org.primefaces.component.datatable.feature.DataTableFeature

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.