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
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