com.aelitis.azureus.ui.swt.views.skin
Class SBC_LibraryTableView

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.views.skin.SBC_LibraryTableView
All Implemented Interfaces:
UIUpdatable, SWTSkinObjectListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, ObfusticateImage
Direct Known Subclasses:
SBC_LibraryTableView_Big

public class SBC_LibraryTableView
extends SkinView
implements UIUpdatable, ObfusticateImage, UIPluginViewToolBarListener

Classic My Torrents view wrapped in a SkinView

Author:
TuxPaper

Field Summary
protected  int torrentFilterMode
           
 
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.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_LibraryTableView()
           
 
Method Summary
static void doDefaultClick(TableRowCore[] rows, int stateMask, boolean neverPlay)
           
protected  TableColumnCore[] getColumns()
          Returns the appropriate set of columns for the completed or incomplete torrents views Subclasses may override to return different sets of columns
protected  int getTableMode()
          Return either MODE_SMALLTABLE or MODE_BIGTABLE Subclasses may override
 java.lang.String getUpdateUIName()
          A name for this UIUpdatable so we can track who's being bad
 void initShow(AzureusCore core)
           
 org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
           
 void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
          Fill in list with the toolbar ids and states you wish to set
 java.lang.Object skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
          Skin Object was destroyed
 java.lang.Object skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
          Skin Object was hidden
 java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
           
 java.lang.Object skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
          Skin Object was shown
 boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
          XXX Should have been UIToolBarItem
 void updateUI()
          Update your UI!
protected  boolean useBigTable()
          Returns whether the big version of the tables should be used Subclasses may override
 
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
dataSourceChanged, eventOccured, skinObjectSelected, updateLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

torrentFilterMode

protected int torrentFilterMode
Constructor Detail

SBC_LibraryTableView

public SBC_LibraryTableView()
Method Detail

skinObjectInitialShow

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

initShow

public void initShow(AzureusCore core)

doDefaultClick

public static void doDefaultClick(TableRowCore[] rows,
                                  int stateMask,
                                  boolean neverPlay)

getUpdateUIName

public java.lang.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

skinObjectShown

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

Overrides:
skinObjectShown in class SkinView

skinObjectHidden

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

Overrides:
skinObjectHidden in class SkinView

refreshToolBarItems

public void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.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

toolBarItemActivated

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

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

getTableMode

protected int getTableMode()
Return either MODE_SMALLTABLE or MODE_BIGTABLE Subclasses may override

Returns:

useBigTable

protected boolean useBigTable()
Returns whether the big version of the tables should be used Subclasses may override

Returns:

getColumns

protected TableColumnCore[] getColumns()
Returns the appropriate set of columns for the completed or incomplete torrents views Subclasses may override to return different sets of columns

Returns:

skinObjectDestroyed

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

Overrides:
skinObjectDestroyed in class SkinView

obfusticatedImage

public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
Specified by:
obfusticatedImage in interface ObfusticateImage