Package org.gdbms.engine.data

Examples of org.gdbms.engine.data.DataSource.addSelectionListener()


   
    public void testSelectionChange() throws Exception {
        DataSource d = ds.getDataSource("persona", DataSourceFactory.UNDOABLE);
       
        TheSelectionListener tsl = new TheSelectionListener();
        d.addSelectionListener(tsl);
        d.setSelectedRows(new int[]{1,2,3});
        assertTrue(tsl.counter == 1);
        int[] sel = new int[]{1,2,4};
        d.setSelectedRows(sel);
        assertTrue(tsl.counter == 2);
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.