mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
added image create and image edit editors
This commit is contained in:
1 parent
ab73fc2b3d
commit
96e5628ac2
10 files changed
+236
-55
No files matched your search
@@ -2,7 +2,6 @@ package com.sap.sse.gwt.client.media;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.sap.sse.common.media.ImageSize;
|
||||
import com.sap.sse.common.media.MimeType;
|
||||
|
||||
public class ImageDTO extends AbstractMediaDTO {
|
||||
@@ -15,16 +14,8 @@ public class ImageDTO extends AbstractMediaDTO {
|
||||
private Integer widthInPx;
|
||||
private Integer heightInPx;
|
||||
|
||||
public ImageDTO(String imageRef, ImageSize size, Date createdAtDate) {
|
||||
public ImageDTO(String imageRef, Date createdAtDate) {
|
||||
super(imageRef, MimeType.image, createdAtDate);
|
||||
this.widthInPx = size.getWidth();
|
||||
this.heightInPx = size.getHeight();
|
||||
}
|
||||
|
||||
public ImageDTO(String imageRef, Integer widthInPx, Integer heightInPx, Date createdAtDate) {
|
||||
super(imageRef, MimeType.image, createdAtDate);
|
||||
this.widthInPx = widthInPx;
|
||||
this.heightInPx = heightInPx;
|
||||
}
|
||||
|
||||
public Integer getWidthInPx() {
|
||||
@@ -34,4 +25,9 @@ public class ImageDTO extends AbstractMediaDTO {
|
||||
public Integer getHeightInPx() {
|
||||
return heightInPx;
|
||||
}
|
||||
|
||||
public void setSizeInPx(Integer widthInPx, Integer heightInPx) {
|
||||
this.widthInPx = widthInPx;
|
||||
this.heightInPx = heightInPx;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user