Examples of updateMonitoredGUI()


Examples of gov.nasa.arc.mct.gui.View.updateMonitoredGUI()

                        if (man.getManifestedComponent().getId().equalsIgnoreCase(newComponentId)) {
                            // Found the child that corresponds to our new component. Set it as selected.
                            directoryArea.setSelectedNode(childNode);
                            PropertyChangeEvent pce = new PropertyChangeEvent(man.getManifestedComponent());
                            pce.setProperty(PropertyChangeEvent.DISPLAY_NAME, PropertyChangeEvent.DISPLAY_NAME);
                            man.updateMonitoredGUI(pce);
                            break;
                        }
                    }           
                }
            }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.View.updateMonitoredGUI()

                // This is consistent with the usability requirement of feeding back the results of user actions.               
                if (path != null) {
                    // The target tree is not empty, set selection     
                    MCTMutableTreeNode selectedNode = (MCTMutableTreeNode) path.getLastPathComponent();
                    View selectedNodeGUIComponent = (View) selectedNode.getUserObject();
                    selectedNodeGUIComponent.updateMonitoredGUI(new FocusEvent(directoryArea, handler.getDroppedComponents()));
                }               
            } else {
                // Action was not permitted
                final String message = handler.getMessage();
                if (message != null) {
View Full Code Here

Examples of gov.nasa.arc.mct.gui.View.updateMonitoredGUI()

            }
        };
        Mockito.when(mockParentComponent.getComponents()).thenReturn(
                        Collections.<AbstractComponent> emptyList());
        RemoveChildEvent event = new RemoveChildEvent(new JPanel(), mockChildComponent);
        manif.updateMonitoredGUI(event);
        Set<Object> canvasContents = manif.getViewProperties().getProperty("CANVAS CONTENT PROPERTY");
        Assert.assertFalse(canvasContents.iterator().hasNext());
       
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.View.updateMonitoredGUI()

                        if (selectedNode.isProxy()) {
                            return;
                        }
                        // Let the node know it needs to refresh itself
                        View gui = (View) selectedNode.getUserObject();
                        gui.updateMonitoredGUI();
                    }
                }).execute();
            }
        }
    }
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.