comments red

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@69342 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-02-15 15:54:13 +00:00
parent 98fb9756dc
commit 3cd598aeac
5 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,12 @@
package org.gcube.portlets.user.reportgenerator.client.dialog; package org.gcube.portlets.user.reportgenerator.client.dialog;
import org.gcube.portlets.d4sreporting.common.client.ImageConstants; import org.gcube.portlets.d4sreporting.common.client.ImageConstants;
import org.gcube.portlets.d4sreporting.common.client.uicomponents.resources.Images;
import org.gcube.portlets.user.reportgenerator.client.events.AddCommentEvent; import org.gcube.portlets.user.reportgenerator.client.events.AddCommentEvent;
import org.gcube.portlets.user.reportgenerator.client.events.RemovedUserCommentEvent; import org.gcube.portlets.user.reportgenerator.client.events.RemovedUserCommentEvent;
import org.gcube.portlets.user.reportgenerator.client.targets.ReportTextArea; import org.gcube.portlets.user.reportgenerator.client.targets.ReportTextArea;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.HandlerManager; import com.google.gwt.event.shared.HandlerManager;
@ -21,7 +23,7 @@ public class CommentDialog extends DialogBox {
VerticalPanel mainPanel = new VerticalPanel(); VerticalPanel mainPanel = new VerticalPanel();
AbsolutePanel header = new AbsolutePanel(); AbsolutePanel header = new AbsolutePanel();
TextArea area; TextArea area;
Images images = GWT.create(Images.class);
public CommentDialog(final HandlerManager eventBus, final ReportTextArea source, final String username, final String previousComment, int areaHeight) { public CommentDialog(final HandlerManager eventBus, final ReportTextArea source, final String username, final String previousComment, int areaHeight) {
super(true); super(true);
setStyleName("comment-popup"); setStyleName("comment-popup");
@ -39,7 +41,7 @@ public class CommentDialog extends DialogBox {
setSize(PANEL_WIDTH+"px", "100px"); setSize(PANEL_WIDTH+"px", "100px");
header.setPixelSize(PANEL_WIDTH, 15); header.setPixelSize(PANEL_WIDTH, 15);
final Image enterImage = new Image(ImageConstants.IMAGE_ARROW_ENTER); final Image enterImage = new Image(ImageConstants.IMAGE_ARROW_ENTER);
final Image closeImage = new Image(ImageConstants.IMAGE_CLOSE_15x15); final Image closeImage = new Image(images.close());
final Image binImage = new Image(ImageConstants.IMAGE_BIN); final Image binImage = new Image(ImageConstants.IMAGE_BIN);
closeImage.setStyleName("selectable"); closeImage.setStyleName("selectable");
binImage.setStyleName("selectable"); binImage.setStyleName("selectable");

View File

@ -276,7 +276,7 @@ public class TemplateModel {
this.templateName = toLoad.getTemplateName(); this.templateName = toLoad.getTemplateName();
this.pageWidth = toLoad.getPageWidth(); this.pageWidth = toLoad.getPageWidth();
this.pageHeight = toLoad.getPageHeight(); this.pageHeight = toLoad.getPageHeight();
this.currentPage = 1; this.currentPage = toLoad.getCurrPage();
this.totalPages = toLoad.getTotalPages(); this.totalPages = toLoad.getTotalPages();
this.marginLeft = toLoad.getMarginLeft(); this.marginLeft = toLoad.getMarginLeft();
this.marginRight = toLoad.getMarginRight(); this.marginRight = toLoad.getMarginRight();

View File

@ -1093,7 +1093,7 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
return d4Session.getAttribute(CURRENT_REPORT_ID_ATTRIBUTE).toString(); return d4Session.getAttribute(CURRENT_REPORT_ID_ATTRIBUTE).toString();
} }
/** /**
* used to save the report in the same basket * * used to save the report in the same folder *
*/ */
public void saveReport() { public void saveReport() {
Workspace root = null; Workspace root = null;
@ -1135,7 +1135,7 @@ public class ReportServiceImpl extends RemoteServiceServlet implements ReportSe
/** /**
* @param basketidToSaveIn . * @param save a report in another folder .
* *
*/ */
public void saveReport(String folderid, String newname) { public void saveReport(String folderid, String newname) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB