Class FieldUtil
- java.lang.Object
-
- org.gcube.portlets.widgets.ckan2zenodopublisher.client.view.FieldUtil
-
public class FieldUtil extends Object
The Class FieldUtil.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jan 13, 2020
-
-
Constructor Summary
Constructors Constructor Description FieldUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddValuesToListBox(com.github.gwtbootstrap.client.ui.ListBox list, List<String> listValues)Adds the values to list box.static com.github.gwtbootstrap.client.ui.ControlGroupgetParentControlGroupOfWidget(com.google.gwt.user.client.ui.Widget widget)Gets the parent control group of widget.static StringgetTextValue(com.github.gwtbootstrap.client.ui.TextBox box)Gets the text value.static booleanisValidValue(String value)Checks if is valid value.static voidselectValueToListBox(com.github.gwtbootstrap.client.ui.ListBox list, List<String> values)Select value to list box.static voidsetControlGroup(com.github.gwtbootstrap.client.ui.ControlGroup controlGroup, com.github.gwtbootstrap.client.ui.constants.ControlGroupType type)Sets the control group.static List<String>toZenodoIds(List<String> listLicenses)To zenodo ids.
-
-
-
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 grouptype- 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 listlistValues- 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
-
-