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 Stringprotected Objectprivate SWTSkinObjectprivate UISWTViewEventListenerprotected intprivate MyTorrentsViewprivate TableViewSWT<?> private UISWTViewImplprivate org.eclipse.swt.widgets.CompositeFields inherited from interface SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMESFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoDefaultClick(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 intReturn either MODE_SMALLTABLE or MODE_BIGTABLE Subclasses may overrideA name for this UIUpdatable so we can track who's being badvoidorg.eclipse.swt.graphics.ImageobfuscatedImage(org.eclipse.swt.graphics.Image image) voidrefreshToolBarItems(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 shownbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidupdateUI()Update your UI!protected booleanReturns whether the big version of the tables should be used Subclasses may overrideMethods inherited from class SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreatedMethods inherited from class SWTSkinObjectAdapter
dataSourceChanged, eventOccured, skinObjectSelected, updateLanguageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
skinObjectInitialShowin classSkinView- Parameters:
skinObject-params-- Returns:
-
initShow
-
doDefaultClick
public static void doDefaultClick(TableRowCore[] rows, int stateMask, boolean neverPlay, int origin) -
getUpdateUIName
Description copied from interface:UIUpdatableA name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUINamein interfaceUIUpdatable- Returns:
- some name
-
updateUI
public void updateUI()Description copied from interface:UIUpdatableUpdate your UI!- Specified by:
updateUIin interfaceUIUpdatable
-
skinObjectShown
Description copied from class:SWTSkinObjectAdapterSkin Object was shown- Overrides:
skinObjectShownin classSkinView
-
skinObjectHidden
Description copied from class:SWTSkinObjectAdapterSkin Object was hidden- Overrides:
skinObjectHiddenin classSkinView
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin 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:SWTSkinObjectAdapterSkin Object was destroyed- Overrides:
skinObjectDestroyedin classSkinView
-
obfuscatedImage
public org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image) - Specified by:
obfuscatedImagein interfaceObfuscateImage
-