Package org.openquark.gems.client.valueentry

Examples of org.openquark.gems.client.valueentry.ValueEditorManager


                }                           
            } else {
                specializedInputTypes = TypeExpr.copyTypeExprs(inputTypes);
            }

            ValueEditorManager valueEditorManager = gemCutter.getValueEditorManager();
            ValueEditorDirector valueEditorDirector = valueEditorManager.getValueEditorDirector();

            Map<PartInput, ValueEditor> inputToEditorMap = new LinkedHashMap<PartInput, ValueEditor>();

            // Step through args, create a new value input panel for each, with the correct value type
            for (int i = 0; i < numArgs; i++) {
View Full Code Here


        // TODOEL: the various runners should create their own builder helpers.
        //   Unfortunately we still rely on the value editor manager for vnbh initialization.
        ValueNodeBuilderHelper valueBuilderHelper = new ValueNodeBuilderHelper(perspective);
        ValueNodeBuilderHelper displayedGemBuilderHelper = new ValueNodeBuilderHelper(perspective);
       
        valueEditorManager = new ValueEditorManager(displayedGemBuilderHelper, getWorkspace(), typeColours, getTypeCheckInfo());
        displayedGemRunner = new DisplayedGemRunner(workspaceManager, this);
        tableTopEditorHierarchyManager = new ValueEditorHierarchyManager(valueEditorManager, getTableTopPanel());
        outputPanelHierarchyManager = new ValueEditorHierarchyManager(valueEditorManager, getLayeredPane());

        valueRunner.setValueNodeBuilderHelper(valueBuilderHelper);
View Full Code Here

        // Lazily create the value panel on demand.
        if (!valueGemPanelMap.containsKey(valueGem)) {
           
            final ValueEditorHierarchyManager valueEditorHierarchyManager = gemCutter.getValueEditorHierarchyManager();
            ValueEditorManager valueEditorManager = valueEditorHierarchyManager.getValueEditorManager();
            ValueNode valueNode = valueGem.getValueNode();
   
            // Create the value entry panel.
            final ValueEntryPanel valueEntryPanel =
                (ValueEntryPanel)valueEditorManager.getValueEditorDirector().getRootValueEditor(valueEditorHierarchyManager,
                                                                                                valueNode, null, 0, null);
           
            // Add it to the map.
            valueGemPanelMap.put(valueGem, valueEntryPanel);
           
View Full Code Here

                   
                    // Check if a value gem can be connected.
                    // They get special treatment since autoburning doesn't apply to value gems.
                   
                    ModuleTypeInfo currentModuleTypeInfo = tableTop.getCurrentModuleTypeInfo();
                    ValueEditorManager valueEditorManager = gemCutter.getValueEditorManager();
                   
                    if (!valueEditorManager.canInputDefaultValue(sinkPart.getType())) {
                        setCursor(connectNoParkCursor);
                       
                    } else if (GemGraph.isCompositionConnectionValid(sourcePart, sinkPart, currentModuleTypeInfo)) {
                        setCursor(connectCursor);
                       
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.valueentry.ValueEditorManager

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.