Package org.useware.kernel.model.scopes

Examples of org.useware.kernel.model.scopes.BranchActivation


        return activateBranch(unit, NONE);
    }

    public QName activateBranch(InteractionUnit unit, String suffix) {

        BranchActivation activation = new BranchActivation();
        unit.accept(activation);

        for(QName unitId : activation.getActiveItems().values())
        {
            // trigger activation procedure
            // TODO: Improve passing of relative nav information
            QName target = NONE.equals(suffix) ? unitId :
                    new QName(unitId.getNamespaceURI(), unitId.getLocalPart()+"#"+suffix);

            stateCoordination.activateUnit(target);
        }

        return activation.getActiveItems().get(activation.getActiveItems().size()-1);
    }
View Full Code Here


            Container container = this.container.isEmpty() ? null : this.container.peek();
            String parentId = container != null ? container.getId().toString() : null;

            // default activation
            BranchActivation activation = new BranchActivation();
            dialog.getInterfaceModel().accept(activation);
            Map<Integer,QName> activeItems = activation.getActiveItems();

            String style = activeItems.values().contains(interactionUnit.getId()) ? ACTIVE_STYLE : INACTIVE_STYLE;

            // statement context shadow visualisation
            Node<Scope> self = dialog.getScopeModel().findNode(interactionUnit.getScopeId());
View Full Code Here

                // show result
                ReificationWidget widget = context.get(ContextKey.WIDGET);
                assert widget !=null;

                cachedWidgets.put(name, widget);
                BranchActivation activation = new BranchActivation();
                dialog.getInterfaceModel().accept(activation);
                //System.out.println("<< Default Activation: "+activation.getCandidate()+">>");

                widgetCallback.onSuccess(widget.asWidget());
            }
View Full Code Here

TOP

Related Classes of org.useware.kernel.model.scopes.BranchActivation

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.