pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: WTKX Key Listener and Schema
Date Tue, 23 Feb 2010 01:10:15 GMT
Basically, everything in WTKX maps directly to a Java equivalent. so, while there's no DTD,
the WTKX/Java relationship is very straightforward. It is discussed in the WTKX Primer:


For example, in your code below, you'll want to use <componentKeyListeners> rather than
<keyListeners>. The element name maps directly to a JavaBean property representing the
listener list in the source component (getComponentKeyListeners()).

On Feb 22, 2010, at 7:22 PM, Michael Bushe wrote:

> I'm trying to add a keyListener in WTKX.  I gave this a shot:
>                    <keyListeners>
>                        <wtkx:script>
>                            function keyTyped(component, keyCode) {
>                                if (keyCode == Keyboard.KeyCode.ENTER) {
>                                       callMyFunction();
>                                }
>                            }
>                        </wtkx:script>
>                    </keyListeners>
> OK, giving me a fish and telling me how to do is nice, but I want the rod.
> Where can I find the Schema or DTD?  Is there a link on the site?  I couldn't find it.
> I tried to search the mailing list too, but the mailing list link doesn't have a
> search:
> http://mail-archives.apache.org/mod_mbox/pivot-user/ (and clicking a link
> there):
> http://mail-archives.apache.org/mod_mbox/pivot-user/201002.mbox/browser
> Michael Bushe
> Principal
> Bushe Enterprises, Inc.
> michael@bushe.com
> www.bushe.com

View raw message