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

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_LibraryView
All Implemented Interfaces:
SWTSkinObjectListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener

public class SBC_LibraryView
extends SkinView
implements UIPluginViewToolBarListener

Author:
TuxPaper

Nested Class Summary
protected static interface SBC_LibraryView.HeaderInfoExtender
           
 
Field Summary
static int MODE_BIGTABLE
           
static int MODE_SMALLTABLE
           
static int TORRENTS_ALL
           
static int TORRENTS_COMPLETE
           
static int TORRENTS_INCOMPLETE
           
static int TORRENTS_UNOPENED
           
 
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_LibraryView()
           
 
Method Summary
protected  void addHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)
           
 Object dataSourceChanged(SWTSkinObject skinObject, Object params)
           
 int getViewMode()
           
protected  void refreshHeaderInfo()
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
protected  void removeHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)
           
 void setViewMode(int viewMode, boolean save)
           
 Object skinObjectHidden(SWTSkinObject skinObject, Object params)
          Skin Object was hidden
 Object skinObjectInitialShow(SWTSkinObject skinObject, Object params)
           
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 
Methods inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
getMainSkinObject, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectDestroyed, skinObjectShown
 
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

MODE_BIGTABLE

public static final int MODE_BIGTABLE
See Also:
Constant Field Values

MODE_SMALLTABLE

public static final int MODE_SMALLTABLE
See Also:
Constant Field Values

TORRENTS_ALL

public static final int TORRENTS_ALL
See Also:
Constant Field Values

TORRENTS_COMPLETE

public static final int TORRENTS_COMPLETE
See Also:
Constant Field Values

TORRENTS_INCOMPLETE

public static final int TORRENTS_INCOMPLETE
See Also:
Constant Field Values

TORRENTS_UNOPENED

public static final int TORRENTS_UNOPENED
See Also:
Constant Field Values
Constructor Detail

SBC_LibraryView

public SBC_LibraryView()
Method Detail

setViewMode

public void setViewMode(int viewMode,
                        boolean save)

skinObjectInitialShow

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

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

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

skinObjectHidden

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

Overrides:
skinObjectHidden in class SkinView

dataSourceChanged

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

getViewMode

public int getViewMode()

addHeaderInfoExtender

protected void addHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)

removeHeaderInfoExtender

protected void removeHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)

refreshHeaderInfo

protected void refreshHeaderInfo()