Saturday, June 18, 2016

gwt-connectors: How to find out which widgets a connector is conntected?

I have a panel where i can add widgets and connectors. How can I programmatically find out which widgets are connected to other widgets? I have tried the following:
Connector con = new Connector(x, y, 500, y, null, new SectionDecoration(DecorationType.ARROW_SOLID));  con.style = ConnectorStyle.SOLID;  con.showOnDiagram(diagram);    .....  //some Shaped Widgets  ....  if(con.startEndPoint.isGluedToConnectionPoint())                      {                         //add Label to PopUp-Panel                          pop.addChild(label);                       }  .....
the if-condition is not working, but i don't know whats wrong. Can anybody help me? Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment