如何通过自定义属性将 NotesDocument/NotesViewEntry 集合传递到自定义控件中? [英] How do you pass a NotesDocument / NotesViewEntry Collection into a Custom Control via custom property?

查看:33
本文介绍了如何通过自定义属性将 NotesDocument/NotesViewEntry 集合传递到自定义控件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个自定义控件,它可以处理我决定传递给它的任何文档.这样做的最佳方法是什么?

I want to have a custom control that works on whatever documents I decide to pass to it. What's the best way of doing that?

假设您不能直接传递集合……是否应该创建一个函数来将集合转换为散列映射或 UNID 向量?

Assuming that you can't pass the collection directly... should a function be created to convert the collection to a hashMap or vector of UNID's?

还有别的方法吗?

谢谢

推荐答案

将 NotesDocument 和/或 NotesDocumentCollection 对象传递给自定义控件工作正常.只需将自定义控件的属性类型设置为 java.lang.Object.通过这种方式,您可以将任何对象转移到自定义控件.

Passing NotesDocument and/or NotesDocumentCollection objects to the Custom Control works fine. Just set the Custom Control's property type as java.lang.Object. By this you can transfer what ever objects to the Custom Control.

这篇关于如何通过自定义属性将 NotesDocument/NotesViewEntry 集合传递到自定义控件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆