Class 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.Composite
    Panel for tags.
    Author:
    Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      TagsPanel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTagElement​(String tag)
      Add the tag as an element (when publishing from workspace)
      void freeze()
      Freeze tags
      List<String> getTags()
      Return the tag list
      void prepareIcon​(List<String> popupOpenedIds)
      Prepare icons
      void removeTags()
      Remove all inserted tags
      void setGroupPanelType​(com.github.gwtbootstrap.client.ui.constants.ControlGroupType type)
      Set the tag group panel type
      void setVocabulary​(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
    • Constructor Detail

      • TagsPanel

        public TagsPanel()
    • 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 -
      • prepareIcon

        public void prepareIcon​(List<String> popupOpenedIds)
        Prepare icons
        Parameters:
        popupOpenedIds -
      • addTagElement

        public void addTagElement​(String tag)
        Add the tag as an element (when publishing from workspace)
      • removeTags

        public void removeTags()
        Remove all inserted tags
      • getTags

        public List<String> getTags()
        Return the tag list
        Returns:
      • 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 -