uk.ac.soton.ecs.iam.grid.client.swing
Interface PluginHook

All Known Subinterfaces:
RegistryResourcePlugin
All Known Implementing Classes:
AccessControlPlugin, AccountClientPlugin, CltMgtRegistryClientPlugin, DataClientPlugin, JobClientPlugin, MembershipClientPlugin, OgsaDaiClientPlugin, SampleClientPlugin, SLAClientPlugin, UnrecognisedResourcePlugin

public interface PluginHook

Plugins implement this to extend the GUI.


Method Summary
 void addProperties(ResourcePropertiesPanel panel)
          Create a Panel to display a resource
 boolean doDoubleClick(ConversationBrowser browser, StorableInStateRepository resource)
          Do a double click on a resource.
 boolean doDragDrop(ConversationBrowser browser, Object source, Object target)
          Object 'source' has been dragged on to 'target'.
 Icon getTreeIcon(ConversationBrowser browser, StorableInStateRepository resource)
          Get an icon representing this resource
 void showPopupMenu(ConversationBrowser browser, JPopupMenu menu, Object[] items)
          Add extra menu items.
 

Method Detail

showPopupMenu

void showPopupMenu(ConversationBrowser browser,
                   JPopupMenu menu,
                   Object[] items)
Add extra menu items. This is called when the user opens the popup menu. All selected items have the same class.

Parameters:
browser - the browser opening the menu
menu - the menu being created
items - the objects currently selected

addProperties

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


doDoubleClick

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

Returns:
true if the click was handled

getTreeIcon

Icon getTreeIcon(ConversationBrowser browser,
                 StorableInStateRepository resource)
Get an icon representing this resource

Returns:
the icon

doDragDrop

boolean doDragDrop(ConversationBrowser browser,
                   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


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