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 >
