notifications/src/main/java/org/gcube/portlets/user/notifications/client/view/templates/CategoryWrapper.java

30 lines
786 B
Java

package org.gcube.portlets.user.notifications.client.view.templates;
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.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
/**
* @author Massimiliano Assante ISTI-CNR
*
*/
public class CategoryWrapper extends Composite {
private static CategoryWrapperUiBinder uiBinder = GWT
.create(CategoryWrapperUiBinder.class);
interface CategoryWrapperUiBinder extends UiBinder<Widget, CategoryWrapper> {
}
@UiField HTML categoryLabel;
public CategoryWrapper(String catName) {
initWidget(uiBinder.createAndBindUi(this));
categoryLabel.setHTML(catName);
}
}