Class MetaDataFieldSkeleton
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.gcube.portlets.widgets.ckandatapublisherwidget.client.ui.metadata.MetaDataFieldSkeleton
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget
public class MetaDataFieldSkeleton extends com.google.gwt.user.client.ui.Composite
-
-
Field Summary
Fields Modifier and Type Field Description static StringRANGE_SEPARATOR
-
Constructor Summary
Constructors Constructor Description MetaDataFieldSkeleton(MetadataFieldWrapper field, com.google.gwt.event.shared.HandlerManager eventBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfreeze()Freeze this widget (after on create)MetadataFieldWrappergetField()Get the original MetadataFieldWrapper objectList<String>getFieldCurrentValue()Returns the current value of the field.StringgetFieldNameOriginal()Returns the current name of the fieldStringgetFieldNameQualified()Returns the current name of the fieldList<String>getGroupTitleFromThisGroup()Given the name and the value of this field, return a group title if it is the case.List<String>getTagFromThisField()Given the name and the value of this field, return a tag if it is the case.StringisFieldValueValid()Check if this field has valid valuesbooleanisGroupToForce()Check if the group associated (if it exists) should be forcedbooleanisPropagateUp()Check if the propagateUp is setvoidremoveError()voidshowError()-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Field Detail
-
RANGE_SEPARATOR
public static final String RANGE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetaDataFieldSkeleton
public MetaDataFieldSkeleton(MetadataFieldWrapper field, com.google.gwt.event.shared.HandlerManager eventBus) throws Exception
- Throws:
Exception
-
-
Method Detail
-
isFieldValueValid
public String isFieldValueValid()
Check if this field has valid values- Returns:
- a string with the occurred error on error, null otherwise
-
getFieldCurrentValue
public List<String> getFieldCurrentValue()
Returns the current value of the field. In case of TimeInterval or TimeList see getTimeIntervalOrTimeListWithoutMissing()- Returns:
-
getFieldNameOriginal
public String getFieldNameOriginal()
Returns the current name of the field- Returns:
-
getFieldNameQualified
public String getFieldNameQualified()
Returns the current name of the field- Returns:
-
freeze
public void freeze()
Freeze this widget (after on create)
-
getField
public MetadataFieldWrapper getField()
Get the original MetadataFieldWrapper object- Returns:
-
removeError
public void removeError()
-
showError
public void showError()
-
getTagFromThisField
public List<String> getTagFromThisField()
Given the name and the value of this field, return a tag if it is the case.- Returns:
- a tag as string
-
getGroupTitleFromThisGroup
public List<String> getGroupTitleFromThisGroup()
Given the name and the value of this field, return a group title if it is the case.- Returns:
- a tag as string
-
isGroupToForce
public boolean isGroupToForce()
Check if the group associated (if it exists) should be forced- Returns:
-
isPropagateUp
public boolean isPropagateUp()
Check if the propagateUp is set- Returns:
-
-