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

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.swing.UnrecognisedResourcePlugin
All Implemented Interfaces:
PluginHook

public class UnrecognisedResourcePlugin
extends Object
implements PluginHook

A plugin for handling unknown resource types.


Constructor Summary
UnrecognisedResourcePlugin()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnrecognisedResourcePlugin

public UnrecognisedResourcePlugin()
Method Detail

showPopupMenu

public void showPopupMenu(ConversationBrowser browser,
                          JPopupMenu menu,
                          Object[] items)
Description copied from interface: PluginHook
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 PluginHook
Parameters:
browser - the browser opening the menu
menu - the menu being created
items - the objects currently selected

addProperties

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

Specified by:
addProperties in interface PluginHook

doDoubleClick

public boolean doDoubleClick(ConversationBrowser browser,
                             StorableInStateRepository resource)
Description copied from interface: PluginHook
Do a double click on a resource.

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

getTreeIcon

public Icon getTreeIcon(ConversationBrowser browser,
                        StorableInStateRepository resource)
Description copied from interface: PluginHook
Get an icon representing this resource

Specified by:
getTreeIcon in interface PluginHook
Returns:
the icon

doDragDrop

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

Specified by:
doDragDrop in interface PluginHook
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.