Class InfoTextAndLabels


  • public class InfoTextAndLabels
    extends Object
    The Class InfoTextAndLabels.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Dec 17, 2019
    • Constructor Detail

      • InfoTextAndLabels

        public InfoTextAndLabels()
    • 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 id
        text - the text
        captionText - the caption text
        iconElement - the icon element
        popover - the popover
        focusPanel - the focus panel
        popupOpenedIds - 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 key
        widget - the widget
      • setupPopover

        public static void setupPopover​(com.google.gwt.user.client.ui.Widget w,
                                        String message,
                                        String heading)
        Setup popover.
        Parameters:
        w - the w
        message - the message
        heading - the heading