Package com.biglybt.core.tag.impl
Class TagPropertyUntaggedHandler
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagPropertyUntaggedHandler
-
- All Implemented Interfaces:
TagTypeListener
public class TagPropertyUntaggedHandler extends java.lang.Object implements TagTypeListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.biglybt.core.tag.TagTypeListener
TagTypeListener.TagEvent
-
-
Field Summary
Fields Modifier and Type Field Description private Core
core
private boolean
is_enabled
private boolean
is_initialised
(package private) TagManagerImpl
tag_manager
(package private) java.util.Map<Taggable,int[]>
taggable_counts
(package private) java.util.Set<Tag>
untagged_tags
-
Constructor Summary
Constructors Modifier Constructor Description protected
TagPropertyUntaggedHandler(Core _core, TagManagerImpl _tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addDownloads(java.util.List<DownloadManager> dms)
private void
disable()
private void
enable()
protected java.util.List<Tag>
getUntaggedTags()
private void
handleProperty(TagFeatureProperties.TagProperty property)
private void
setEnabled(Tag current_tag, boolean enabled)
void
tagAdded(Tag tag)
void
tagEventOccurred(TagTypeListener.TagEvent event)
void
tagRemoved(Tag tag)
void
tagTypeChanged(TagType tag_type)
General change not specific to one tag
-
-
-
Field Detail
-
core
private final Core core
-
tag_manager
final TagManagerImpl tag_manager
-
is_initialised
private boolean is_initialised
-
is_enabled
private boolean is_enabled
-
untagged_tags
final java.util.Set<Tag> untagged_tags
-
taggable_counts
final java.util.Map<Taggable,int[]> taggable_counts
-
-
Constructor Detail
-
TagPropertyUntaggedHandler
protected TagPropertyUntaggedHandler(Core _core, TagManagerImpl _tm)
-
-
Method Detail
-
tagTypeChanged
public void tagTypeChanged(TagType tag_type)
Description copied from interface:TagTypeListener
General change not specific to one tag- Specified by:
tagTypeChanged
in interfaceTagTypeListener
-
tagEventOccurred
public void tagEventOccurred(TagTypeListener.TagEvent event)
- Specified by:
tagEventOccurred
in interfaceTagTypeListener
-
tagAdded
public void tagAdded(Tag tag)
-
tagRemoved
public void tagRemoved(Tag tag)
-
enable
private void enable()
-
disable
private void disable()
-
setEnabled
private void setEnabled(Tag current_tag, boolean enabled)
-
handleProperty
private void handleProperty(TagFeatureProperties.TagProperty property)
-
addDownloads
private void addDownloads(java.util.List<DownloadManager> dms)
-
getUntaggedTags
protected java.util.List<Tag> getUntaggedTags()
-
-