Overblog Suivre ce blog
Editer l'article Administration Créer mon blog
7 février 2007 3 07 /02 /février /2007 14:14


Here is a package that allows the dispatching of events from Java Beans to Forms on Beans that extend VBean, beans that use the FBean package and also PJCs !
No, you are not dreaming and there is no mist on your glasses, a PJC that dispatch event to the form module !

            Dispatching events

You know that a Bean that extends VButton or VTextField for example cannot use the dispatchCustomEvent() method to send message to Forms, so how could this be possible ?

Tom Cleymans from Belgium brings here the solution.

He decided to attach a class that extends VBean to each PJC, so that it can use the included dispatchCustomEvent() method to send messages to the corresponding Forms' module Bean Area.

As brilliant as simple !

Read the Tom's article then do what you are searching for years.

Partager cet article

Repost 0
Published by Oracle Forms community - dans Bean - general
commenter cet article


Ali 05/05/2016 01:51

Why this bean needs Sun Plugin?
Where can i find it, and where should I put it in the java bean or oracle form?

Ali Shaikh

Steven Janssens 02/03/2007 16:20

I prefer to use the oracle.forms.ui.BeanManager to dispatch custom events. It is in my opinion more transparent and is easier to implement. Here is an example of how to implement it.// declare a private variable for the IHandlerprivate IHandler mHandler = null;// declare a private variable for the BeanManagerprivate BeanManager mManager = new BeanManager();/** method of IView interfacepublic void init(IHandler aHandler) {     super.init(aHandler);     mHandler = aHandler;     // bind the IHandler to the BeanManager     mManager.setHandler(aHandler);}// now you can use the dispatchCustomEvent from the BeanManager to send custom eventsmManager.dispatchCustomEvent(new CustomEvent(mHandler, MY_CUSTOM_EVENT));I hope this is useful for anyone.Steven Janssens.

Oracle Forms community 07/03/2007 07:14

Thanks for the tip, Steven.I hope you'll have some more nice experience to share on this site ;DFrancois