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

Purpose

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
Repost0

commentaires

A
Why this bean needs Sun Plugin?<br /> Where can i find it, and where should I put it in the java bean or oracle form?<br /> <br /> Thanks<br /> Ali Shaikh
Répondre
S
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.
Répondre
O
Thanks for the tip, Steven.I hope you'll have some more nice experience to share on this site ;DFrancois