fixed clsoe export panel
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@71574 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e213b445af
commit
b3f02f11d3
|
@ -1148,6 +1148,7 @@ public class Presenter {
|
||||||
* @param type
|
* @param type
|
||||||
*/
|
*/
|
||||||
public void showExportSaveOptions(final String filePath, final String itemName, final TypeExporter type) {
|
public void showExportSaveOptions(final String filePath, final String itemName, final TypeExporter type) {
|
||||||
|
clearExportPanel();
|
||||||
/*
|
/*
|
||||||
* I need to save a temp file, in case the user uses the Save & Open.
|
* I need to save a temp file, in case the user uses the Save & Open.
|
||||||
* Smart popup blockers will allow a popup if it is directly associated to a user’s action.
|
* Smart popup blockers will allow a popup if it is directly associated to a user’s action.
|
||||||
|
|
|
@ -9,6 +9,7 @@ import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter;
|
||||||
import org.gcube.portlets.user.reportgenerator.client.toursteps.Intro;
|
import org.gcube.portlets.user.reportgenerator.client.toursteps.Intro;
|
||||||
import org.gcube.portlets.user.workspace.client.AppControllerExplorer;
|
import org.gcube.portlets.user.workspace.client.AppControllerExplorer;
|
||||||
import org.gcube.portlets.user.workspace.client.rpc.GWTWorkspaceServiceAsync;
|
import org.gcube.portlets.user.workspace.client.rpc.GWTWorkspaceServiceAsync;
|
||||||
|
import org.gcube.portlets.user.workspace.lighttree.client.ItemType;
|
||||||
|
|
||||||
import com.google.gwt.core.client.EntryPoint;
|
import com.google.gwt.core.client.EntryPoint;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
|
@ -170,6 +171,7 @@ public class ReportGenerator implements EntryPoint {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//presenter.showExportPanel("", "", null, "");
|
||||||
//showGuidedTour() ;
|
//showGuidedTour() ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ import com.google.gwt.event.dom.client.ClickEvent;
|
||||||
import com.google.gwt.uibinder.client.UiBinder;
|
import com.google.gwt.uibinder.client.UiBinder;
|
||||||
import com.google.gwt.uibinder.client.UiField;
|
import com.google.gwt.uibinder.client.UiField;
|
||||||
import com.google.gwt.uibinder.client.UiHandler;
|
import com.google.gwt.uibinder.client.UiHandler;
|
||||||
|
import com.google.gwt.user.client.Timer;
|
||||||
import com.google.gwt.user.client.Window;
|
import com.google.gwt.user.client.Window;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.gwt.user.client.ui.Composite;
|
import com.google.gwt.user.client.ui.Composite;
|
||||||
|
@ -34,6 +35,7 @@ public class ExportOptions extends Composite {
|
||||||
@UiField HTML saveOpen;
|
@UiField HTML saveOpen;
|
||||||
@UiField HTML save;
|
@UiField HTML save;
|
||||||
@UiField HTML saveAs;
|
@UiField HTML saveAs;
|
||||||
|
@UiField HTML close;
|
||||||
@UiField HTMLPanel myPanel;
|
@UiField HTMLPanel myPanel;
|
||||||
|
|
||||||
private String tempFileId;
|
private String tempFileId;
|
||||||
|
@ -55,6 +57,19 @@ public class ExportOptions extends Composite {
|
||||||
this.tempFileId = tempFileId;
|
this.tempFileId = tempFileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@UiHandler("close")
|
||||||
|
void onSaveCancel(ClickEvent e) {
|
||||||
|
myPanel.removeStyleName("exportPanel-show");
|
||||||
|
//needed for applying the css3 transition effect
|
||||||
|
final Timer t = new Timer() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
p.clearExportPanel();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
t.schedule(500);
|
||||||
|
}
|
||||||
|
|
||||||
@UiHandler("saveOpen")
|
@UiHandler("saveOpen")
|
||||||
void onSaveOpenClick(ClickEvent e) {
|
void onSaveOpenClick(ClickEvent e) {
|
||||||
GWT.log("SaveOPen");
|
GWT.log("SaveOPen");
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||||
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||||
<g:HTMLPanel styleName="exportPanel" ui:field="myPanel">
|
<g:HTMLPanel styleName="exportPanel" ui:field="myPanel">
|
||||||
|
<div class="exportClose">
|
||||||
|
<g:HTML ui:field="close" styleName="closeImage" title="Cancel"></g:HTML>
|
||||||
|
</div>
|
||||||
<table style="width: 700px; text-align: center;">
|
<table style="width: 700px; text-align: center;">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
-ms-transition-timing-function: ease-out;
|
-ms-transition-timing-function: ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.exportClose {
|
||||||
|
width: 775px;
|
||||||
|
}
|
||||||
|
|
||||||
.exportPanel-show {
|
.exportPanel-show {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background-color: #FFFFBF;
|
background-color: #FFFFBF;
|
||||||
|
@ -83,6 +87,7 @@
|
||||||
background: url(images/close.png) 0px 0px no-repeat;
|
background: url(images/close.png) 0px 0px no-repeat;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
width: 15px;
|
width: 15px;
|
||||||
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.closeImage:hover {
|
.closeImage:hover {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 316 B |
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue