org.gudy.azureus2.ui.swt.views
Class GeneralView

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.GeneralView
All Implemented Interfaces:
ParameterListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener, UISWTViewCoreEventListenerEx

public class GeneralView
extends java.lang.Object
implements ParameterListener, UISWTViewCoreEventListenerEx, UIPluginViewToolBarListener

View of General information on the torrent

See also {SBC_TorrentDetailsView}

Author:
Olivier

Field Summary
static java.lang.String MSGID_PREFIX
           
protected  AEMonitor this_mon
           
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Constructor Summary
GeneralView()
          Initialize GeneralView
 
Method Summary
 void dataSourceChanged(java.lang.Object newDataSource)
           
 void delete()
           
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
 UISWTViewCoreEventListener getClone()
           
 org.eclipse.swt.widgets.Composite getComposite()
           
 void initialize(org.eclipse.swt.widgets.Composite composite)
           
 boolean isCloneable()
           
 void parameterChanged(java.lang.String parameterName)
          Called, when a parameter has changed.
 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 set
 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
 

Field Detail

MSGID_PREFIX

public static final java.lang.String MSGID_PREFIX
See Also:
Constant Field Values

this_mon

protected AEMonitor this_mon
Constructor Detail

GeneralView

public GeneralView()
Initialize GeneralView

Method Detail

dataSourceChanged

public void dataSourceChanged(java.lang.Object newDataSource)

isCloneable

public boolean isCloneable()
Specified by:
isCloneable in interface UISWTViewCoreEventListenerEx

getClone

public UISWTViewCoreEventListener getClone()
Specified by:
getClone in interface UISWTViewCoreEventListenerEx

initialize

public void initialize(org.eclipse.swt.widgets.Composite composite)

getComposite

public org.eclipse.swt.widgets.Composite getComposite()

refresh

public void refresh()

delete

public void delete()

parameterChanged

public void parameterChanged(java.lang.String parameterName)
Description copied from interface: ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.

Specified by:
parameterChanged in interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed

eventOccurred

public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface: UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs

Specified by:
eventOccurred in interface UISWTViewEventListener
Parameters:
event - event that occurred
Returns:
meaning dependent upon event type

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 interface UIToolBarActivationListener

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 interface UIPluginViewToolBarListener