Examples of StartNodeWidget


Examples of org.apache.oozie.tools.workflowgenerator.client.widget.control.StartNodeWidget

            ((OozieDiagramController) controller).setWrkflowPropertyTable(wrkflowtable);
        }

        // display Start/End/Kill Nodes as default
        if (start == null) {
            start = new StartNodeWidget(this);
            controller.addWidget(start, 30, 100);
            dragController.makeDraggable(start);
            widgets.add(start);
        }
View Full Code Here

Examples of org.apache.oozie.tools.workflowgenerator.client.widget.control.StartNodeWidget

                    addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));

                }
                else if (name.equals("Start")) {
                    if (start == null) {
                        StartNodeWidget w = new StartNodeWidget(OozieWorkflowGenerator.this);
                        start = w;
                        addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
                    }
                }
                else if (name.equals("End")) {
                    if (end == null) {
                        EndNodeWidget w = new EndNodeWidget(OozieWorkflowGenerator.this);
                        w.setName("End");
                        end = w;
                        addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
                    }
                }
                else if (name.equals("Kill")) {
                    if (kill == null) {
                        KillNodeWidget w = new KillNodeWidget(OozieWorkflowGenerator.this);
                        w.setName("Kill");
                        kill = w;
                        addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
                    }
                }
                else if (name.equals("Fork/Join")) {
                    ForkNodeWidget fork = new ForkNodeWidget(OozieWorkflowGenerator.this);
                    fork.setName("Fork_".concat(nodeCount.get(NodeType.FORK) != null ? nodeCount.get(NodeType.FORK)
                            .toString() : "0"));
                    addWidget(fork, 30 + Random.nextInt(30), 30 + Random.nextInt(30));

                    JoinNodeWidget join = new JoinNodeWidget(OozieWorkflowGenerator.this);
                    join.setName("Join_".concat(nodeCount.get(NodeType.JOIN) != null ? nodeCount.get(NodeType.JOIN)
                            .toString() : "0"));
                    addWidget(join, 90 + Random.nextInt(30), 30 + Random.nextInt(30));

                }
                else if (name.equals("Decision")) {
                    DecisionNodeWidget w = new DecisionNodeWidget(OozieWorkflowGenerator.this);
                    w.setName("Decision_".concat(nodeCount.get(NodeType.DECISION) != null ? nodeCount.get(
                            NodeType.DECISION).toString() : "0"));
                    addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
                }
            }
        });
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.