pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Gustavo <luizgustav...@gmail.com>
Subject Re: Old Action.perform() signature in examples
Date Mon, 29 Nov 2010 13:26:38 GMT
No problems!
I introduced the parameter and everything's allright =)
I just sended it to the list because I thought that it'd be possible (or
worth) to update the examples in the tutorials.

Cheers,

Luiz Gustavo S. de Souza

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


2010/11/29 Greg Brown <gkbrown@mac.com>

> Sorry - I forgot that we changed the method signature for 1.5.2. Since 2.0
> should be going out soon, we probably won't update the 1.5.x docs on the
> site - but thanks for catching this, and I apologize for any confusion.
> G
>
>
> On Nov 29, 2010, at 8:01 AM, Greg Brown wrote:
>
> 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!
>
> 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
>
>
>
>

Mime
View raw message