com.aelitis.azureus.core.tag.impl
Class TagPropertyConstraintHandler

java.lang.Object
  extended by com.aelitis.azureus.core.tag.impl.TagPropertyConstraintHandler
All Implemented Interfaces:
TagTypeListener, DownloadListener

public class TagPropertyConstraintHandler
extends Object
implements TagTypeListener, DownloadListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.core.tag.TagTypeListener
TagTypeListener.TagEvent
 
Constructor Summary
protected TagPropertyConstraintHandler(AzureusCore _core, TagManagerImpl _tm)
           
 
Method Summary
static void main(String[] args)
           
 void positionChanged(Download download, int oldPosition, int newPosition)
          Position of download has changed.
 void stateChanged(Download download, int old_state, int new_state)
          The Download's state has changed.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagPropertyConstraintHandler

protected TagPropertyConstraintHandler(AzureusCore _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 interface TagTypeListener

tagEventOccurred

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

tagAdded

public void tagAdded(Tag tag)

stateChanged

public void stateChanged(Download download,
                         int old_state,
                         int new_state)
Description copied from interface: DownloadListener
The Download's state has changed. This is also triggered if the user toggles the Force Start on/off.

Specified by:
stateChanged in interface DownloadListener

positionChanged

public void positionChanged(Download download,
                            int oldPosition,
                            int newPosition)
Description copied from interface: DownloadListener
Position of download has changed.

Specified by:
positionChanged in interface DownloadListener
Parameters:
download - object in which the position has changed
oldPosition - position that the download used to be at
newPosition - position that the download is now at

tagRemoved

public void tagRemoved(Tag tag)

main

public static void main(String[] args)