com.aelitis.azureus.plugins.net.buddy.swt
Class BuddyPluginViewInstance

java.lang.Object
  extended by com.aelitis.azureus.plugins.net.buddy.swt.BuddyPluginViewInstance
All Implemented Interfaces:
BuddyPluginBuddyRequestListener, BuddyPluginListener

public class BuddyPluginViewInstance
extends Object
implements BuddyPluginListener, BuddyPluginBuddyRequestListener


Nested Class Summary
protected  class BuddyPluginViewInstance.FilterComparator
           
 
Constructor Summary
protected BuddyPluginViewInstance(BuddyPluginView _view, BuddyPlugin _plugin, UIInstance _ui_instance, org.eclipse.swt.widgets.Composite _composite)
           
 
Method Summary
 void buddyAdded(BuddyPluginBuddy buddy)
           
 void buddyChanged(BuddyPluginBuddy buddy)
           
 void buddyRemoved(BuddyPluginBuddy buddy)
           
protected  void destroy()
           
 void enabledStateChanged(boolean enabled)
           
 void initialised(boolean available)
           
 void messageLogged(String str, boolean error)
           
 void pendingMessages(BuddyPluginBuddy[] from_buddies)
           
protected  void print(String str)
           
protected  void print(String str, int log_type, boolean clear_first, boolean log_to_plugin)
           
protected  void print(String str, Throwable e)
           
protected  String readFromClipboard()
           
 Map requestReceived(BuddyPluginBuddy from_buddy, int subsystem, Map request)
          Request receieved for a buddy.
 void updated()
           
protected  void updateTable()
           
protected  void writeToClipboard(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuddyPluginViewInstance

protected BuddyPluginViewInstance(BuddyPluginView _view,
                                  BuddyPlugin _plugin,
                                  UIInstance _ui_instance,
                                  org.eclipse.swt.widgets.Composite _composite)
Method Detail

readFromClipboard

protected String readFromClipboard()

writeToClipboard

protected void writeToClipboard(String str)

updateTable

protected void updateTable()

initialised

public void initialised(boolean available)
Specified by:
initialised in interface BuddyPluginListener

buddyAdded

public void buddyAdded(BuddyPluginBuddy buddy)
Specified by:
buddyAdded in interface BuddyPluginListener

buddyRemoved

public void buddyRemoved(BuddyPluginBuddy buddy)
Specified by:
buddyRemoved in interface BuddyPluginListener

buddyChanged

public void buddyChanged(BuddyPluginBuddy buddy)
Specified by:
buddyChanged in interface BuddyPluginListener

messageLogged

public void messageLogged(String str,
                          boolean error)
Specified by:
messageLogged in interface BuddyPluginListener

enabledStateChanged

public void enabledStateChanged(boolean enabled)
Specified by:
enabledStateChanged in interface BuddyPluginListener

updated

public void updated()
Specified by:
updated in interface BuddyPluginListener

requestReceived

public Map requestReceived(BuddyPluginBuddy from_buddy,
                           int subsystem,
                           Map request)
                    throws BuddyPluginException
Description copied from interface: BuddyPluginBuddyRequestListener
Request receieved for a buddy. If the buddy is not authorised then the BuddyPluginBuddy is transient and should only be used for the duration of this request. Use outside of this context is undefined. If you want to authorise a transient buddy then you need to call BuddyPlugin.addBuddy with the required public key

Specified by:
requestReceived in interface BuddyPluginBuddyRequestListener
Returns:
Throws:
BuddyPluginException

pendingMessages

public void pendingMessages(BuddyPluginBuddy[] from_buddies)
Specified by:
pendingMessages in interface BuddyPluginBuddyRequestListener

print

protected void print(String str,
                     Throwable e)

print

protected void print(String str)

print

protected void print(String str,
                     int log_type,
                     boolean clear_first,
                     boolean log_to_plugin)

destroy

protected void destroy()