// Path: src/com/akjava/gwt/html5/client/file/File.java
// public class File extends Blob{
// 
// 	protected File(){}
// 	
// 	public  final native String getFileName()/*-{
//     return this.name;
//   }-*/;
// 	
// 	public  final native int getFileSize()/*-{
//     return this.size;
//   }-*/;
// 	
// 
// 	
// 	public  final native String getFileType()/*-{
//     return this.type;
//   }-*/;
// 	
// 	public  final native Blob slice(int start,int length)/*-{
//     return this.slice(start,length);
//   }-*/;
// }
// 
// Path: src/com/akjava/gwt/html5/client/file/FileHandler.java
// public interface FileHandler {
// 	public void onLoad();
// }


import com.akjava.gwt.html5.client.file.File;
import com.akjava.gwt.html5.client.file.FileHandler;
import com.akjava.gwt.html5.client.file.FileReader;

package com.akjava.gwt.html5.client.file.ui;


/*
 * this is usefull when do nothing drop rootPanel
 */
public abstract class DataUrlDropVerticalRootPanel extends DropVerticalRootPanel{
	public DataUrlDropVerticalRootPanel(boolean addRootLayoutPanel) {
		super(addRootLayoutPanel);
	}

	
	@Override
	public void callback(final File file, String parent) {
		
		if(file==null){
			return;
		}
		final FileReader reader = FileReader.createFileReader();

// Path: src/com/akjava/gwt/html5/client/file/File.java
// public class File extends Blob{
// 
// 	protected File(){}
// 	
// 	public  final native String getFileName()/*-{
//     return this.name;
//   }-*/;
// 	
// 	public  final native int getFileSize()/*-{
//     return this.size;
//   }-*/;
// 	
// 
// 	
// 	public  final native String getFileType()/*-{
//     return this.type;
//   }-*/;
// 	
// 	public  final native Blob slice(int start,int length)/*-{
//     return this.slice(start,length);
//   }-*/;
// }
// 
// Path: src/com/akjava/gwt/html5/client/file/FileHandler.java
// public interface FileHandler {
// 	public void onLoad();
// }


// Path: src/com/akjava/gwt/html5/client/file/ui/DataUrlDropVerticalRootPanel.java
import com.akjava.gwt.html5.client.file.File;
import com.akjava.gwt.html5.client.file.FileHandler;
import com.akjava.gwt.html5.client.file.FileReader;

package com.akjava.gwt.html5.client.file.ui;


/*
 * this is usefull when do nothing drop rootPanel
 */
public abstract class DataUrlDropVerticalRootPanel extends DropVerticalRootPanel{
	public DataUrlDropVerticalRootPanel(boolean addRootLayoutPanel) {
		super(addRootLayoutPanel);
	}

	
	@Override
	public void callback(final File file, String parent) {
		
		if(file==null){
			return;
		}
		final FileReader reader = FileReader.createFileReader();

		reader.setOnLoad(new FileHandler() {
