Examples of KillNodeWidget


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

            dragController.makeDraggable(end);
            widgets.add(end);
        }

        if (kill == null) {
            kill = new KillNodeWidget(this);
            kill.setName("Kill");
            controller.addWidget(kill, 700, 100);
            dragController.makeDraggable(kill);
            widgets.add(kill);
        }
View Full Code Here

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

                        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.