Package com.biglybt.ui.swt.subscriptions
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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UISWTView
protected static final String
private org.eclipse.swt.graphics.Font
private org.eclipse.swt.graphics.Font
private org.eclipse.swt.graphics.Font
private TableViewSWT
<Subscription> private org.eclipse.swt.widgets.Composite
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
associationsChanged
(byte[] association_hash) private void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursboolean
filterCheck
(Subscription ds, String filter, boolean regex, boolean confusable) void
private org.eclipse.swt.widgets.Composite
private String
private void
initialize
(org.eclipse.swt.widgets.Composite parent) private void
refresh()
void
refreshToolBarItems
(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate void
private void
removeSubs
(Subscription[] toRemove, int startIndex) void
subscriptionAdded
(Subscription subscription) void
subscriptionChanged
(Subscription subscription, int reason) void
subscriptionRemoved
(Subscription subscription) void
subscriptionRequested
(URL url, Map<String, Object> options) void
subscriptionSelected
(Subscription subscription) boolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
filterCheck
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
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
-
-
Constructor Details
-
SubscriptionsView
public SubscriptionsView()
-
-
Method Details
-
associationsChanged
public void associationsChanged(byte[] association_hash) - Specified by:
associationsChanged
in interfaceSubscriptionManagerListener
-
subscriptionSelected
- Specified by:
subscriptionSelected
in interfaceSubscriptionManagerListener
-
subscriptionRequested
- Specified by:
subscriptionRequested
in interfaceSubscriptionManagerListener
-
subscriptionAdded
- Specified by:
subscriptionAdded
in interfaceSubscriptionManagerListener
-
subscriptionRemoved
- Specified by:
subscriptionRemoved
in interfaceSubscriptionManagerListener
-
subscriptionChanged
- Specified by:
subscriptionChanged
in interfaceSubscriptionManagerListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
- Parameters:
list
-
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in 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:
filterCheck
in interfaceTableViewFilterCheck<Subscription>
-
filterSet
- Specified by:
filterSet
in interfaceTableViewFilterCheck<Subscription>
-
refresh
private void refresh() -
eventOccurred
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-