All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.richfaces.cdk.model.FacesComponent Maven / Gradle / Ivy

The newest version!
package org.richfaces.cdk.model;

import org.richfaces.cdk.util.ComparatorUtils;

import com.google.common.base.Predicate;

public interface FacesComponent {
    /**
     * 

* This predicate can be used to lookup component in {@link ModelCollection} by id. *

* * @author [email protected] * */ public static final class ComponentPredicate implements Predicate { private final FacesId id; /** *

*

* * @param id */ public ComponentPredicate(FacesId id) { this.id = id; } /** *

*

* * @param name */ public ComponentPredicate(String name) { this.id = FacesId.parseId(name); } @Override public boolean apply(GeneratedFacesComponent input) { return ComparatorUtils.nullSafeEquals(input.getId(), this.id); } } /** *

*

* * @return */ FacesId getId(); /** *

*

* * @param id */ void setId(FacesId id); /** *

*

* * @param targetClass the targetClass to set */ void setTargetClass(ClassName targetClass); /** *

*

* * @return the targetClass */ ClassName getTargetClass(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy