Class TaggingView

java.lang.Object
com.biglybt.ui.swt.views.TaggingView
All Implemented Interfaces:
TagTypeListener, UISWTViewEventListener, UISWTViewCoreEventListener

public class TaggingView extends Object implements UISWTViewCoreEventListener, TagTypeListener
View showing tags set on selected taggable item(s). Sometimes easier than drag and dropping to buttons/sidebar
  • Field Details

    • MSGID_PREFIX

      public static final String MSGID_PREFIX
      See Also:
    • copied_tag_assignment

      private static Set<Tag> copied_tag_assignment
    • cta_listeners

      private static CopyOnWriteList<Consumer<String>> cta_listeners
    • swtView

      private UISWTView swtView
    • sc

      private org.eclipse.swt.custom.ScrolledComposite sc
    • taggables

      private List<Taggable> taggables
    • parent

      private org.eclipse.swt.widgets.Composite parent
    • tagButtonsUI

      private TagButtonsUI tagButtonsUI
    • buttonCopy

      private org.eclipse.swt.widgets.Button buttonCopy
    • buttonPaste

      private org.eclipse.swt.widgets.Button buttonPaste
    • buttonClear

      private org.eclipse.swt.widgets.Button buttonClear
    • buttonInvert

      private org.eclipse.swt.widgets.Button buttonInvert
    • buttonExplain

      private org.eclipse.swt.widgets.Button buttonExplain
    • mainComposite

      private org.eclipse.swt.widgets.Composite mainComposite
  • Constructor Details

    • TaggingView

      public TaggingView()
  • Method Details

    • eventOccurred

      public boolean eventOccurred(UISWTViewEvent event)
      Description copied from interface: UISWTViewEventListener
      Triggers when an even listed in UISWTViewEvent occurs
      Specified by:
      eventOccurred in interface UISWTViewEventListener
      Parameters:
      event - event that occurred
      Returns:
      meaning dependent upon event type
    • focusGained

      private void focusGained()
    • focusLost

      private void focusLost()
    • delete

      private void delete()
    • refresh

      private void refresh()
    • dataSourceChanged

      private void dataSourceChanged(Object ds)
    • rebuildComposite

      private void rebuildComposite()
    • getFullTitle

      private String getFullTitle()
    • swt_updateFields

      private void swt_updateFields()
    • getTags

      private List<Tag> getTags()
    • tagTypeChanged

      public void tagTypeChanged(TagType tag_type)
      Description copied from interface: TagTypeListener
      General change not specific to one tag
      Specified by:
      tagTypeChanged in interface TagTypeListener
    • tagEventOccurred

      public void tagEventOccurred(TagTypeListener.TagEvent event)
      Specified by:
      tagEventOccurred in interface TagTypeListener
    • tagAdded

      public void tagAdded(Tag tag)
    • tagChanged

      public void tagChanged(Tag changedTag)
    • tagRemoved

      public void tagRemoved(Tag tag)
    • explain

      private void explain()
    • askForNewTag

      private void askForNewTag()