Package com.projity.pm.graphic.model.cache

Examples of com.projity.pm.graphic.model.cache.CacheInterval


    public void graphicNodesCompositeEvent(CompositeCacheEvent compositeEvent){
        for (Iterator i=compositeEvent.getNodeEvents().iterator();i.hasNext();){
            final CacheEvent e=(CacheEvent)i.next();
            e.forIntervals(new Closure() {
                public void execute(Object obj) {
                    CacheInterval i = (CacheInterval) obj;
                     if (e.getType()==CacheEvent.NODES_CHANGED)
                        fireTableRowsUpdated(i.getStart(), i.getEnd());
                    else if (e.getType()==CacheEvent.NODES_INSERTED)
                        fireTableRowsInserted(i.getStart(), i.getEnd());
                    else if (e.getType()==CacheEvent.NODES_REMOVED)
                        fireTableRowsDeleted(i.getStart(), i.getEnd());
                }
            });
        }
    }
View Full Code Here

TOP

Related Classes of com.projity.pm.graphic.model.cache.CacheInterval

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.