Package ca.odell.glazedlists.impl.event

Examples of ca.odell.glazedlists.impl.event.Tree4Deltas.reset()


    /**
     * Make sure the deltas iterator works as expected.
     */
    public void testIterateByBlocks() {
        Tree4Deltas deltas = new Tree4Deltas();
        deltas.reset(10);
        deltas.targetInsert(3, 6, null);
        deltas.targetDelete(8, 10, ListEvent.UNKNOWN_VALUE);

        Tree4Deltas.Iterator iterator = deltas.iterator();
        assertEquals(true, iterator.hasNextNode());
View Full Code Here


        assertEquals(false, iterator.hasNextNode());
    }
   
    public void testTargetChanges() {
        Tree4Deltas deltas = new Tree4Deltas();
        deltas.reset(10);
        assertEquals("__________", deltas.toString());

        deltas.targetDelete(5, 6, null);
        deltas.targetInsert(2, 3, null);
        deltas.targetUpdate(8, 9, null, null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.