google-code-export / gwt-links

Automatically exported from code.google.com/p/gwt-links
2 stars 0 forks source link

Contextual menu - provide possibility to add custom commands - request for enhancement #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have the possibility to add custom commands to the 
connections contextual menu, apart from setStraight and delete edge.

Original issue reported on code.google.com by m.assa...@gmail.com on 12 May 2011 at 12:06

GoogleCodeExporter commented 9 years ago
Great idea...
I will add three new methods : 

public void addOptionInContextualMenu(String text, Command command);
public void addDeleteOptionInContextualMenu(String text);
public void addSetStraightOptionInContextualMenu(String text);

The second and third are to internationalize the application... :D or to 
disable these options

Original comment by pierre.r...@gmail.com on 12 May 2011 at 1:08

GoogleCodeExporter commented 9 years ago

Original comment by pierre.r...@gmail.com on 13 May 2011 at 7:45

GoogleCodeExporter commented 9 years ago

Original comment by pierre.r...@gmail.com on 13 May 2011 at 12:02

GoogleCodeExporter commented 9 years ago
just wanted to warn you I just tried your new demo
http://gwt-links.appspot.com/ and contextual menu si not shown on any
browser I tried (Chrome, FF4, Safari)

Original comment by m.assa...@gmail.com on 13 May 2011 at 12:10

GoogleCodeExporter commented 9 years ago
Yes, now you have to declare the options in the controller... So I did not do 
that already on examples 2 and 3. It must work on example 1.

I've just add these options on all the examples, otherwise people will be 
confused. Thank you

Original comment by pierre.r...@gmail.com on 13 May 2011 at 12:19

GoogleCodeExporter commented 9 years ago
ok, it does work for example1 on Chrome, FF4 and Safari

Original comment by m.assa...@gmail.com on 13 May 2011 at 12:23