Package org.zkoss.ganttz

Examples of org.zkoss.ganttz.FilterAndParentExpandedPredicates


    }

    private FilterAndParentExpandedPredicates getFilterAndParentExpanedPredicates(
            final TaskElementPredicate predicate) {
        final IContext<?> context = planner.getContext();
        FilterAndParentExpandedPredicates newPredicate = new FilterAndParentExpandedPredicates(
                context) {
            @Override
            public boolean accpetsFilterPredicate(Task task) {
                if (predicate == null) {
                    return true;
                }
                TaskElement taskElement = (TaskElement) context.getMapper()
                        .findAssociatedDomainObject(task);
                return predicate.accepts(taskElement);
            }

        };
        newPredicate.setFilterContainers(planner.getPredicate()
                .isFilterContainers());
        return newPredicate;
    }
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.FilterAndParentExpandedPredicates

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.