uk.ac.soton.itinnovation.grid.client.swing
Class AbstractConversationBrowserPlugin

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.swing.AbstractConversationBrowserPlugin
All Implemented Interfaces:
ConversationBrowserPlugin
Direct Known Subclasses:
AccessControlPlugin, AccountClientPluginSwing, CltMgtRegistryClientPluginSwing, DataClientPluginSwing, JobClientPluginSwing, MembershipClientPluginSwing, OgsaDaiClientPluginSwing, SampleClientPluginSwing, SLAClientPluginSwing, UnrecognisedResourcePlugin

public abstract class AbstractConversationBrowserPlugin
extends Object
implements ConversationBrowserPlugin

Base class that supplies defaults for all the plugin methods.


Field Summary
protected  ConversationBrowser browser
           
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.client.swing.ConversationBrowserPlugin
PROVIDER_RESOURCE_NAME
 
Constructor Summary
AbstractConversationBrowserPlugin()
           
 
Method Summary
 void addFilters()
          Add Filters for this Plugin
protected  void addFilters(ConversationBrowser browser)
          Deprecated. 
protected  void addPluginMenu(ConversationBrowser browser, JMenu menu)
          Deprecated. 
 void addPluginMenu(JMenu menu)
          Add Menu for this Plugin
 void addProperties(ResourcePropertiesPanel panel)
          Create a Panel to display a resource
 int compare(StorableInStateRepository s1, StorableInStateRepository s2)
          Compare.
protected  boolean doDoubleClick(ConversationBrowser browser, StorableInStateRepository resource)
          Deprecated. 
 boolean doDoubleClick(StorableInStateRepository resource)
          Do a double click on a resource.
protected  boolean doDragDrop(ConversationBrowser browser, Object source, Object target)
          Deprecated. 
 boolean doDragDrop(Object source, Object target)
          Object 'source' has been dragged on to 'target'.
protected  String getState(ConversationBrowser browser, StorableInStateRepository s)
          Deprecated. 
 String getState(StorableInStateRepository s)
          gets the status of a resource
protected  Icon getTreeIcon(ConversationBrowser browser, StorableInStateRepository resource)
          Deprecated. 
 Icon getTreeIcon(org.apache.axis.message.addressing.EndpointReferenceType resource)
           
 void init(ConversationBrowser browser)
          Called once to initialise the plugin.
protected  void showPopupMenu(ConversationBrowser browser, JPopupMenu menu, Object[] items)
          Deprecated. 
 void showPopupMenu(JPopupMenu menu, Class<?> commonInterface, org.apache.axis.message.addressing.EndpointReferenceType[] items)
          Add extra menu items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

browser

protected ConversationBrowser browser
Constructor Detail

AbstractConversationBrowserPlugin

public AbstractConversationBrowserPlugin()
Method Detail

init

public void init(ConversationBrowser browser)
Description copied from interface: ConversationBrowserPlugin
Called once to initialise the plugin.

Specified by:
init in interface ConversationBrowserPlugin

showPopupMenu

public void showPopupMenu(JPopupMenu menu,
                          Class<?> commonInterface,
                          org.apache.axis.message.addressing.EndpointReferenceType[] items)
Description copied from interface: ConversationBrowserPlugin
Add extra menu items. This is called when the user opens the popup menu. All selected items have the same class.

Specified by:
showPopupMenu in interface ConversationBrowserPlugin
Parameters:
menu - the menu being created
commonInterface - an interface that all the items implement (usually the interface of the first item)
items - the objects currently selected

addProperties

public void addProperties(ResourcePropertiesPanel panel)
Description copied from interface: ConversationBrowserPlugin
Create a Panel to display a resource

Specified by:
addProperties in interface ConversationBrowserPlugin

doDoubleClick

public boolean doDoubleClick(StorableInStateRepository resource)
Description copied from interface: ConversationBrowserPlugin
Do a double click on a resource.

Specified by:
doDoubleClick in interface ConversationBrowserPlugin
Returns:
true if the click was handled

getTreeIcon

public Icon getTreeIcon(org.apache.axis.message.addressing.EndpointReferenceType resource)
Specified by:
getTreeIcon in interface ConversationBrowserPlugin

doDragDrop

public boolean doDragDrop(Object source,
                          Object target)
Description copied from interface: ConversationBrowserPlugin
Object 'source' has been dragged on to 'target'. Source and target are often, but not always, of type StorableInStateRepository.

Specified by:
doDragDrop in interface ConversationBrowserPlugin
Parameters:
source - the item being dropped, this may be another object in the repository, a URI, a local File, etc.
target - the item which source was dropped on
Returns:
true if the drag has been handled, or false to try other handlers

addFilters

public void addFilters()
Description copied from interface: ConversationBrowserPlugin
Add Filters for this Plugin

Specified by:
addFilters in interface ConversationBrowserPlugin

addPluginMenu

public void addPluginMenu(JMenu menu)
Description copied from interface: ConversationBrowserPlugin
Add Menu for this Plugin

Specified by:
addPluginMenu in interface ConversationBrowserPlugin

compare

public int compare(StorableInStateRepository s1,
                   StorableInStateRepository s2)
Description copied from interface: ConversationBrowserPlugin
Compare.

Specified by:
compare in interface ConversationBrowserPlugin

getState

public String getState(StorableInStateRepository s)
Description copied from interface: ConversationBrowserPlugin
gets the status of a resource

Specified by:
getState in interface ConversationBrowserPlugin

showPopupMenu

@Deprecated
protected final void showPopupMenu(ConversationBrowser browser,
                                              JPopupMenu menu,
                                              Object[] items)
Deprecated. 


doDoubleClick

@Deprecated
protected final boolean doDoubleClick(ConversationBrowser browser,
                                                 StorableInStateRepository resource)
Deprecated. 


getTreeIcon

@Deprecated
protected final Icon getTreeIcon(ConversationBrowser browser,
                                            StorableInStateRepository resource)
Deprecated. 


doDragDrop

@Deprecated
protected final boolean doDragDrop(ConversationBrowser browser,
                                              Object source,
                                              Object target)
Deprecated. 


addFilters

@Deprecated
protected final void addFilters(ConversationBrowser browser)
Deprecated. 


addPluginMenu

@Deprecated
protected final void addPluginMenu(ConversationBrowser browser,
                                              JMenu menu)
Deprecated. 


getState

@Deprecated
protected final String getState(ConversationBrowser browser,
                                           StorableInStateRepository s)
Deprecated. 



Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.