Class FieldUtil


  • public class FieldUtil
    extends Object
    The Class FieldUtil.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jan 13, 2020
    • Constructor Detail

      • FieldUtil

        public FieldUtil()
    • Method Detail

      • isValidValue

        public static boolean isValidValue​(String value)
        Checks if is valid value.
        Parameters:
        value - the value
        Returns:
        true, if is valid value
      • getParentControlGroupOfWidget

        public static com.github.gwtbootstrap.client.ui.ControlGroup getParentControlGroupOfWidget​(com.google.gwt.user.client.ui.Widget widget)
        Gets the parent control group of widget.
        Parameters:
        widget - the widget
        Returns:
        the parent control group of widget
      • setControlGroup

        public static void setControlGroup​(com.github.gwtbootstrap.client.ui.ControlGroup controlGroup,
                                           com.github.gwtbootstrap.client.ui.constants.ControlGroupType type)
        Sets the control group.
        Parameters:
        controlGroup - the control group
        type - the type
      • getTextValue

        public static String getTextValue​(com.github.gwtbootstrap.client.ui.TextBox box)
        Gets the text value.
        Parameters:
        box - the box
        Returns:
        the text value
      • addValuesToListBox

        public static void addValuesToListBox​(com.github.gwtbootstrap.client.ui.ListBox list,
                                              List<String> listValues)
        Adds the values to list box.
        Parameters:
        list - the list
        listValues - the list values
      • toZenodoIds

        public static List<String> toZenodoIds​(List<String> listLicenses)
        To zenodo ids. TODO Must passed an object License
        Parameters:
        listLicenses - the list licenses
        Returns:
        the list
      • selectValueToListBox

        public static void selectValueToListBox​(com.github.gwtbootstrap.client.ui.ListBox list,
                                                List<String> values)
        Select value to list box.
        Parameters:
        list - the list
        values - the values