Skip to content

Commit

Permalink
add caption to browserframe to display the file name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdichmann committed Aug 29, 2018
1 parent 4a82880 commit 2f88060
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,14 +569,19 @@ public void itemClick(ItemClickEvent event) {
streamres.setMIMEType("text/plain");
res = streamres;
visualize = true;

}

if (visualize) {
// LOG.debug("Is resource null?: " + String.valueOf(res == null));
BrowserFrame frame = new BrowserFrame("", res);
BrowserFrame frame = new BrowserFrame(datasetFileName, res);

// Label label = new Label(datasetFileName);

// subContent.addComponent(label);
subContent.addComponent(frame);


// Center it in the browser window
subWindow.center();
subWindow.setModal(true);
Expand Down

0 comments on commit 2f88060

Please sign in to comment.