mstahv / diagram-builder

Vaadin Add-on built over ALLOYUI DiagramBuilder
Apache License 2.0
7 stars 11 forks source link

getFields and getTranstion returns initial lists. #7

Closed ykartal closed 8 years ago

ykartal commented 8 years ago

Hi, On diagram, after dragging and dropping nodes and connecting them with transitions, when call getFields method, added nodes are not seen in return list.

I'm using vaadin 7.5.5 Any idea?

ykartal commented 8 years ago

Sorry, This problem occurs because of wrong usage :) True way to get added nodes list is;

diagramBuilder.getDiagramState(new DiagramBuilder.StateCallback() {

            @Override
            public void onStateReceived(DiagramStateEvent event) {
                        List<Node> nodes = event.getNodes();
            }
}