ImageGallery and VideoGallery on mobiel media page are now collapsable

This commit is contained in:
Benjamin Barth committed 2015-08-27 17:07:41 +02:00
1 parent e34e17f912
commit 22831b2035
3 files changed
+9 -1

No files matched your search

@@ -22,11 +22,13 @@ public class ImageGallery extends Composite {
@UiField SectionHeaderContent sectionHeaderUi;
@UiField DivElement firstColumnUi;
@UiField DivElement secondColumnUi;
private final MobileSection mobileSection;
public ImageGallery() {
ImageGalleryResources.INSTANCE.css().ensureInjected();
initWidget(uiBinder.createAndBindUi(this));
initWidget(mobileSection = uiBinder.createAndBindUi(this));
sectionHeaderUi.setSectionTitle(StringMessages.INSTANCE.images());
sectionHeaderUi.initCollapsibility(mobileSection.getContentContainerElement(), true);
}
public void setImages(Collection<? extends ImageDTO> images) {
@@ -2,6 +2,7 @@ package com.sap.sailing.gwt.home.mobile.partials.section;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Element;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiChild;
import com.google.gwt.uibinder.client.UiField;
@@ -63,4 +64,8 @@ public class MobileSection extends Composite {
sectionContentHolderUi.removeClassName(local_res.css().edgeToEdgeSectionContentHolder());
}
}
public Element getContentContainerElement() {
return sectionContentHolderUi;
}
}
@@ -25,6 +25,7 @@ public class VideoGallery extends Composite {
VideoGalleryResources.INSTANCE.css().ensureInjected();
initWidget(mobileSection = uiBinder.createAndBindUi(this));
sectionHeaderUi.setSectionTitle(StringMessages.INSTANCE.videos());
sectionHeaderUi.initCollapsibility(mobileSection.getContentContainerElement(), true);
}
public void setVideos(Collection<? extends VideoDTO> videos) {