Package gov.nasa.arc.mct.components

Examples of gov.nasa.arc.mct.components.ExtendedProperties


    private ComponentRegistryAccess access;
   
    @BeforeMethod
    public void setup() {
        MockitoAnnotations.initMocks(this);
        extProps = new ExtendedProperties();

        Mockito.when(mockParentComponent.getComponents()).thenReturn(
                        Collections.<AbstractComponent> singletonList(mockChildComponent));
       
        String childComponentId = "test1";
View Full Code Here


       
                frame = new JFrame(TITLE);
                frame.setName(TITLE);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

                final ExtendedProperties viewProps = new ExtendedProperties();
                canvasManifestation = new TestCanvasManifestation(mockComponent, new ViewInfo(CanvasManifestation.class, "", ViewType.CENTER)) {
                    @Override
                    public ExtendedProperties getViewProperties() {
                        return viewProps;
                    }
View Full Code Here

    private void changeOrder(Panel panel, int order) {
        canvasPanel.setComponentZOrder(panel, order);
    }
   
    void changeOrder(Panel panel, PANEL_ZORDER order) {
        ExtendedProperties viewProperties = getViewProperties();
        gov.nasa.arc.mct.util.LinkedHashSet<Object> canvasContents = (gov.nasa.arc.mct.util.LinkedHashSet<Object>)viewProperties.getProperty(CanvasManifestation.CANVAS_CONTENT_PROPERTY);
        MCTViewManifestationInfo movedManifestInfo = CanvasManifestation.getManifestationInfo(panel.getWrappedManifestation());
        canvasContents.remove(movedManifestInfo);

        switch(order) {
            case FRONT: changeOrder(panel, 0);
View Full Code Here

    }
   
    @SuppressWarnings("serial")
    @Test
    public void notifyXPropertyChangeTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            public ExtendedProperties getViewProperties() {
                return viewProps;
            };
        };
View Full Code Here

    }

    @SuppressWarnings("serial")
    @Test
    public void notifyYPropertyChangeTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            public ExtendedProperties getViewProperties() {
                return viewProps;
            };
        };
View Full Code Here

    }

    @SuppressWarnings("serial")
    @Test
    public void notifyWidthPropertyChangeTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            public ExtendedProperties getViewProperties() {
                return viewProps;
            };
        };
View Full Code Here

    }

    @SuppressWarnings("serial")
    @Test
    public void notifyHeightPropertyChangeTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            public ExtendedProperties getViewProperties() {
                return viewProps;
            };
        };
View Full Code Here

    }

    @SuppressWarnings("serial")
    @Test
    public void notifyAlignLeftSelectedTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            @Override
            public ExtendedProperties getViewProperties() {
                return viewProps;
            }
View Full Code Here

    }

    @SuppressWarnings("serial")
    @Test
    public void notifyAlignCenterHSelectedTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            public ExtendedProperties getViewProperties() {
                return viewProps;
            };
        };
View Full Code Here

    }

    @SuppressWarnings("serial")
    @Test
    public void notifyAlignRightSelectedTest() {
        final ExtendedProperties viewProps = new ExtendedProperties();
        CanvasManifestation canvas1 = new CanvasManifestation(mockComponent,canvasViewInfo) {
            public ExtendedProperties getViewProperties() {
                return viewProps;
            };
        };
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.components.ExtendedProperties

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.