Class InfoTextAndLabels
- java.lang.Object
-
- org.gcube.portlets.widgets.ckan2zenodopublisher.client.ui.utils.InfoTextAndLabels
-
public class InfoTextAndLabels extends Object
The Class InfoTextAndLabels.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Dec 17, 2019
-
-
Field Summary
Fields Modifier and Type Field Description static StringTAGS_INFO_CAPTIONstatic StringTAGS_INFO_ID_POPUPstatic StringTAGS_INFO_TEXT
-
Constructor Summary
Constructors Constructor Description InfoTextAndLabels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTooltipForFieldKey(String theFieldKey, com.google.gwt.user.client.ui.Widget widget)Adds the tooltip for field key.static voidcloseDialogBox(List<String> popupOpenedIds)Close any dialog box opened.static com.google.gwt.user.client.ui.IsWidgetgetWidget(com.google.gwt.dom.client.Element element)Check if an element of such type is actually a widget.static voidpreparePopupPanelAndPopover(String popupId, String text, String captionText, com.github.gwtbootstrap.client.ui.Icon iconElement, com.github.gwtbootstrap.client.ui.Popover popover, com.google.gwt.user.client.ui.FocusPanel focusPanel, List<String> popupOpenedIds)Prepare the popover and the gcube popup panel for information.static voidsetupPopover(com.google.gwt.user.client.ui.Widget w, String message, String heading)Setup popover.static StringvalidValue(String value)Valid value.
-
-
-
Field Detail
-
TAGS_INFO_ID_POPUP
public static final String TAGS_INFO_ID_POPUP
- See Also:
- Constant Field Values
-
TAGS_INFO_CAPTION
public static final String TAGS_INFO_CAPTION
- See Also:
- Constant Field Values
-
TAGS_INFO_TEXT
public static final String TAGS_INFO_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
preparePopupPanelAndPopover
public static void preparePopupPanelAndPopover(String popupId, String text, String captionText, com.github.gwtbootstrap.client.ui.Icon iconElement, com.github.gwtbootstrap.client.ui.Popover popover, com.google.gwt.user.client.ui.FocusPanel focusPanel, List<String> popupOpenedIds)
Prepare the popover and the gcube popup panel for information.- Parameters:
popupId- the popup idtext- the textcaptionText- the caption texticonElement- the icon elementpopover- the popoverfocusPanel- the focus panelpopupOpenedIds- the popup opened ids
-
getWidget
public static com.google.gwt.user.client.ui.IsWidget getWidget(com.google.gwt.dom.client.Element element)
Check if an element of such type is actually a widget.- Parameters:
element- the element- Returns:
- the widget
-
closeDialogBox
public static void closeDialogBox(List<String> popupOpenedIds)
Close any dialog box opened.- Parameters:
popupOpenedIds- the popup opened ids
-
validValue
public static String validValue(String value)
Valid value.- Parameters:
value- the value- Returns:
- the string
-
addTooltipForFieldKey
public static void addTooltipForFieldKey(String theFieldKey, com.google.gwt.user.client.ui.Widget widget)
Adds the tooltip for field key.- Parameters:
theFieldKey- the the field keywidget- the widget
-
-