PDA

View Full Version : GXT meets Adobe AIR



Ekambos
14 May 2011, 2:27 PM
Hello poeple,
gwt4air 2.1 (http://code.google.com/p/gwt4air/) is some days away.

One of the most important feature of this release is a Java(GWT) API for adobe FLEX. And i m glad to see that i m not the only one who had this idea :) (http://www.youtube.com/watch?v=F_sbusEUz5w&t=1718)

For those who use EXT-GWT to build AIR applications this release also include some new components. One of them being the FileSystemTreePanel.

This component displays the user s filesystem in a TreePanel. Below is how the API looks like


Viewport viewPort = new Viewport();
viewPort.setLayout(new CenterLayout());

ContentPanel panel = new ContentPanel();
panel.setLayout(new FitLayout());
panel.setSize(600, 400);
panel.setCollapsible(true);

panel.setHeading("GXT-FileSystemTreePanel Component Example");
panel.add(FileSystemTreePanel.newInstance());

viewPort.add(panel);
RootPanel.get().add(viewPort);

//This line is necessary to makes GXT work inside the AIR security sandbox
GXTAIRAdapter.adapt();



The FileSystemTreePanel is fully customizable. Per default it has a context menu with 2 entries to open and delete the selected item. But you can add you own implementation.

The component also autoupdates itself when an external storage(USB, external HDD is mount/unmount to/from the user computer.

I m looking forward for your feedback.

Cheers

P.S
Other components will follow soon

Alain

Ekambos
16 May 2011, 11:53 PM
gwt4air 2.1 is out http://code.google.com/p/gwt4air/

This release brings a lot of new Features in GWT application development


Java API for Flex (Browser and AIR)
Client Side PDF API
Clientside Excel API
easy GWT(GXT) - Flex Integration (One can basically integrate any Flex UI component in his GXT application)
Some new GXT components to use in your GXT applications(FileSystemTreePanel, FileSystemTreeGrid, etc...)


I m looking forward for your inputs.

Alain