Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 831 invoked from network); 25 Mar 2010 19:07:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 19:07:21 -0000 Received: (qmail 26627 invoked by uid 500); 25 Mar 2010 19:07:21 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 26611 invoked by uid 500); 25 Mar 2010 19:07:20 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 26603 invoked by uid 99); 25 Mar 2010 19:07:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 19:07:20 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rpiotrowski@azonic.net designates 74.125.92.24 as permitted sender) Received: from [74.125.92.24] (HELO qw-out-2122.google.com) (74.125.92.24) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 19:07:12 +0000 Received: by qw-out-2122.google.com with SMTP id 5so2034070qwi.13 for ; Thu, 25 Mar 2010 12:06:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.14.157 with SMTP id g29mr11349qca.57.1269544011571; Thu, 25 Mar 2010 12:06:51 -0700 (PDT) X-Originating-IP: [216.203.32.132] In-Reply-To: <68dcbc7a1003251200m2270125ck23fa5dca5cc1b13@mail.gmail.com> References: <68dcbc7a1003251149n2124d181j6e7ac1e68016c69e@mail.gmail.com> <68dcbc7a1003251150w3b93bd43l976d75dcd69ab882@mail.gmail.com> <3CE84C37-E644-49EE-856A-6559095CE151@mac.com> <68dcbc7a1003251200m2270125ck23fa5dca5cc1b13@mail.gmail.com> Date: Thu, 25 Mar 2010 14:06:51 -0500 Message-ID: <68dcbc7a1003251206o53b39001r5fbde0f766190b54@mail.gmail.com> Subject: Re: action mapping From: Robert Piotrowski To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=00151757671cd657840482a4bf61 X-Virus-Checked: Checked by ClamAV on apache.org --00151757671cd657840482a4bf61 Content-Type: text/plain; charset=ISO-8859-1 OK. so I populate the Action.NamedActionDictionary with an action called "onCheckoff", and I can apply that to all checkboxes by setting the action property to "onCheckoff" ? Bob On Thu, Mar 25, 2010 at 2:00 PM, Robert Piotrowski wrote: > so i can't have the same action called "onClick" for all my checkboxes in a > tablepane? > > > > > On Thu, Mar 25, 2010 at 1:58 PM, Greg Brown wrote: > >> Yes, action names must be unique, and they must have already been >> established before you load your WTKX file. Otherwise, the action name in >> the element won't resolve. >> >> On Mar 25, 2010, at 2:50 PM, Robert Piotrowski wrote: >> >> One more thing.....do named actions have to be unique? >> >> >> Thanks, >> Bob >> >> On Thu, Mar 25, 2010 at 1:49 PM, Robert Piotrowski < >> rpiotrowski@azonic.net> wrote: >> >>> I was looking at menubars here: >>> http://pivot.apache.org/tutorials/menu-bars.html >>> >>> .....and I think the "action mapping" is what I was looking for a while >>> ago when i was looking for a way to bind my java eventhandlers to the >>> componets defined in wtkx without having to fish them out specifically by ID >>> and adding them to the listerner collections for each component (ie, adding >>> click handlers to a dynamic list of checkboxes). >>> >>> Can i do it this way? >>> >>> Or am I assuming something? >>> >>> Can I call Action.getNamedActions() anytime after the serializer loads >>> the wtkx file? >>> >>> >>> >>> Bob >>> >> >> >> > --00151757671cd657840482a4bf61 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK. =A0so I populate the Action.NamedActionDictionary with an action called= "onCheckoff", and I can apply that to all checkboxes by setting = the action property to "onCheckoff" ?



Bob

On Thu, Mar 25, 2= 010 at 2:00 PM, Robert Piotrowski <rpiotrowski@azonic.net> wrote:
so i can't have the same action called "onClick" for all my c= heckboxes in a tablepane?




On Thu, Mar 25, 2010 at 1:58 PM, Greg= Brown <gkbrown@mac.com> wrote:
Yes, action names must be unique, and they = must have already been established before you load your WTKX file. Otherwis= e, the action name in the <Window.ActionMapping> element won't re= solve.


--00151757671cd657840482a4bf61--