Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 92658 invoked from network); 29 Nov 2010 13:01:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 13:01:49 -0000 Received: (qmail 65513 invoked by uid 500); 29 Nov 2010 13:01:48 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 65466 invoked by uid 500); 29 Nov 2010 13:01:48 -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 65457 invoked by uid 99); 29 Nov 2010 13:01:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 13:01:48 +0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of gkbrown@mac.com does not designate 206.46.173.1 as permitted sender) Received: from [206.46.173.1] (HELO vms173001pub.verizon.net) (206.46.173.1) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 13:01:40 +0000 Received: from [192.168.1.10] ([unknown] [98.110.173.176]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LCN006GGDI6RVJ0@vms173001.mailsrvcs.net> for user@pivot.apache.org; Mon, 29 Nov 2010 07:01:19 -0600 (CST) From: Greg Brown MIME-version: 1.0 (Apple Message framework v1082) Content-type: multipart/alternative; boundary=Apple-Mail-2--804133883 Subject: Re: Old Action.perform() signature in examples Date: Mon, 29 Nov 2010 08:01:18 -0500 In-reply-to: To: user@pivot.apache.org References: Message-id: X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-2--804133883 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii The tutorials on pivot.apache.org are still for Pivot 1.5.2. When 2.0 is = released, they will be updated. You can see the 2.0 versions here: http://ixnay.biz/pivot-tutorials/stock-tracker.events.html http://ixnay.biz/pivot-tutorials/menu-bars.html On Nov 28, 2010, at 10:06 PM, Luiz Gustavo wrote: > Hi! >=20 > I have an observation to do about documentation.=20 > There are examples that still uses the Action.perform() signature: >=20 >=20 > In the Actions Example: >=20 >=20 > private Action addSymbolAction =3D new Action(false) { > @Override > @SuppressWarnings("unchecked") > public void perform() { > ... > } > }; >=20 >=20 > In the MenuBar Example: >=20 > Action.getNamedActions().put("fileOpen", new Action() { > @Override > public void perform() { > fileBrowserSheet.open(window); > } > }); > =20 > Action.getNamedActions().put("cut", new Action(false) { > @Override > public void perform() { > TextInput textInput =3D = (TextInput)window.getFocusDescendant(); > textInput.cut(); > } > }); >=20 >=20 >=20 >=20 > But in the API, this method requires a Component parameter. >=20 >=20 >=20 > Cheers! >=20 > Luiz Gustavo S. de Souza >=20 > http://luizgustavoss.wordpress.com > http://luizgustavoss.blogspot.com > http://twitter.com/lugustso --Apple-Mail-2--804133883 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
The tutorials on pivot.apache.org are still for Pivot 1.5.2. When 2.0 is released, they will be updated. You can see the 2.0 versions here:


On Nov 28, 2010, at 10:06 PM, Luiz Gustavo wrote:

Hi!

I have an observation to do about documentation.
There are examples that still uses the Action.perform() signature:


In the Actions Example:


private Action addSymbolAction = new Action(false) {
    @Override
    @SuppressWarnings("unchecked")
    public void perform() {
        ...
    }
};


In the MenuBar Example:

        Action.getNamedActions().put("fileOpen", new Action() {
            @Override
            public void perform() {
                fileBrowserSheet.open(window);
            }
        });
 
        Action.getNamedActions().put("cut", new Action(false) {
            @Override
            public void perform() {
                TextInput textInput = (TextInput)window.getFocusDescendant();
                textInput.cut();
            }
        });




But in the API, this method requires a Component parameter.



Cheers!

Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

--Apple-Mail-2--804133883--