Friday, September 17, 2010

Olivetti Prt100 Network

[GWT] Problem Succession Event

In GWT, for identify events, handlers are used.
Sometimes, as in the Slider class GXT com.extjs.gxt.ui.client.widget.Slider, methods exist to trigger actions when a particular event.

Déclenchons such an event to click on our slider.
If we instantiate a slider, the auto completion in Eclipse shows us that the public methods. Now if you look in the documentation, there are many methods to do this: OnClick method for example.

But how to get it? I took the head during an afternoon to see that these methods are protected ... Methods ? Protected? but why? Well I guess since it is intended for JavaScript, it should be done only once during its instantiation ... check, please tell me if you have a better explanation.

In any case, you understand, this is not lost, they are there and they can be used.
Instead of instantiating a slider "normally" using the normal constructor:
can instantiate it and override the methods you want to use.

0 comments:

Post a Comment