Package gov.nasa.arc.mct.gui.View

Examples of gov.nasa.arc.mct.gui.View.ControlWrapper


        MockManifestation manifestation = new MockManifestation();
       
        // Verify control manifestation is wrapped
        JComponent controlManifestation = manifestation.getControlManifestation();
        Assert.assertTrue(controlManifestation instanceof ControlWrapper);
        ControlWrapper controlWrapper = (ControlWrapper) controlManifestation;
        GlassPanel controlGlass = controlWrapper.getGlassPanel();
        manifestation.exitLockedState();
        Assert.assertTrue(controlGlass.getMouseListeners().length > 0);
        Assert.assertTrue(controlGlass.getKeyListeners().length > 0);
       
        // Verify that the input listeners are removed when the glass panel is turned off
View Full Code Here


            }
        };
       
        // Test control manifestation and its glass panel
        JPanel controlPanel = new JPanel();
        ControlWrapper controlWrapper = new ControlWrapper(controlPanel);
        repaintManager.addDirtyRegion(controlPanel, 0, 0, 0, 0);
        Assert.assertSame(reference.get(), controlWrapper.getGlassPanel());

        // Test view manifestation and its glass panel
        View manifestation = new View() {
            @Override
            public AbstractComponent getManifestedComponent() {
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.gui.View.ControlWrapper

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.