Class SBC_ArchivedDownloadsView
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
com.biglybt.ui.swt.views.skin.SkinView
com.biglybt.ui.swt.views.skin.SBC_ArchivedDownloadsView
- All Implemented Interfaces:
DownloadStubListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableSelectionListener, TableViewFilterCheck<DownloadStub>, UIUpdatable, SWTSkinObjectListener, TableViewSWTMenuFillListener
public class SBC_ArchivedDownloadsView
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<DownloadStub>, TableViewSWTMenuFillListener, TableSelectionListener, DownloadStubListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Objectprivate booleanstatic final Class<DownloadStub> private static final Stringprivate org.eclipse.swt.widgets.Composite(package private) TableViewSWT<DownloadStub> Fields 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 TypeMethodDescriptionvoidaddThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.dataSourceChanged(SWTSkinObject skinObject, Object params) voiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) voidvoidbooleanfilterCheck(DownloadStub ds, String filter, boolean regex, boolean confusable) voidvoidfocusChanged(TableRowCore focus) A name for this UIUpdatable so we can track who's being badprotected voidprivate voidinitTable(org.eclipse.swt.widgets.Composite control) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate static voidvoidselected(TableRowCore[] row) skinObjectDestroyed(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!Methods inherited from class SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreatedMethods inherited from class SWTSkinObjectAdapter
eventOccured, skinObjectSelected, updateLanguageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableSelectionListener
defaultSelected, focusRequested, selectionChangedMethods inherited from interface TableViewFilterCheck
filterCheck, filterSet, setRefilterCache, viewChangedMethods inherited from interface UIPluginViewToolBarListener
isActive
-
Field Details
-
TABLE_NAME
- See Also:
-
PLUGIN_DS_TYPE
-
tv
-
table_parent
private org.eclipse.swt.widgets.Composite table_parent -
columnsAdded
private boolean columnsAdded -
dm_listener_added
private boolean dm_listener_added -
datasource
-
-
Constructor Details
-
SBC_ArchivedDownloadsView
public SBC_ArchivedDownloadsView()
-
-
Method Details
-
skinObjectInitialShow
- Specified by:
skinObjectInitialShowin classSkinView- Parameters:
skinObject-params-- Returns:
-
initColumns
protected void initColumns() -
skinObjectHidden
Description copied from class:SWTSkinObjectAdapterSkin Object was hidden- Overrides:
skinObjectHiddenin classSkinView
-
skinObjectShown
Description copied from class:SWTSkinObjectAdapterSkin Object was shown- Overrides:
skinObjectShownin classSkinView
-
skinObjectDestroyed
Description copied from class:SWTSkinObjectAdapterSkin Object was destroyed- Overrides:
skinObjectDestroyedin classSkinView
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control) -
registerPluginViews
private static void registerPluginViews() -
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
updateUI
public void updateUI()Description copied from interface:UIUpdatableUpdate your UI!- Specified by:
updateUIin interfaceUIUpdatable
-
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
-
addThisColumnSubMenu
Description copied from interface:TableViewSWTMenuFillListenerCreate a SubMenu for column specific tasks. Everytime the user opens the context menu, the "This Column" submenu is cleared, and this function is called to refill it.- Specified by:
addThisColumnSubMenuin interfaceTableViewSWTMenuFillListener- Parameters:
columnName- The name of the column the user clicked onmenuThisColumn- the menu to fill with MenuItems
-
fillMenu
- Specified by:
fillMenuin interfaceTableViewSWTMenuFillListener
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
downloadStubEventOccurred
- Specified by:
downloadStubEventOccurredin interfaceDownloadStubListener- Throws:
DownloadException
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<DownloadStub>
-
filterCheck
- Specified by:
filterCheckin interfaceTableViewFilterCheck<DownloadStub>
-
dataSourceChanged
- Overrides:
dataSourceChangedin classSWTSkinObjectAdapter
-