Package com.biglybt.ui.swt.subscriptions
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
-
-
Field Summary
Fields Modifier and Type Field Description private static TableViewSWT.ColorRequester
colour_requester
private static boolean
columnsAdded
private Subscription
ds
private SubscriptionResultFilter
ds_filter
private java.lang.Object
filter_lock
private java.util.List<SubscriptionResultFilterable>
last_selected_content
private MdiEntry
mdi_entry
private FrequencyLimitedDispatcher
refilter_dispatcher
private org.eclipse.swt.widgets.Composite
table_parent
static java.lang.String
TABLE_SR
private TableViewSWT<SubscriptionResultFilterable>
tv_subs_results
-
Fields inherited from interface com.biglybt.core.subs.SubscriptionListener
CR_METADATA, CR_RESULTS
-
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_SubscriptionResultsView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
boolean
filterCheck(SubscriptionResultFilterable ds, java.lang.String filter, boolean regex)
void
filterSet(java.lang.String filter)
java.lang.String
getDownloadURI(SubscriptionResultFilterable result)
private java.lang.String
getString(java.lang.String[] strs)
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badprivate void
hideView()
private void
initColumns(Core core)
private void
initTable(org.eclipse.swt.widgets.Composite control)
private boolean
isOurContent(SubscriptionResultFilterable result)
private void
reconcileResults(Subscription subs)
protected void
refilter()
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setprivate void
showView()
java.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 shownvoid
subscriptionChanged(Subscription subs, int reason)
void
subscriptionDownloaded(Subscription subs)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
updateUI()
Update your UI!private void
userDelete(SubscriptionResultFilterable[] results)
-
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
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
-
TABLE_SR
public static final java.lang.String TABLE_SR
- See Also:
- Constant Field Values
-
columnsAdded
private static boolean columnsAdded
-
colour_requester
private static TableViewSWT.ColorRequester colour_requester
-
tv_subs_results
private TableViewSWT<SubscriptionResultFilterable> tv_subs_results
-
mdi_entry
private MdiEntry mdi_entry
-
table_parent
private org.eclipse.swt.widgets.Composite table_parent
-
filter_lock
private final java.lang.Object filter_lock
-
refilter_dispatcher
private FrequencyLimitedDispatcher refilter_dispatcher
-
ds
private Subscription ds
-
ds_filter
private SubscriptionResultFilter ds_filter
-
last_selected_content
private java.util.List<SubscriptionResultFilterable> last_selected_content
-
-
Method Detail
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
getString
private java.lang.String getString(java.lang.String[] strs)
-
isOurContent
private boolean isOurContent(SubscriptionResultFilterable result)
-
refilter
protected void refilter()
-
initColumns
private void initColumns(Core core)
-
dataSourceChanged
public java.lang.Object dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
- Overrides:
dataSourceChanged
in classSWTSkinObjectAdapter
-
subscriptionChanged
public void subscriptionChanged(Subscription subs, int reason)
- Specified by:
subscriptionChanged
in interfaceSubscriptionListener
-
reconcileResults
private void reconcileResults(Subscription subs)
-
subscriptionDownloaded
public void subscriptionDownloaded(Subscription subs)
- Specified by:
subscriptionDownloaded
in interfaceSubscriptionListener
-
showView
private void showView()
-
hideView
private void hideView()
-
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
-
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
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control)
-
userDelete
private void userDelete(SubscriptionResultFilterable[] results)
-
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
-
filterCheck
public boolean filterCheck(SubscriptionResultFilterable ds, java.lang.String filter, boolean regex)
- Specified by:
filterCheck
in interfaceTableViewFilterCheck<SubscriptionResultFilterable>
-
filterSet
public void filterSet(java.lang.String filter)
- Specified by:
filterSet
in interfaceTableViewFilterCheck<SubscriptionResultFilterable>
-
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
-
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
-
getDownloadURI
public java.lang.String getDownloadURI(SubscriptionResultFilterable result)
-
-