Package java.awt.datatransfer

Examples of java.awt.datatransfer.FlavorMap


    public void testGetDropTargetContext() {
        Component c = new Component() {};
        int ops = 1;
        DropTargetListener dtl = new DTL();
        FlavorMap fm = new FM();
        DropTarget dt = new DropTarget(c, ops, dtl, false, fm);
        DropTargetContext dtc = dt.getDropTargetContext();
        assertSame(c, dtc.getComponent());
        assertSame(dt, dtc.getDropTarget());
    }
View Full Code Here


    }

    public void testSetFlavorMap() {
        DropTarget dt = new DropTarget();
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
        FlavorMap fm = new FM();
        dt.setFlavorMap(fm);
        assertSame(fm, dt.getFlavorMap());
        dt.setFlavorMap(null);
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
    }
View Full Code Here

        dt.setFlavorMap(null);
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
    }

    public void testGetFlavorMap() {
        FlavorMap fm = new FM();
        DropTarget dt = new DropTarget(null, 1, null, false, fm);
        assertSame(fm, dt.getFlavorMap());
        dt = new DropTarget();
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
    }
View Full Code Here

    public void testDropTargetComponentintDropTargetListenerbooleanFlavorMap() {
        Component c = new Component() {};
        int ops = 1;
        DropTargetListener dtl = new DTL();
        FlavorMap fm = new FM();
        DropTarget dt = new DropTarget(c, ops, dtl, false, fm);
        assertSame(c, dt.getComponent());
        assertSame(dt, c.getDropTarget());
        assertEquals(ops, dt.getDefaultActions());
        assertFalse(dt.isActive());
View Full Code Here

    public void testGetDropTargetContext() {
        Component c = new Component() {};
        int ops = 1;
        DropTargetListener dtl = new DTL();
        FlavorMap fm = new FM();
        DropTarget dt = new DropTarget(c, ops, dtl, false, fm);
        DropTargetContext dtc = dt.getDropTargetContext();
        assertSame(c, dtc.getComponent());
        assertSame(dt, dtc.getDropTarget());
    }
View Full Code Here

    }

    public void testSetFlavorMap() {
        DropTarget dt = new DropTarget();
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
        FlavorMap fm = new FM();
        dt.setFlavorMap(fm);
        assertSame(fm, dt.getFlavorMap());
        dt.setFlavorMap(null);
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
    }
View Full Code Here

        dt.setFlavorMap(null);
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
    }

    public void testGetFlavorMap() {
        FlavorMap fm = new FM();
        DropTarget dt = new DropTarget(null, 1, null, false, fm);
        assertSame(fm, dt.getFlavorMap());
        dt = new DropTarget();
        assertSame(SystemFlavorMap.getDefaultFlavorMap(), dt.getFlavorMap());
    }
View Full Code Here

TOP

Related Classes of java.awt.datatransfer.FlavorMap

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.