Class SBC_SubscriptionResultsView
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
com.biglybt.ui.swt.views.skin.SkinView
com.biglybt.ui.swt.subscriptions.SBC_SubscriptionResultsView
- All Implemented Interfaces:
SubscriptionListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableViewFilterCheck<SubscriptionResultFilterable>, UIUpdatable, SWTSkinObjectListener
public class SBC_SubscriptionResultsView
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<SubscriptionResultFilterable>, SubscriptionListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static LinkedList<MdiEntrySWT> private static TableViewSWT.ColorRequesterprivate static booleanprivate Subscriptionprivate SubscriptionResultFilterprivate longprivate final Objectprivate final Objectprivate List<SubscriptionResultFilterable> private MdiEntrySWTprivate Runnableprivate FrequencyLimitedDispatcherprivate org.eclipse.swt.widgets.Compositestatic final Stringprivate TableViewSWT<SubscriptionResultFilterable> Fields inherited from interface SubscriptionListener
CR_METADATA, CR_RESULTSFields 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 TypeMethodDescriptionprivate voiddataSourceChanged(SWTSkinObject skinObject, Object params) booleanfilterCheck(SubscriptionResultFilterable ds, String filter, boolean regex, boolean confusable) voidprivate StringA name for this UIUpdatable so we can track who's being badprivate voidhideView()private voidinitColumns(Core core) private voidinitTable(org.eclipse.swt.widgets.Composite control) private booleanprivate voidreconcileResults(Subscription subs) protected voidrefilter()voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate voidshowView()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 shownvoidsubscriptionChanged(Subscription subs, int reason) voidbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidupdateUI()Update your UI!private voiduserDelete(SubscriptionResultFilterable[] results) 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 TableViewFilterCheck
filterCheck, filterSet, setRefilterCache, viewChangedMethods inherited from interface UIPluginViewToolBarListener
isActive
-
Field Details
-
TABLE_SR
- See Also:
-
FILTER_KEY
-
columnsAdded
private static boolean columnsAdded -
colour_requester
-
activated_views
-
tv_subs_results
-
col_filter_helper
-
mdi_entry
-
table_parent
private org.eclipse.swt.widgets.Composite table_parent -
filter_lock
-
refilter_dispatcher
-
ds
-
ds_filter
-
pFilterUpdater
-
ds_filter_version
private long ds_filter_version -
last_selected_content
-
-
Constructor Details
-
SBC_SubscriptionResultsView
public SBC_SubscriptionResultsView()
-
-
Method Details
-
skinObjectInitialShow
- Specified by:
skinObjectInitialShowin classSkinView- Parameters:
skinObject-params-- Returns:
-
addLine
-
getString
-
isOurContent
-
refilter
protected void refilter() -
initColumns
-
dataSourceChanged
- Overrides:
dataSourceChangedin classSWTSkinObjectAdapter
-
subscriptionChanged
- Specified by:
subscriptionChangedin interfaceSubscriptionListener
-
reconcileResults
-
subscriptionDownloaded
- Specified by:
subscriptionDownloadedin interfaceSubscriptionListener
-
showView
private void showView() -
hideView
private void hideView() -
skinObjectShown
Description copied from class:SWTSkinObjectAdapterSkin Object was shown- Overrides:
skinObjectShownin classSkinView
-
skinObjectHidden
Description copied from class:SWTSkinObjectAdapterSkin Object was hidden- Overrides:
skinObjectHiddenin classSkinView
-
skinObjectDestroyed
Description copied from class:SWTSkinObjectAdapterSkin Object was destroyed- Overrides:
skinObjectDestroyedin classSkinView
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control) -
userDelete
-
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
-
filterCheck
public boolean filterCheck(SubscriptionResultFilterable ds, String filter, boolean regex, boolean confusable) - Specified by:
filterCheckin interfaceTableViewFilterCheck<SubscriptionResultFilterable>
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<SubscriptionResultFilterable>
-
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-
-
getDownloadURI
-