39 lines
1.3 KiB
Java
39 lines
1.3 KiB
Java
//package org.gcube.portlets.widgets.ckan2zenodopublisher.client.ui.utils;
|
|
//
|
|
//import com.github.gwtbootstrap.client.ui.Icon;
|
|
//import com.github.gwtbootstrap.client.ui.Popover;
|
|
//import com.google.gwt.core.client.GWT;
|
|
//import com.google.gwt.dom.client.Style.Cursor;
|
|
//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;
|
|
//
|
|
//public class FieldDescription extends Composite {
|
|
//
|
|
// private static FieldDescriptionUiBinder uiBinder = GWT.create(FieldDescriptionUiBinder.class);
|
|
//
|
|
// interface FieldDescriptionUiBinder extends UiBinder<Widget, FieldDescription> {
|
|
// }
|
|
//
|
|
// @UiField
|
|
// Popover popoverDescription;
|
|
//
|
|
// @UiField
|
|
// Icon infoIconDescription;
|
|
//
|
|
// public FieldDescription(String captionText, String text) {
|
|
// initWidget(uiBinder.createAndBindUi(this));
|
|
//
|
|
// // prepare the popover
|
|
// if(captionText!=null)
|
|
// popoverDescription.setHeading(new HTML("<b>" + captionText + "</b>").getHTML());
|
|
//
|
|
// popoverDescription.setText(new HTML("<p style='color:initial'>" + text + "</p>").getHTML());
|
|
//
|
|
// // set icon cursor
|
|
// infoIconDescription.getElement().getStyle().setCursor(Cursor.HELP);
|
|
// }
|
|
//}
|