package org.gcube.portlets.user.notifications.client.view.templates; import org.gcube.portlets.user.notifications.shared.NotificationPreference; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Widget; public class NotificationPreferenceView extends Composite { private static NotificationPreferenceUiBinder uiBinder = GWT .create(NotificationPreferenceUiBinder.class); interface NotificationPreferenceUiBinder extends UiBinder { } @UiField Span prefType; @UiField Span prefDesc; @UiField CheckBox portalCheckbox; @UiField CheckBox emailCheckbox; //@UiField CheckBox noneCheckbox; public NotificationPreferenceView(NotificationPreference toDisplay) { initWidget(uiBinder.createAndBindUi(this)); prefType.setHTML(toDisplay.getTypeLabel()); prefDesc.setHTML(toDisplay.getTypeDesc()); } }