Lotus Notes - Java UI - Eclipse plugin

情到浓时终转凉″ 提交于 2019-12-11 01:42:15

问题


Can a sidebar plugin use an actionlistener (or something else) to determine when the actionbar button 'save and send invitations' is pressed (within a new calendar entry for example)?

If so, can it also intercept the action and perform backend or ui modifications before allowing the button action to proceed?

Looking for any ideas on how to skin this cat (no actual cats will be harmed during coding).

Thx


回答1:


The code that runs when clicking actions on a Notes form, is not Eclipse Java code and doesn't support Java listeners. To do this sort of thing, you would have to modify the design of the form (or the shared action, if the action is shared).

Please also note that there are other ways to save or send a document, other than by pressing an action button. For instance, you can use Ctrl+S to save, or press Esc to be prompted whether to save and/or send. To intercept every occasion of a send or save attempt, you have to use the Querysave and/or Querysend events of the form (or of a subform, if there are any). Depending on the design of the application you're working on, there may be a subform specifically intended to allow customizations without editing the main form.



来源:https://stackoverflow.com/questions/16131848/lotus-notes-java-ui-eclipse-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!