Package com.biglybt.ui.swt.views.skin
Class SBC_LibraryTableView
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
-
- com.biglybt.ui.swt.views.skin.SkinView
-
- com.biglybt.ui.swt.views.skin.SBC_LibraryTableView
-
- All Implemented Interfaces:
UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,UIUpdatable
,ObfuscateImage
,SWTSkinObjectListener
- Direct Known Subclasses:
SBC_LibraryTableView_Big
public class SBC_LibraryTableView extends SkinView implements UIUpdatable, ObfuscateImage, UIPluginViewToolBarListener
Classic My Torrents view wrapped in a SkinView
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ID
protected java.lang.Object
initialDataSource
private SWTSkinObject
soParent
private UISWTViewEventListener
swtViewListener
protected int
torrentFilterMode
private MyTorrentsView
torrentView
private TableViewSWT<?>
tv
private UISWTViewImpl
view
private org.eclipse.swt.widgets.Composite
viewComposite
-
Fields inherited from interface com.biglybt.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMES
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description SBC_LibraryTableView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
doDefaultClick(TableRowCore[] rows, int stateMask, boolean neverPlay, int origin)
protected TableColumnCore[]
getColumns()
Returns the appropriate set of columns for the completed or incomplete torrents views Subclasses may override to return different sets of columnsprivate TableColumnCore[]
getColumnsSupport()
protected int
getTableMode()
Return either MODE_SMALLTABLE or MODE_BIGTABLE Subclasses may overridejava.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badvoid
initShow(Core core)
org.eclipse.swt.graphics.Image
obfuscatedImage(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 setjava.lang.Object
skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was destroyedjava.lang.Object
skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was hiddenjava.lang.Object
skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
java.lang.Object
skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was shownboolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
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.biglybt.ui.swt.views.skin.SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated
-
Methods inherited from class com.biglybt.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
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
Field Detail
-
ID
private static final java.lang.String ID
- See Also:
- Constant Field Values
-
viewComposite
private org.eclipse.swt.widgets.Composite viewComposite
-
tv
private TableViewSWT<?> tv
-
torrentFilterMode
protected int torrentFilterMode
-
initialDataSource
protected java.lang.Object initialDataSource
-
soParent
private SWTSkinObject soParent
-
torrentView
private MyTorrentsView torrentView
-
swtViewListener
private UISWTViewEventListener swtViewListener
-
view
private UISWTViewImpl view
-
-
Method Detail
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
initShow
public void initShow(Core core)
-
doDefaultClick
public static void doDefaultClick(TableRowCore[] rows, int stateMask, boolean neverPlay, int origin)
-
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 interfaceUIUpdatable
- Returns:
- some name
-
updateUI
public void updateUI()
Description copied from interface:UIUpdatable
Update your UI!- Specified by:
updateUI
in interfaceUIUpdatable
-
skinObjectShown
public java.lang.Object skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was shown- Overrides:
skinObjectShown
in classSkinView
-
skinObjectHidden
public java.lang.Object skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was hidden- Overrides:
skinObjectHidden
in classSkinView
-
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 interfaceUIPluginViewToolBarListener
-
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 interfaceUIToolBarActivationListener
-
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:
-
getColumnsSupport
private TableColumnCore[] getColumnsSupport()
-
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 classSkinView
-
obfuscatedImage
public org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image)
- Specified by:
obfuscatedImage
in interfaceObfuscateImage
-
-