Hi,
We distribute a couple of software features using the widget wrapper. On several occasions we’ve had users complain that our app is broken because they are trying to interact with it in the widget panel.
Is it possible to assign an action when a user double clicks on the widget? Even if we could just show a dialog, that would be better than nothing, but ideally I’d like to invoke Java code for displaying either preferences or the sidebar.
Thanks,
Colin.
Subject: great news!
Thanks for the reply, that’s great.
Subject: Yes it is possible
You have two options:
-
You can automatically hide the widget from end users in the My Widgets sidebar panel. For more information see this article: http://www-01.ibm.com/support/docview.wss?uid=swg21429340 http://www-01.ibm.com/support/docview.wss?uid=swg21429340
-
You can provide an action to execute when it is double clicked. The action will be defined in your plugin code and will be linked by an attribute in the widget xml file. See this article for more details: http://www-01.ibm.com/support/docview.wss?uid=swg21399534 http://www-01.ibm.com/support/docview.wss?uid=swg21399534.