Package com.biglybt.core.tag.impl
Class TagTypeWithState
java.lang.Object
com.biglybt.core.tag.impl.TagTypeBase
com.biglybt.core.tag.impl.TagTypeWithState
- All Implemented Interfaces:
TagListener
,TagType
- Direct Known Subclasses:
GlobalManagerImpl.DownloadStateTagger
,SpeedLimitHandler.IPSetTagType
,TagTypeDownloadInternal
,TagTypeDownloadManual
,TagTypeSwarmTag
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.core.tag.impl.TagTypeBase
TagTypeBase.TagGroupImpl
-
Field Summary
FieldsFields inherited from class com.biglybt.core.tag.impl.TagTypeBase
AT_COLOR_ID
Fields inherited from interface com.biglybt.core.tag.TagType
TT_DOWNLOAD_CATEGORY, TT_DOWNLOAD_INTERNAL, TT_DOWNLOAD_MANUAL, TT_DOWNLOAD_STATE, TT_PEER_IPSET, TT_SWARM_TAG, TT_TAG_SUGGESTION
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TagTypeWithState
(int tag_type, int tag_features, String tag_name) protected
TagTypeWithState
(int tag_type, TaggableResolver _resolver, int tag_features, String tag_name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected Tag
protected TaggableResolver
int
getTags()
void
protected void
removeTaggable
(TaggableResolver _resolver, Taggable taggable) protected Taggable
Methods inherited from class com.biglybt.core.tag.impl.TagTypeBase
addTagListener, addTagType, addTagTypeListener, closing, createTag, fireChanged, fireMembershipChanged, fireMetadataChanged, generate, generateConfig, getColorDefault, getTag, getTag, getTagGroup, getTagManager, getTagsForTaggable, getTagType, getTagTypeFeatures, getTagTypeName, hasTagTypeFeature, isTagTypeAuto, isTagTypePersistent, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeTagListener, removeTagType, removeTagTypeListener, requestAttention, setTagGroup, sync, taggableAdded, taggableRemoved, taggableSync, writeBooleanAttribute, writeLongAttribute, writeLongListAttribute, writeMapAttribute, writeStringAttribute, writeStringListAttribute
-
Field Details
-
tags
-
resolver
-
-
Constructor Details
-
TagTypeWithState
-
TagTypeWithState
protected TagTypeWithState(int tag_type, TaggableResolver _resolver, int tag_features, String tag_name)
-
-
Method Details
-
resolveTaggable
- Overrides:
resolveTaggable
in classTagTypeBase
-
getResolver
- Overrides:
getResolver
in classTagTypeBase
-
removeTaggable
- Overrides:
removeTaggable
in classTagTypeBase
-
createTag
- Throws:
TagException
-
addTag
- Specified by:
addTag
in interfaceTagType
- Overrides:
addTag
in classTagTypeBase
-
removeTag
- Specified by:
removeTag
in interfaceTagType
- Overrides:
removeTag
in classTagTypeBase
-
getTags
-
getTagCount
public int getTagCount()
-