308 lines
12 KiB
Java
308 lines
12 KiB
Java
// .ui.xml template last modified: 1448472359000
|
|
package org.gcube.portlet.user.userstatisticsportlet.client.ui;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.dom.client.Element;
|
|
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
|
|
import com.google.gwt.safehtml.shared.SafeHtml;
|
|
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
|
|
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
|
import com.google.gwt.safehtml.shared.SafeUri;
|
|
import com.google.gwt.safehtml.shared.UriUtils;
|
|
import com.google.gwt.uibinder.client.UiBinderUtil;
|
|
import com.google.gwt.uibinder.client.UiBinder;
|
|
import com.google.gwt.uibinder.client.UiBinderUtil;
|
|
import com.google.gwt.user.client.ui.Widget;
|
|
|
|
public class CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl implements UiBinder<com.google.gwt.user.client.ui.Widget, org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget>, org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget.CommentsAndLikesWidgetUiBinder {
|
|
|
|
interface Template extends SafeHtmlTemplates {
|
|
@Template("<span id='{0}'></span> <span id='{1}'></span> <span id='{2}'></span> <span id='{3}'></span>")
|
|
SafeHtml html1(String arg0, String arg1, String arg2, String arg3);
|
|
|
|
}
|
|
|
|
Template template = GWT.create(Template.class);
|
|
|
|
|
|
public com.google.gwt.user.client.ui.Widget createAndBindUi(final org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget owner) {
|
|
|
|
|
|
return new Widgets(owner).get_f_HTMLPanel1();
|
|
}
|
|
|
|
/**
|
|
* Encapsulates the access to all inner widgets
|
|
*/
|
|
class Widgets {
|
|
private final org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget owner;
|
|
|
|
|
|
public Widgets(final org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget owner) {
|
|
this.owner = owner;
|
|
build_style(); // generated css resource must be always created. Type: GENERATED_CSS. Precedence: 1
|
|
build_domId0(); // more than one getter call detected. Type: DOM_ID_HOLDER, precedence: 2
|
|
build_domId1(); // more than one getter call detected. Type: DOM_ID_HOLDER, precedence: 2
|
|
build_domId2(); // more than one getter call detected. Type: DOM_ID_HOLDER, precedence: 2
|
|
build_domId3(); // more than one getter call detected. Type: DOM_ID_HOLDER, precedence: 2
|
|
build_domId0Element(); // more than one getter call detected. Type: DEFAULT, precedence: 2
|
|
build_domId1Element(); // more than one getter call detected. Type: DEFAULT, precedence: 2
|
|
build_domId2Element(); // more than one getter call detected. Type: DEFAULT, precedence: 2
|
|
build_domId3Element(); // more than one getter call detected. Type: DEFAULT, precedence: 2
|
|
}
|
|
|
|
SafeHtml template_html1() {
|
|
return template.html1(get_domId0(), get_domId1(), get_domId2(), get_domId3());
|
|
}
|
|
|
|
/**
|
|
* Getter for clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay called 1 times. Type: GENERATED_BUNDLE. Build precedence: 1.
|
|
*/
|
|
private org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenBundle get_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay() {
|
|
return build_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay();
|
|
}
|
|
private org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenBundle build_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay() {
|
|
// Creation section.
|
|
final org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenBundle clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = (org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenBundle) GWT.create(org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenBundle.class);
|
|
// Setup section.
|
|
|
|
return clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay;
|
|
}
|
|
|
|
/**
|
|
* Getter for style called 4 times. Type: GENERATED_CSS. Build precedence: 1.
|
|
*/
|
|
private org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenCss_style style;
|
|
private org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenCss_style get_style() {
|
|
return style;
|
|
}
|
|
private org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWidget_CommentsAndLikesWidgetUiBinderImpl_GenCss_style build_style() {
|
|
// Creation section.
|
|
style = get_clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay().style();
|
|
// Setup section.
|
|
style.ensureInjected();
|
|
|
|
return style;
|
|
}
|
|
|
|
/**
|
|
* Getter for f_HTMLPanel1 called 1 times. Type: DEFAULT. Build precedence: 1.
|
|
*/
|
|
private com.google.gwt.user.client.ui.HTMLPanel get_f_HTMLPanel1() {
|
|
return build_f_HTMLPanel1();
|
|
}
|
|
private com.google.gwt.user.client.ui.HTMLPanel build_f_HTMLPanel1() {
|
|
// Creation section.
|
|
final com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel(template_html1().asString());
|
|
// Setup section.
|
|
|
|
{
|
|
// Attach section.
|
|
UiBinderUtil.TempAttachment __attachRecord__ = UiBinderUtil.attachToDom(f_HTMLPanel1.getElement());
|
|
|
|
get_domId0Element().get();
|
|
get_domId1Element().get();
|
|
get_domId2Element().get();
|
|
get_domId3Element().get();
|
|
|
|
// Detach section.
|
|
__attachRecord__.detach();
|
|
}
|
|
f_HTMLPanel1.addAndReplaceElement(get_likesImage(), get_domId0Element().get());
|
|
f_HTMLPanel1.addAndReplaceElement(get_likesValue(), get_domId1Element().get());
|
|
f_HTMLPanel1.addAndReplaceElement(get_commentsImage(), get_domId2Element().get());
|
|
f_HTMLPanel1.addAndReplaceElement(get_commentsValue(), get_domId3Element().get());
|
|
|
|
return f_HTMLPanel1;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId0 called 2 times. Type: DOM_ID_HOLDER. Build precedence: 2.
|
|
*/
|
|
private java.lang.String domId0;
|
|
private java.lang.String get_domId0() {
|
|
return domId0;
|
|
}
|
|
private java.lang.String build_domId0() {
|
|
// Creation section.
|
|
domId0 = com.google.gwt.dom.client.Document.get().createUniqueId();
|
|
// Setup section.
|
|
|
|
return domId0;
|
|
}
|
|
|
|
/**
|
|
* Getter for likesImage called 1 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.user.client.ui.Image get_likesImage() {
|
|
return build_likesImage();
|
|
}
|
|
private com.google.gwt.user.client.ui.Image build_likesImage() {
|
|
// Creation section.
|
|
final com.google.gwt.user.client.ui.Image likesImage = (com.google.gwt.user.client.ui.Image) GWT.create(com.google.gwt.user.client.ui.Image.class);
|
|
// Setup section.
|
|
likesImage.setStyleName("" + get_style().statisticIcon() + "");
|
|
|
|
this.owner.likesImage = likesImage;
|
|
|
|
return likesImage;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId0Element called 2 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.uibinder.client.LazyDomElement domId0Element;
|
|
private com.google.gwt.uibinder.client.LazyDomElement get_domId0Element() {
|
|
return domId0Element;
|
|
}
|
|
private com.google.gwt.uibinder.client.LazyDomElement build_domId0Element() {
|
|
// Creation section.
|
|
domId0Element = new com.google.gwt.uibinder.client.LazyDomElement<Element>(get_domId0());
|
|
// Setup section.
|
|
|
|
return domId0Element;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId1 called 2 times. Type: DOM_ID_HOLDER. Build precedence: 2.
|
|
*/
|
|
private java.lang.String domId1;
|
|
private java.lang.String get_domId1() {
|
|
return domId1;
|
|
}
|
|
private java.lang.String build_domId1() {
|
|
// Creation section.
|
|
domId1 = com.google.gwt.dom.client.Document.get().createUniqueId();
|
|
// Setup section.
|
|
|
|
return domId1;
|
|
}
|
|
|
|
/**
|
|
* Getter for likesValue called 1 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.user.client.ui.Label get_likesValue() {
|
|
return build_likesValue();
|
|
}
|
|
private com.google.gwt.user.client.ui.Label build_likesValue() {
|
|
// Creation section.
|
|
final com.google.gwt.user.client.ui.Label likesValue = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
|
|
// Setup section.
|
|
likesValue.setStyleName("" + get_style().statisticValue() + "");
|
|
|
|
this.owner.likesValue = likesValue;
|
|
|
|
return likesValue;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId1Element called 2 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.uibinder.client.LazyDomElement domId1Element;
|
|
private com.google.gwt.uibinder.client.LazyDomElement get_domId1Element() {
|
|
return domId1Element;
|
|
}
|
|
private com.google.gwt.uibinder.client.LazyDomElement build_domId1Element() {
|
|
// Creation section.
|
|
domId1Element = new com.google.gwt.uibinder.client.LazyDomElement<Element>(get_domId1());
|
|
// Setup section.
|
|
|
|
return domId1Element;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId2 called 2 times. Type: DOM_ID_HOLDER. Build precedence: 2.
|
|
*/
|
|
private java.lang.String domId2;
|
|
private java.lang.String get_domId2() {
|
|
return domId2;
|
|
}
|
|
private java.lang.String build_domId2() {
|
|
// Creation section.
|
|
domId2 = com.google.gwt.dom.client.Document.get().createUniqueId();
|
|
// Setup section.
|
|
|
|
return domId2;
|
|
}
|
|
|
|
/**
|
|
* Getter for commentsImage called 1 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.user.client.ui.Image get_commentsImage() {
|
|
return build_commentsImage();
|
|
}
|
|
private com.google.gwt.user.client.ui.Image build_commentsImage() {
|
|
// Creation section.
|
|
final com.google.gwt.user.client.ui.Image commentsImage = (com.google.gwt.user.client.ui.Image) GWT.create(com.google.gwt.user.client.ui.Image.class);
|
|
// Setup section.
|
|
commentsImage.setStyleName("" + get_style().statisticIcon() + "");
|
|
|
|
this.owner.commentsImage = commentsImage;
|
|
|
|
return commentsImage;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId2Element called 2 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.uibinder.client.LazyDomElement domId2Element;
|
|
private com.google.gwt.uibinder.client.LazyDomElement get_domId2Element() {
|
|
return domId2Element;
|
|
}
|
|
private com.google.gwt.uibinder.client.LazyDomElement build_domId2Element() {
|
|
// Creation section.
|
|
domId2Element = new com.google.gwt.uibinder.client.LazyDomElement<Element>(get_domId2());
|
|
// Setup section.
|
|
|
|
return domId2Element;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId3 called 2 times. Type: DOM_ID_HOLDER. Build precedence: 2.
|
|
*/
|
|
private java.lang.String domId3;
|
|
private java.lang.String get_domId3() {
|
|
return domId3;
|
|
}
|
|
private java.lang.String build_domId3() {
|
|
// Creation section.
|
|
domId3 = com.google.gwt.dom.client.Document.get().createUniqueId();
|
|
// Setup section.
|
|
|
|
return domId3;
|
|
}
|
|
|
|
/**
|
|
* Getter for commentsValue called 1 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.user.client.ui.Label get_commentsValue() {
|
|
return build_commentsValue();
|
|
}
|
|
private com.google.gwt.user.client.ui.Label build_commentsValue() {
|
|
// Creation section.
|
|
final com.google.gwt.user.client.ui.Label commentsValue = (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
|
|
// Setup section.
|
|
commentsValue.setStyleName("" + get_style().statisticValue() + "");
|
|
|
|
this.owner.commentsValue = commentsValue;
|
|
|
|
return commentsValue;
|
|
}
|
|
|
|
/**
|
|
* Getter for domId3Element called 2 times. Type: DEFAULT. Build precedence: 2.
|
|
*/
|
|
private com.google.gwt.uibinder.client.LazyDomElement domId3Element;
|
|
private com.google.gwt.uibinder.client.LazyDomElement get_domId3Element() {
|
|
return domId3Element;
|
|
}
|
|
private com.google.gwt.uibinder.client.LazyDomElement build_domId3Element() {
|
|
// Creation section.
|
|
domId3Element = new com.google.gwt.uibinder.client.LazyDomElement<Element>(get_domId3());
|
|
// Setup section.
|
|
|
|
return domId3Element;
|
|
}
|
|
}
|
|
}
|