congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Node.id
Code IndexAdd Tabnine to your IDE (free)

How to use
id
method
in
com.effektif.workflow.api.workflow.diagram.Node

Best Java code snippets using com.effektif.workflow.api.workflow.diagram.Node.id (Showing top 6 results out of 315)

origin: effektif/effektif

diagram.canvas.children.stream()
 .filter(shape -> activityIds.contains(shape.id))
 .forEach(shape -> shape.id("shape-" + shape.id));
origin: effektif/effektif

@Test
public void testSetChildren() {
 List<Node> children = new ArrayList<>();
 children.add(new Node().id("n1"));
 children.add(new Node().id("n2"));
 Node parent = new Node();
 parent.children(children);
 assertEquals(children, parent.children);
 children.add(new Node().id("n3"));
 assertNotEquals(children, parent.children);
 
 parent.children(null);
 assertNull(parent.children);    
}
 
origin: effektif/effektif

.id(id)
.elementId(elementId);
origin: effektif/effektif

 @Test
 public void testSetActivityId() {
  String actId = "1";
  Node node = new Node();
  
  node.elementId(actId);
  assertEquals(actId, node.elementId);
//    assertEquals(actId, node.id);
  
  String actId2 = "2";
  node.id(actId2);
//    assertEquals(actId2, node.elementId);
  assertEquals(actId2, node.id);
 }
  
origin: effektif/effektif

@Test
public void testEquals() {
 List<Node> children = new ArrayList<>();
 children.add(new Node().id("n1"));
 children.add(new Node().id("n2"));
 String actId = "a1";
 Bounds bounds = new Bounds(Point.of(1, 2), Point.of(3, 4));
 
 Node node1 = new Node()
  .elementId(actId)
  .bounds(bounds)
  .children(children);
 
 Node node2 = new Node()
  .elementId(actId)
  .bounds(bounds)
  .children(children);
 
 assertEquals(node1, node2);
 assertEquals(node1.hashCode(), node2.hashCode());
}
 
origin: effektif/effektif

@Test
public void testAddNode() {
 Node node = new Node().id("n1");
 Node canvas = new Node();
 assertFalse(canvas.hasChildren());
 
 canvas.addNode(node);
 assertTrue(canvas.hasChildren());
 assertEquals(1, canvas.children.size());
 assertEquals(node.id, canvas.children.get(0).id);
 
 canvas.children(null);
 assertFalse(canvas.hasChildren());
 canvas.addNode(node);
 assertTrue(canvas.hasChildren());
 assertEquals(1, canvas.children.size());
 assertEquals(node.id, canvas.children.get(0).id);
 
 canvas.addNode(null);
 assertTrue(canvas.hasChildren());
 assertEquals(1, canvas.children.size());
 assertEquals(node.id, canvas.children.get(0).id);
}
 
com.effektif.workflow.api.workflow.diagramNodeid

Popular methods of Node

  • <init>
  • bounds
  • elementId
  • hasChildren
  • addNode
  • hashCode
  • children
  • equals
  • expanded
  • getChild
  • horizontal
  • isValid
    A Node is considered valid if its Bounds are valid and all the contained children are valid.
  • horizontal,
  • isValid

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now