Class SubscriptionsView
java.lang.Object
com.biglybt.ui.swt.subscriptions.SubscriptionsView
- All Implemented Interfaces:
SubscriptionManagerListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableViewFilterCheck<Subscription>, UISWTViewEventListener, UISWTViewCoreEventListener
public class SubscriptionsView
extends Object
implements SubscriptionManagerListener, UIPluginViewToolBarListener, UISWTViewCoreEventListener, TableViewFilterCheck<Subscription>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TableColumnFilterHelper<Subscription> private UISWTViewprotected static final Stringprivate org.eclipse.swt.graphics.Fontprivate org.eclipse.swt.graphics.Fontprivate org.eclipse.swt.graphics.Fontprivate TableViewSWT<Subscription> private org.eclipse.swt.widgets.CompositeFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassociationsChanged(byte[] association_hash) private voiddelete()booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursbooleanfilterCheck(Subscription ds, String filter, boolean regex, boolean confusable) voidprivate org.eclipse.swt.widgets.Compositeprivate Stringprivate voidinitialize(org.eclipse.swt.widgets.Composite parent) private voidrefresh()voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate voidprivate voidremoveSubs(Subscription[] toRemove, int startIndex) voidsubscriptionAdded(Subscription subscription) voidsubscriptionChanged(Subscription subscription, int reason) voidsubscriptionRemoved(Subscription subscription) voidsubscriptionRequested(URL url, Map<String, Object> options) voidsubscriptionSelected(Subscription subscription) booleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemMethods 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
isActiveMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicates
-
Field Details
-
TABLE_ID
- See Also:
-
view
-
viewComposite
private org.eclipse.swt.widgets.Composite viewComposite -
textFont0
private org.eclipse.swt.graphics.Font textFont0 -
textFont1
private org.eclipse.swt.graphics.Font textFont1 -
textFont2
private org.eclipse.swt.graphics.Font textFont2 -
swtView
-
col_filter_helper
-
-
Constructor Details
-
SubscriptionsView
public SubscriptionsView()
-
-
Method Details
-
associationsChanged
public void associationsChanged(byte[] association_hash) - Specified by:
associationsChangedin interfaceSubscriptionManagerListener
-
subscriptionSelected
- Specified by:
subscriptionSelectedin interfaceSubscriptionManagerListener
-
subscriptionRequested
- Specified by:
subscriptionRequestedin interfaceSubscriptionManagerListener
-
subscriptionAdded
- Specified by:
subscriptionAddedin interfaceSubscriptionManagerListener
-
subscriptionRemoved
- Specified by:
subscriptionRemovedin interfaceSubscriptionManagerListener
-
subscriptionChanged
- Specified by:
subscriptionChangedin interfaceSubscriptionManagerListener
-
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
-
removeSelected
private void removeSelected() -
removeSubs
-
delete
private void delete() -
getComposite
private org.eclipse.swt.widgets.Composite getComposite() -
getFullTitle
-
initialize
private void initialize(org.eclipse.swt.widgets.Composite parent) -
filterCheck
- Specified by:
filterCheckin interfaceTableViewFilterCheck<Subscription>
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<Subscription>
-
refresh
private void refresh() -
eventOccurred
Description copied from interface:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-