final PathUtil rootPath = PathUtil.EMPTY_PATH;
FileTreeMenuItem uploadFile = new FileTreeMenuItem() {
@Override
public void onClicked(TreeNodeElement<FileTreeNode> node) {
place.fireEvent(new UploadClickedEvent(UploadType.FILE, node == null ? rootPath
: node.getData().getNodePath()));
}
@Override
public String toString() {
return "Upload File";
}
};
FileTreeMenuItem uploadZip = new FileTreeMenuItem() {
@Override
public void onClicked(TreeNodeElement<FileTreeNode> node) {
place.fireEvent(new UploadClickedEvent(UploadType.ZIP, node == null ? rootPath
: node.getData().getNodePath()));
}
@Override
public String toString() {
return "Upload and Extract Zip";
}
};
FileTreeMenuItem uploadFolder = new FileTreeMenuItem() {
@Override
public void onClicked(TreeNodeElement<FileTreeNode> node) {
place.fireEvent(new UploadClickedEvent(UploadType.DIRECTORY, node == null ? rootPath
: node.getData().getNodePath()));
}
@Override
public String toString() {