Package org.useware.kernel.model.structure

Examples of org.useware.kernel.model.structure.InteractionUnit


                        "source-vm"

                );

        // structure & mapping
        InteractionUnit root = new Builder()
                .start(overview)
                    .mappedBy(global)
                    .add(attributes).mappedBy(attributesMapping)
                .end()
        .build();
View Full Code Here


                        "default-server", "instance-id",
                        "default-virtual-host", "default-servlet-container"
                );*/

        // structure & mapping
        InteractionUnit root = new Builder()
                .start(overview)
                    .mappedBy(global)

                    // handler section
                    .start(handler)
View Full Code Here

        QName source = (QName)event.getSource();
        QName target = event.getTarget();

        //System.out.println("Navigate to " + target);

        InteractionUnit targetUnit = dialog.findUnit(target);
        if(targetUnit!=null// local to dialog
        {
            String suffix = target.getSuffix();
            if("prev".equals(suffix) || "next".equals(suffix)) // relative, local (#prev, #next)
            {
                throw new RuntimeException("Relative navigation ot implemented: "+suffix);

                /*if(NavigationEvent.RELATION.next.equals(suffix))
                {

                }
                else if(NavigationEvent.RELATION.prev.equals(suffix))
                {

                } */
            }
            else // absolute, local
            {
                Procedure activateProcedure = procedures.getSingle(CommonQNames.ACTIVATION_ID);
                activateProcedure.getCommand().execute(dialog, targetUnit.getId());
            }
        }
        else // absolute, external
        {
            navigationDelegate.onNavigation(dialog.getId(), target); // TODO: dialog || unit as source?
View Full Code Here

        QName source = (QName)event.getSource();
        QName target = event.getTarget();

        //System.out.println("Navigate to " + target);

        InteractionUnit targetUnit = dialog.findUnit(target);
        if(targetUnit!=null// local to dialog
        {
            String suffix = target.getSuffix();
            if("prev".equals(suffix) || "next".equals(suffix)) // relative, local (#prev, #next)
            {
                throw new RuntimeException("Relative navigation not implemented: "+suffix);

                /*if(NavigationEvent.RELATION.next.equals(suffix))
                {

                }
                else if(NavigationEvent.RELATION.prev.equals(suffix))
                {

                } */
            }
            else // absolute, local
            {
                Procedure activateProcedure = procedures.getSingle(CommonQNames.ACTIVATION_ID);
                activateProcedure.getCommand().execute(dialog, targetUnit.getId());
            }
        }
        else // absolute, external
        {
            navigationDelegate.onNavigation(dialog.getId(), target); // TODO: dialog || unit as source?
View Full Code Here

        Mapping connectionAttributesMapping = new DMRMapping()
                .addAttributes("connection-url", "new-connection-sql", "transaction-isolation", "jta", "use-ccm");

        // UI
        InteractionUnit root = new Builder()
                .start(new Container<StereoTypes>(namespace, "datasources", "Datasources", Choice, EditorPanel))
                .mappedBy(datasourceCollection)

                    .start(new Container(namespace, "regularDS", "Regular", Concurrency))
View Full Code Here

        Container errorHandler = new Container(ns, "errorHandler", "Error Handler", Choice, Pages);
        Container fileHandler = new Container(ns, "undertow#fileHandler", "File Handler", Concurrency);


        // structure & mapping
        InteractionUnit root = new Builder()
                .start(overview)
                    .mappedBy(global)

                    .start(handler)
                        .start(fileHandler)
View Full Code Here

                        "mapped-file",
                        "source-vm"

                );

        InteractionUnit root = new Builder()
                .start(overview)
                    .mappedBy(global)
                    .add(attributes).mappedBy(attributesMapping)
                        .start(new Container(ns, "details", "Details", Choice))
                            .add(jsp).mappedBy(jspAtts)
View Full Code Here

        DMRMapping httpsListenerTable = new DMRMapping()
                .addAttributes("entity.key", "enabled", "security-realm");


        InteractionUnit root = new Builder()
                .start(overview)

                    // handler section
                    .start(listener)
View Full Code Here

        Container errorHandler = new Container(ns, "errorHandler", "Error Handler", Choice, Pages);
        Container fileHandler = new Container(ns, "undertow#fileHandler", "File Handler", Concurrency);


        // structure & mapping
        InteractionUnit root = new Builder()
                .start(overview)
                    .mappedBy(global)

                    .start(handler)
                        .start(fileHandler)
View Full Code Here

        QName source = (QName)event.getSource();
        QName target = event.getTarget();

        //System.out.println("Navigate to " + target);

        InteractionUnit targetUnit = dialog.findUnit(target);
        if(targetUnit!=null// local to dialog
        {
            String suffix = target.getSuffix();
            if("prev".equals(suffix) || "next".equals(suffix)) // relative, local (#prev, #next)
            {
                throw new RuntimeException("Relative navigation not implemented: "+suffix);

                /*if(NavigationEvent.RELATION.next.equals(suffix))
                {

                }
                else if(NavigationEvent.RELATION.prev.equals(suffix))
                {

                } */
            }
            else // absolute, local
            {
                Procedure activateProcedure = procedures.getSingle(CommonQNames.ACTIVATION_ID);
                activateProcedure.getCommand().execute(dialog, targetUnit.getId());
            }
        }
        else // absolute, external
        {
            navigationDelegate.onNavigation(dialog.getId(), target); // TODO: dialog || unit as source?
View Full Code Here

TOP

Related Classes of org.useware.kernel.model.structure.InteractionUnit

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.