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
FieldsModifier and TypeFieldDescriptionprivate static final String
protected Object
private SWTSkinObject
private UISWTViewEventListener
protected int
private MyTorrentsView
private TableViewSWT<?>
private UISWTViewImpl
private org.eclipse.swt.widgets.Composite
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
doDefaultClick
(TableRowCore[] rows, int stateMask, boolean neverPlay, int origin) protected TableColumnCore[]
Returns the appropriate set of columns for the completed or incomplete torrents views Subclasses may override to return different sets of columnsprivate TableColumnCore[]
protected int
Return either MODE_SMALLTABLE or MODE_BIGTABLE Subclasses may overrideA name for this UIUpdatable so we can track who's being badvoid
org.eclipse.swt.graphics.Image
obfuscatedImage
(org.eclipse.swt.graphics.Image image) void
refreshToolBarItems
(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setskinObjectDestroyed
(SWTSkinObject skinObject, Object params) Skin Object was destroyedskinObjectHidden
(SWTSkinObject skinObject, Object params) Skin Object was hiddenskinObjectInitialShow
(SWTSkinObject skinObject, Object params) skinObjectShown
(SWTSkinObject skinObject, Object params) Skin Object was shownboolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoid
updateUI()
Update your UI!protected boolean
Returns whether the big version of the tables should be used Subclasses may overrideMethods 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 Details
-
ID
- See Also:
-
viewComposite
private org.eclipse.swt.widgets.Composite viewComposite -
tv
-
torrentFilterMode
protected int torrentFilterMode -
initialDataSource
-
soParent
-
torrentView
-
swtViewListener
-
view
-
-
Constructor Details
-
SBC_LibraryTableView
public SBC_LibraryTableView()
-
-
Method Details
-
skinObjectInitialShow
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
initShow
-
doDefaultClick
public static void doDefaultClick(TableRowCore[] rows, int stateMask, boolean neverPlay, int origin) -
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
Description copied from class:SWTSkinObjectAdapter
Skin Object was shown- Overrides:
skinObjectShown
in classSkinView
-
skinObjectHidden
Description copied from class:SWTSkinObjectAdapter
Skin Object was hidden- Overrides:
skinObjectHidden
in classSkinView
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
-
toolBarItemActivated
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
-
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
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
-