Reinier -
Thank you, thank you, for the EXCELLENT explanation in
your posts to this thread. I totally get it now.
I like especially that you point out that, given GWT objectives
and constraints, it is NOT necessarily the right tool for
all webapps.
I guess I made the correct decision, back
Sucks, but I've found in a few cases the only way to get what I want
is to copy the GWT source (e.g., Horizontal/VerticalSplitPanel) and
put it into my code base to make the enhancements I need. (I've not
looked at the Tree, so I don't know how much pain would be involved in
this route for that
Sounds good, I'll try that for DoubleClickEventListener.
What lego pieces would you use to implement RightClickEventListener?
-Dave
On Tue, Dec 23, 2008 at 2:59 PM, lukehashj bobwazn...@gmail.com wrote:
If you want the double-click event, create a DoubleClickEventListener
that extends
The GWT event model is a close relation of the standard Java event model.
The problem with the standard DOM EventListeners is that only one listener can
be attached to an
Element. The other problem is that a custom Widget may be required to listen
for a sequence of
low-level events in order
Jason -
You wrote:
The problem with the standard DOM EventListeners is that only one
listener can be attached to an
Element. The other problem is that a custom Widget may be required to
listen for a sequence of
low-level events in order to trigger a single high-level event (think
1) You can use something called 'anonymous inner classes'. google it.
They look something like this:
someButton.addClickListener(new ClickListener() { public void onClick
() {
/* code that runs when someButton is clicked goes here. */
}});
This does produce 2 class files, but this is an
Hi Reinier,
So are you saying I can't use EventListener to somehow implement
double/right click support in Tree widgets and convert the Event to a
TreeItem?
Moreover are you saying that double/right click support cannot be
implemented using GWT? Unless I want to start over and re-implement
The more code I implement and the more event-related APIs
I look at in GWT, the more confused I get. After
looking at complete examples about 'listeners' on website such as:
http://examples.roughian.com/index.htm#Listeners~Summary
or posts in this group, I conclude that the most general
is an