How to get the connected Widgets from an instance of Connector?

15 views
Skip to first unread message

Yiling

unread,
Feb 11, 2010, 11:08:13 AM2/11/10
to gwt-connectors
Hello,

Can someone help me how to get the connected Widgets(for example:
Label or Image..) from an instance of Connector??
I tried to write the following codes:
ArrayList<Connector> cons = diagram.connectors;
Iterator<Connector> it = cons.iterator();
while(it.hasNext()){
Connector con = (Connector)it.next();
EndPoint start = con.startEndPoint;
EndPoint end = con.endEndPoint;
ConnectionPoint startpo = start.gluedConnectionPoint;
Widget startwid = startpo.getWidget();

}

But it's not correct. I need to develop an Application: when a
processdiagramm is sent, the Server should reply, which 2 or more
Widgets are connected.
Thank you for the helps

Regards
Yiling

KenJi_getpowered

unread,
Mar 18, 2010, 11:01:39 AM3/18/10
to gwt-connectors
Did you succeed to do that?

Yiling a écrit :

Reply all
Reply to author
Forward
0 new messages