uk.ac.soton.itinnovation.grid.client.swing
Interface ConversationBrowserPlugin

All Known Subinterfaces:
RegistryResourcePlugin
All Known Implementing Classes:
AbstractConversationBrowserPlugin, AccessControlPlugin, AccountClientPluginSwing, CltMgtRegistryClientPluginSwing, DataClientPluginSwing, JobClientPluginSwing, MembershipClientPluginSwing, OgsaDaiClientPluginSwing, SampleClientPluginSwing, SLAClientPluginSwing, UnrecognisedResourcePlugin

public interface ConversationBrowserPlugin

Plugins implement this to extend the GUI. To create a plug-in:

  1. Create an implementation of this class.
  2. List the implementation in your jar's META-INF/services/uk.ac.soton.itinnovation.grid.client.swing.ConversationBrowserPlugin.Provider file
Plugins are loaded by the ConversationBrowser's constructor. Each one must have a single-argument constructor which takes the ConversationBrowser as its only argument.


Field Summary
static String PROVIDER_RESOURCE_NAME
           
 
Method Summary
 void addFilters()
          Add Filters for this Plugin
 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.
 boolean doDoubleClick(StorableInStateRepository resource)
          Do a double click on a resource.
 boolean doDragDrop(Object source, Object target)
          Object 'source' has been dragged on to 'target'.
 String getState(StorableInStateRepository s)
          gets the status of a resource
 Icon getTreeIcon(org.apache.axis.message.addressing.EndpointReferenceType resource)
           
 void init(ConversationBrowser browser)
          Called once to initialise the plugin.
 void showPopupMenu(JPopupMenu menu, Class<?> commonInterface, org.apache.axis.message.addressing.EndpointReferenceType[] items)
          Add extra menu items.
 

Field Detail

PROVIDER_RESOURCE_NAME

static final String PROVIDER_RESOURCE_NAME
Method Detail

init

void init(ConversationBrowser browser)
Called once to initialise the plugin.


showPopupMenu

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

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

void addProperties(ResourcePropertiesPanel panel)
Create a Panel to display a resource


doDoubleClick

boolean doDoubleClick(StorableInStateRepository resource)
Do a double click on a resource.

Returns:
true if the click was handled

getTreeIcon

Icon getTreeIcon(org.apache.axis.message.addressing.EndpointReferenceType resource)

doDragDrop

boolean doDragDrop(Object source,
                   Object target)
Object 'source' has been dragged on to 'target'. Source and target are often, but not always, of type StorableInStateRepository.

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

void addFilters()
Add Filters for this Plugin


addPluginMenu

void addPluginMenu(JMenu menu)
Add Menu for this Plugin


compare

int compare(StorableInStateRepository s1,
            StorableInStateRepository s2)
Compare.


getState

String getState(StorableInStateRepository s)
gets the status of a resource



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