This commit is contained in:
Francesco Mangiacrapa 2020-07-13 18:05:18 +02:00
parent 767633cfde
commit adfaaa1b55
1 changed files with 13 additions and 2 deletions

View File

@ -134,6 +134,8 @@ import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.CommandCanceledException;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
@ -2320,9 +2322,18 @@ public class AppController implements SubscriberInterface {
@Override
public void showDetails(FileModel fileModel) {
GWT.log("show details for: "+fileModel.getName());
ContentPanel eastPanel = this.getMainPanel().getEastPanel();
final ContentPanel eastPanel = this.getMainPanel().getEastPanel();
eastPanel.removeAll();
DialogGetInfoBootstrap dlg = new DialogGetInfoBootstrap(fileModel);
Command onCloseCommand = new Command() {
@Override
public void execute() {
eastPanel.setVisible(false);
}
};
DialogGetInfoBootstrap dlg = new DialogGetInfoBootstrap(fileModel, onCloseCommand);
eastPanel.add(dlg);
eastPanel.setVisible(true);
eastPanel.layout();