Example usage for org.apache.commons.collections PredicateUtils falsePredicate

List of usage examples for org.apache.commons.collections PredicateUtils falsePredicate

Introduction

In this page you can find the example usage for org.apache.commons.collections PredicateUtils falsePredicate.

Prototype

public static Predicate falsePredicate() 

Source Link

Document

Gets a Predicate that always returns false.

Usage

From source file:org.apache.cayenne.modeler.dialog.autorelationship.InferRelationshipsTabController.java

/**
 * An action that updates entity check boxes in response to the Select All state
 * change./*from  w w  w  .j  a va  2 s .  co m*/
 */
public void checkAllAction() {

    Predicate predicate = view.getCheckAll().isSelected() ? PredicateUtils.truePredicate()
            : PredicateUtils.falsePredicate();

    if (getParentController().updateSelection(predicate)) {
        tableBinding.updateView();
    }
}

From source file:org.apache.cayenne.modeler.dialog.codegen.CodeGeneratorController.java

public void generatorSelectedAction() {
    GeneratorController controller = generatorSelector.getGeneratorController();
    validate(controller);/*from   ww w  . j a  v a2  s . c o m*/

    Predicate predicate = controller != null ? controller.getDefaultClassFilter()
            : PredicateUtils.falsePredicate();

    updateSelection(predicate);
    classesSelector.classSelectedAction();
}