简体   繁体   English

Lotus Notes-Java UI-Eclipse插件

[英]Lotus Notes - Java UI - Eclipse plugin

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? 如果是这样,它还可以在允许按钮操作继续之前拦截该操作并执行后端或ui修改吗?

Looking for any ideas on how to skin this cat (no actual cats will be harmed during coding). 寻找有关如何给这只猫剥皮的想法(编码过程中不会伤害任何实际的猫)。

Thx 谢谢

The code that runs when clicking actions on a Notes form, is not Eclipse Java code and doesn't support Java listeners. 单击Notes表单上的操作时运行的代码不是Eclipse Java代码,也不支持Java侦听器。 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. 例如,您可以使用Ctrl + S进行保存,或者按Esc提示是否保存和/或发送。 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). 若要拦截发送或保存尝试的每种情况,您必须使用表单(或子表单,如果有的话)的Querysave和/或Querysend事件。 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. 根据您正在处理的应用程序的设计,可能会有一个专门用于允许自定义而不编辑主表单的子表单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM