Class BaseTorrentAttributeImpl
java.lang.Object
com.biglybt.pifimpl.local.torrent.BaseTorrentAttributeImpl
- All Implemented Interfaces:
TorrentAttribute
- Direct Known Subclasses:
TorrentAttributeCategoryImpl, TorrentAttributeDisplayNameImpl, TorrentAttributeNetworksImpl, TorrentAttributePeerSourcesImpl, TorrentAttributePluginImpl, TorrentAttributeRelativeSavePathImpl, TorrentAttributeSharePropertiesImpl, TorrentAttributeTrackerClientExtImpl, TorrentAttributeUserCommentImpl
-
Field Summary
FieldsFields inherited from interface TorrentAttribute
TA_CATEGORY, TA_CONTENT_MAP, TA_DISPLAY_NAME, TA_NETWORKS, TA_PEER_SOURCES, TA_RELATIVE_SAVE_PATH, TA_SHARE_PROPERTIES, TA_TRACKER_CLIENT_EXTENSIONS, TA_USER_COMMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefinedValue(String name) Adds a new value to the attribute setvoidString[]Returns the currently defined values for this attributeabstract StringgetName()protected Listprotected voidvoidremoveDefinedValue(String name) Removes a value from the attribute setvoid
-
Field Details
-
listeners
-
-
Constructor Details
-
BaseTorrentAttributeImpl
protected BaseTorrentAttributeImpl()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTorrentAttribute
-
getDefinedValues
Description copied from interface:TorrentAttributeReturns the currently defined values for this attribute- Specified by:
getDefinedValuesin interfaceTorrentAttribute- Returns:
-
addDefinedValue
Description copied from interface:TorrentAttributeAdds a new value to the attribute set- Specified by:
addDefinedValuein interfaceTorrentAttribute- Parameters:
name-
-
removeDefinedValue
Description copied from interface:TorrentAttributeRemoves a value from the attribute set- Specified by:
removeDefinedValuein interfaceTorrentAttribute- Parameters:
name-
-
addTorrentAttributeListener
- Specified by:
addTorrentAttributeListenerin interfaceTorrentAttribute
-
removeTorrentAttributeListener
- Specified by:
removeTorrentAttributeListenerin interfaceTorrentAttribute
-
getTorrentAttributeListeners
-
notifyListeners
-