Hello Guys,
Thanks for your words.
I m working hard to get the project out by end of september. So stay tune
Here is an Example of how programming with the library will look like
Code:
public class Demo implements EntryPoint {
public void onModuleLoad() {
Button b = new Button("Click Me");
b.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
if( ! Runtime.isAIRRuntime()){
MessageBox.alert("Hello From the Browser", "I m running inside a web Browser", null);
}else{
final File f = File.getDesktopDirectory();
f.browseForOpen("Choose a File");
f.addEventListener(Event.SELECT, new AIREventListener<Event>() {
@Override
protected void onAIREvent(Event event) {
String fileName = f.getName();
MessageBox.alert("Hello From Adobe AIR", "I m running inside air and : <b>" + fileName + "</b> was selected", null);
}
});
}
}
});
RootPanel.get().add(b);
}
}
and you can see the result on the attached scrennshots
Greets
E
browser.pngfileselected.pngfileprompt.png