com.aelitis.azureus.ui.swt.subscriptions
Class SBC_SubscriptionResultsView

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
      extended by com.aelitis.azureus.ui.swt.views.skin.SkinView
          extended by com.aelitis.azureus.ui.swt.subscriptions.SBC_SubscriptionResultsView
All Implemented Interfaces:
SubscriptionListener, TableViewFilterCheck<SBC_SubscriptionResult>, UIUpdatable, SWTSkinObjectListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener

public class SBC_SubscriptionResultsView
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<SBC_SubscriptionResult>, SubscriptionListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
 
Field Summary
static String TABLE_SR
           
 
Fields inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
skin, soMain
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Fields inherited from interface com.aelitis.azureus.core.subs.SubscriptionListener
CR_METADATA, CR_RESULTS
 
Fields inherited from interface com.aelitis.azureus.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_SELECT, EVENT_SHOW, NAMES
 
Constructor Summary
SBC_SubscriptionResultsView()
           
 
Method Summary
 Object dataSourceChanged(SWTSkinObject skinObject, Object params)
           
 boolean filterCheck(SBC_SubscriptionResult ds, String filter, boolean regex)
           
 void filterSet(String filter)
           
 String getDownloadURI(SBC_SubscriptionResult result)
           
 String getUpdateUIName()
          A name for this UIUpdatable so we can track who's being bad
protected  void refilter()
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
 Object skinObjectDestroyed(SWTSkinObject skinObject, Object params)
          Skin Object was destroyed
 Object skinObjectHidden(SWTSkinObject skinObject, Object params)
          Skin Object was hidden
 Object skinObjectInitialShow(SWTSkinObject skinObject, Object params)
           
 Object skinObjectShown(SWTSkinObject skinObject, Object params)
          Skin Object was shown
 void subscriptionChanged(Subscription subs, int reason)
           
 void subscriptionDownloaded(Subscription subs, boolean auto)
           
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 void updateUI()
          Update your UI!
 
Methods inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
getMainSkinObject, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated
 
Methods inherited from class com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
eventOccured, skinObjectSelected, updateLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_SR

public static final String TABLE_SR
See Also:
Constant Field Values
Constructor Detail

SBC_SubscriptionResultsView

public SBC_SubscriptionResultsView()
Method Detail

skinObjectInitialShow

public Object skinObjectInitialShow(SWTSkinObject skinObject,
                                    Object params)
Specified by:
skinObjectInitialShow in class SkinView
Returns:

refilter

protected void refilter()

dataSourceChanged

public Object dataSourceChanged(SWTSkinObject skinObject,
                                Object params)
Overrides:
dataSourceChanged in class SWTSkinObjectAdapter

subscriptionChanged

public void subscriptionChanged(Subscription subs,
                                int reason)
Specified by:
subscriptionChanged in interface SubscriptionListener

subscriptionDownloaded

public void subscriptionDownloaded(Subscription subs,
                                   boolean auto)
Specified by:
subscriptionDownloaded in interface SubscriptionListener

skinObjectShown

public Object skinObjectShown(SWTSkinObject skinObject,
                              Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was shown

Overrides:
skinObjectShown in class SkinView

skinObjectHidden

public Object skinObjectHidden(SWTSkinObject skinObject,
                               Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was hidden

Overrides:
skinObjectHidden in class SkinView

skinObjectDestroyed

public Object skinObjectDestroyed(SWTSkinObject skinObject,
                                  Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was destroyed

Overrides:
skinObjectDestroyed in class SkinView

getUpdateUIName

public String getUpdateUIName()
Description copied from interface: UIUpdatable
A name for this UIUpdatable so we can track who's being bad

Specified by:
getUpdateUIName in interface UIUpdatable
Returns:
some name

updateUI

public void updateUI()
Description copied from interface: UIUpdatable
Update your UI!

Specified by:
updateUI in interface UIUpdatable

filterCheck

public boolean filterCheck(SBC_SubscriptionResult ds,
                           String filter,
                           boolean regex)
Specified by:
filterCheck in interface TableViewFilterCheck<SBC_SubscriptionResult>

filterSet

public void filterSet(String filter)
Specified by:
filterSet in interface TableViewFilterCheck<SBC_SubscriptionResult>

toolBarItemActivated

public boolean toolBarItemActivated(ToolBarItem item,
                                    long activationType,
                                    Object datasource)
Description copied from interface: UIToolBarActivationListener
XXX Should have been UIToolBarItem

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

refreshToolBarItems

public void refreshToolBarItems(Map<String,Long> list)
Description copied from interface: UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set

Specified by:
refreshToolBarItems in interface UIPluginViewToolBarListener

getDownloadURI

public String getDownloadURI(SBC_SubscriptionResult result)