Package com.biglybt.ui.swt.subscriptions
Class SubscriptionsView
- java.lang.Object
-
- com.biglybt.ui.swt.subscriptions.SubscriptionsView
-
- All Implemented Interfaces:
SubscriptionManagerListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,UISWTViewEventListener
,UISWTViewCoreEventListener
public class SubscriptionsView extends java.lang.Object implements SubscriptionManagerListener, UIPluginViewToolBarListener, UISWTViewCoreEventListener
-
-
Field Summary
Fields Modifier and Type Field Description private UISWTView
swtView
protected static java.lang.String
TABLE_ID
private org.eclipse.swt.graphics.Font
textFont1
private org.eclipse.swt.graphics.Font
textFont2
private TableViewSWT
view
private org.eclipse.swt.widgets.Composite
viewComposite
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description SubscriptionsView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
associationsChanged(byte[] association_hash)
private void
delete()
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate org.eclipse.swt.widgets.Composite
getComposite()
private java.lang.String
getFullTitle()
private void
initialize(org.eclipse.swt.widgets.Composite parent)
private void
refresh()
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
removeSelected()
private void
removeSubs(Subscription[] toRemove, int startIndex)
void
subscriptionAdded(Subscription subscription)
void
subscriptionChanged(Subscription subscription)
void
subscriptionRemoved(Subscription subscription)
void
subscriptionRequested(java.net.URL url, java.util.Map<java.lang.String,java.lang.Object> options)
void
subscriptionSelected(Subscription subscription)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItem-
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_ID
protected static final java.lang.String TABLE_ID
- See Also:
- Constant Field Values
-
view
private TableViewSWT view
-
viewComposite
private org.eclipse.swt.widgets.Composite viewComposite
-
textFont1
private org.eclipse.swt.graphics.Font textFont1
-
textFont2
private org.eclipse.swt.graphics.Font textFont2
-
swtView
private UISWTView swtView
-
-
Method Detail
-
associationsChanged
public void associationsChanged(byte[] association_hash)
- Specified by:
associationsChanged
in interfaceSubscriptionManagerListener
-
subscriptionSelected
public void subscriptionSelected(Subscription subscription)
- Specified by:
subscriptionSelected
in interfaceSubscriptionManagerListener
-
subscriptionRequested
public void subscriptionRequested(java.net.URL url, java.util.Map<java.lang.String,java.lang.Object> options)
- Specified by:
subscriptionRequested
in interfaceSubscriptionManagerListener
-
subscriptionAdded
public void subscriptionAdded(Subscription subscription)
- Specified by:
subscriptionAdded
in interfaceSubscriptionManagerListener
-
subscriptionRemoved
public void subscriptionRemoved(Subscription subscription)
- Specified by:
subscriptionRemoved
in interfaceSubscriptionManagerListener
-
subscriptionChanged
public void subscriptionChanged(Subscription subscription)
- Specified by:
subscriptionChanged
in interfaceSubscriptionManagerListener
-
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
-
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
-
removeSelected
private void removeSelected()
-
removeSubs
private void removeSubs(Subscription[] toRemove, int startIndex)
-
delete
private void delete()
-
getComposite
private org.eclipse.swt.widgets.Composite getComposite()
-
getFullTitle
private java.lang.String getFullTitle()
-
initialize
private void initialize(org.eclipse.swt.widgets.Composite parent)
-
refresh
private void refresh()
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
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
-
-