Package com.biglybt.ui.swt.views.utils
Class TagUIUtils.TagMenuOptions.Builder
java.lang.Object
com.biglybt.ui.swt.views.utils.TagUIUtils.TagMenuOptions.Builder
- Enclosing class:
- TagUIUtils.TagMenuOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private MenuManager
private int
private MenuItem
private boolean
private Taggable[]
private TagUIUtils.TagMenuFilter
private TagUIUtils.TagSelectionListener
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setMapTaggableCount
(Map<Tag, Integer> mapTaggableCount, int numTaggables) setMenuForAutoTags
(boolean menuForAutoTags) Whether to place Auto tags in their own menu (unselectable), or to include them with the rest of the tags.setMenuManager
(MenuManager menuManager) setParentPluginMenuItem
(MenuItem parent) setShowAddMenu
(boolean showAddMenu) setTaggables
(Taggable[] taggables) Taggable
s will be scanned for tag selection.setTagMenuFilter
(TagUIUtils.TagMenuFilter tagMenuFilter) Filters the tags before being added as menu itemssetTagSelectionListener
(TagUIUtils.TagSelectionListener tagSelectionListener) setTagType
(int tagType) SeeTagType
's TT_* constants
-
Field Details
-
taggables
-
tagMenuFilter
-
parent
-
tagSelectionListener
-
showAddMenu
private boolean showAddMenu -
tagType
private int tagType -
mapTaggableCount
-
numTaggables
private int numTaggables
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
setTagSelectionListener
public TagUIUtils.TagMenuOptions.Builder setTagSelectionListener(TagUIUtils.TagSelectionListener tagSelectionListener) -
setTaggables
Taggable
s will be scanned for tag selection.
setMapTaggableCount(Map, int)
is not needed when taggables is set -
setTagMenuFilter
Filters the tags before being added as menu itemsSee
TagUIUtils.TagMenuOptions.FILTER_NO_AUTOADDREMOVE
,TagUIUtils.TagMenuOptions.FILTER_NO_AUTOADD
,TagUIUtils.TagMenuOptions.FILTER_SHOW_ALL
-
setShowAddMenu
-
setMenuForAutoTags
Whether to place Auto tags in their own menu (unselectable), or to include them with the rest of the tags. Default is true -
setTagType
SeeTagType
's TT_* constants Default isTagType.TT_DOWNLOAD_MANUAL
-
setMapTaggableCount
public TagUIUtils.TagMenuOptions.Builder setMapTaggableCount(Map<Tag, Integer> mapTaggableCount, int numTaggables) - Parameters:
mapTaggableCount
- selected tags -> the # of taggables that have the tag selected
-