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
