Anyway, what is the best way to discover the element type out of an
even?
For example, suppose I receive a click event of the InputElement in my
even handler.
I can't use the field TAG in the InputElement as it's package
protected :(.. It's used in the following InputElement method:
public static InputElement as(Element elem) {
assert elem.getTagName().equalsIgnoreCase(TAG);
return (InputElement) elem;
}
It would be nice to have the following method in InputElement:
public static boolean is(Element elem) {
return elem.getTagName().equalsIgnoreCase(TAG);
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.