Removed unused widgets that originated from the theme project but were

never really styled and finalized
This commit is contained in:
Steffen Schaefer committed 2016-06-21 13:33:57 +02:00
1 parent 8d4f72db20
commit 639ac36a24
14 files changed
-462

No files matched your search

@@ -1,32 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.imagegallery;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.ImageElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
public class Image extends Composite {
private static ImageUiBinder uiBinder = GWT.create(ImageUiBinder.class);
interface ImageUiBinder extends UiBinder<Widget, Image> {
}
private final ImageDescriptor imageDescriptor;
@UiField DivElement title;
@UiField ImageElement image;
public Image(ImageDescriptor imageDescriptor) {
this.imageDescriptor = imageDescriptor;
ImageGalleryResources.INSTANCE.css().ensureInjected();
initWidget(uiBinder.createAndBindUi(this));
title.setInnerText(this.imageDescriptor.getTitle());
image.setSrc(this.imageDescriptor.getImageURL());
}
}
@@ -1,12 +0,0 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with field="res" type="com.sap.sailing.gwt.common.client.SharedResources" />
<ui:with field="local_res" type="com.sap.sailing.gwt.common.theme.component.imagegallery.ImageGalleryResources" />
<g:HTMLPanel styleName="{local_res.css.sampleCssClass}">
<div>
<img ui:field="image" />
</div>
<div ui:field='title'></div>
</g:HTMLPanel>
</ui:UiBinder>
@@ -1,102 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.imagegallery;
import java.util.Date;
public class ImageDescriptor {
private String title;
private String subtitle;
private Date createdAtDate;
private String author;
private int widthInPx;
private int heightInPx;
private String imageURL;
private String thumbnailURL;
private int thumbnailWidthInPx;
private int thumbnailHeightInPx;
public ImageDescriptor(String imageURL) {
this.imageURL = imageURL;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Date getCreatedAtDate() {
return createdAtDate;
}
public void setCreatedAtDate(Date createdAtDate) {
this.createdAtDate = createdAtDate;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public int getWidthInPx() {
return widthInPx;
}
public void setWidthInPx(int widthInPx) {
this.widthInPx = widthInPx;
}
public int getHeightInPx() {
return heightInPx;
}
public void setHeightInPx(int heightInPx) {
this.heightInPx = heightInPx;
}
public String getThumbnailURL() {
return thumbnailURL;
}
public void setThumbnailURL(String thumbnailURL) {
this.thumbnailURL = thumbnailURL;
}
public String getImageURL() {
return imageURL;
}
public void setImageURL(String imageURL) {
this.imageURL = imageURL;
}
public int getThumbnailWidthInPx() {
return thumbnailWidthInPx;
}
public void setThumbnailWidthInPx(int thumbnailWidthInPx) {
this.thumbnailWidthInPx = thumbnailWidthInPx;
}
public int getThumbnailHeightInPx() {
return thumbnailHeightInPx;
}
public void setThumbnailHeightInPx(int thumbnailHeightInPx) {
this.thumbnailHeightInPx = thumbnailHeightInPx;
}
public String getSubtitle() {
return subtitle;
}
public void setSubtitle(String subtitle) {
this.subtitle = subtitle;
}
}
@@ -1,42 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.imagegallery;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Widget;
public class ImageGallery extends Composite {
private static ImageGalleryUiBinder uiBinder = GWT.create(ImageGalleryUiBinder.class);
interface ImageGalleryUiBinder extends UiBinder<Widget, ImageGallery> {
}
private ImageGalleryData imageGalleryData;
@UiField DivElement titleUi;
@UiField HTMLPanel imagesPanel;
public ImageGallery() {
ImageGalleryResources.INSTANCE.css().ensureInjected();
initWidget(uiBinder.createAndBindUi(this));
}
public ImageGallery(ImageGalleryData data) {
this();
setData(data);
}
public void setData(ImageGalleryData data) {
this.imageGalleryData = data;
titleUi.setInnerText(this.imageGalleryData.getName() != null ? this.imageGalleryData.getName() : "");
for(ImageDescriptor imageDesc: imageGalleryData.getImages()) {
Image image = new Image(imageDesc);
imagesPanel.add(image);
}
}
}
@@ -1,10 +0,0 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with field="res" type="com.sap.sailing.gwt.common.client.SharedResources" />
<ui:with field="local_res" type="com.sap.sailing.gwt.common.theme.component.imagegallery.ImageGalleryResources" />
<g:HTMLPanel styleName="{local_res.css.sampleCssClass}">
<div ui:field="titleUi" />
<g:HTMLPanel ui:field='imagesPanel' />
</g:HTMLPanel>
</ui:UiBinder>
@@ -1,38 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.imagegallery;
import java.util.ArrayList;
import java.util.List;
public class ImageGalleryData {
private String name;
private List<ImageDescriptor> images;
public ImageGalleryData() {
this("", new ArrayList<ImageDescriptor>());
}
public ImageGalleryData(String name) {
this(name, new ArrayList<ImageDescriptor>());
}
public ImageGalleryData(String name, List<ImageDescriptor> images) {
this.name = name;
this.images = images;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<ImageDescriptor> getImages() {
return images;
}
public void setImages(List<ImageDescriptor> images) {
this.images = images;
}
}
@@ -1,16 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.imagegallery;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
public interface ImageGalleryResources extends ClientBundle {
public static final ImageGalleryResources INSTANCE = GWT.create(ImageGalleryResources.class);
@Source("ImageGallery.gss")
LocalCss css();
public interface LocalCss extends CssResource {
String sampleCssClass();
}
}
@@ -1,102 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.videogallery;
import java.util.Date;
public class VideoDescriptor {
private String title;
private String subtitle;
private Date createdAtDate;
private String author;
private int widthInPx;
private int heightInPx;
private String videoURL;
private String thumbnailURL;
private int thumbnailWidthInPx;
private int thumbnailHeightInPx;
public VideoDescriptor(String videoURL) {
this.videoURL = videoURL;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Date getCreatedAtDate() {
return createdAtDate;
}
public void setCreatedAtDate(Date createdAtDate) {
this.createdAtDate = createdAtDate;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public int getWidthInPx() {
return widthInPx;
}
public void setWidthInPx(int widthInPx) {
this.widthInPx = widthInPx;
}
public int getHeightInPx() {
return heightInPx;
}
public void setHeightInPx(int heightInPx) {
this.heightInPx = heightInPx;
}
public String getThumbnailURL() {
return thumbnailURL;
}
public void setThumbnailURL(String thumbnailURL) {
this.thumbnailURL = thumbnailURL;
}
public String getVideoURL() {
return videoURL;
}
public void setVideoURL(String videoURL) {
this.videoURL = videoURL;
}
public int getThumbnailWidthInPx() {
return thumbnailWidthInPx;
}
public void setThumbnailWidthInPx(int thumbnailWidthInPx) {
this.thumbnailWidthInPx = thumbnailWidthInPx;
}
public int getThumbnailHeightInPx() {
return thumbnailHeightInPx;
}
public void setThumbnailHeightInPx(int thumbnailHeightInPx) {
this.thumbnailHeightInPx = thumbnailHeightInPx;
}
public String getSubtitle() {
return subtitle;
}
public void setSubtitle(String subtitle) {
this.subtitle = subtitle;
}
}
@@ -1,36 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.videogallery;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
public class VideoGallery extends Composite {
private static VideoGalleryUiBinder uiBinder = GWT.create(VideoGalleryUiBinder.class);
interface VideoGalleryUiBinder extends UiBinder<Widget, VideoGallery> {
}
private VideoGalleryData videoGalleryData;
@UiField DivElement galleryTitle;
public VideoGallery() {
VideoGalleryResources.INSTANCE.css().ensureInjected();
initWidget(uiBinder.createAndBindUi(this));
}
public VideoGallery(VideoGalleryData data) {
this();
setData(data);
}
public void setData(VideoGalleryData data) {
this.videoGalleryData = data;
galleryTitle.setInnerText(this.videoGalleryData.getName() != null ? this.videoGalleryData.getName() : "");
}
}
@@ -1,14 +0,0 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with field="i18n"
type="com.sap.sailing.gwt.common.client.i18n.TextMessages" />
<ui:with field="res"
type="com.sap.sailing.gwt.common.client.SharedResources" />
<ui:with field="local_res"
type="com.sap.sailing.gwt.common.theme.component.videogallery.VideoGalleryResources" />
<g:HTMLPanel styleName="{local_res.css.sampleCssClass}">
Video gallery...
<div ui:field='galleryTitle'></div>
</g:HTMLPanel>
</ui:UiBinder>
@@ -1,38 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.videogallery;
import java.util.ArrayList;
import java.util.List;
public class VideoGalleryData {
private String name;
private List<VideoDescriptor> videos;
public VideoGalleryData() {
this("", new ArrayList<VideoDescriptor>());
}
public VideoGalleryData(String name) {
this(name, new ArrayList<VideoDescriptor>());
}
public VideoGalleryData(String name, List<VideoDescriptor> videos) {
this.name = name;
this.videos = videos;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<VideoDescriptor> getVideos() {
return videos;
}
public void setVideos(List<VideoDescriptor> videos) {
this.videos = videos;
}
}
@@ -1,16 +0,0 @@
package com.sap.sailing.gwt.common.theme.component.videogallery;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
public interface VideoGalleryResources extends ClientBundle {
public static final VideoGalleryResources INSTANCE = GWT.create(VideoGalleryResources.class);
@Source("VideoGallery.gss")
LocalCss css();
public interface LocalCss extends CssResource {
String sampleCssClass();
}
}