Class TagsPanel
- 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.ckan2zenodopublisher.client.ui.tags.TagsPanel
-
- 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 TagsPanel extends com.google.gwt.user.client.ui.CompositePanel for tags.- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
-
Constructor Summary
Constructors Constructor Description TagsPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTagElement(String tag)Add the tag as an element (when publishing from workspace)voidfreeze()Freeze tagsList<String>getTags()Return the tag listvoidremoveTags()Remove all inserted tagsvoidsetGroupPanelType(com.github.gwtbootstrap.client.ui.constants.ControlGroupType type)Set the tag group panel typevoidsetVocabulary(List<String> vocabularyTags)Since we have a controlled vocabulary, we swap to a listbox with multiple selection-
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
-
-
-
-
Method Detail
-
setVocabulary
public void setVocabulary(List<String> vocabularyTags)
Since we have a controlled vocabulary, we swap to a listbox with multiple selection- Parameters:
vocabularyTags-
-
addTagElement
public void addTagElement(String tag)
Add the tag as an element (when publishing from workspace)
-
removeTags
public void removeTags()
Remove all inserted tags
-
freeze
public void freeze()
Freeze tags
-
setGroupPanelType
public void setGroupPanelType(com.github.gwtbootstrap.client.ui.constants.ControlGroupType type)
Set the tag group panel type- Parameters:
none-
-
-