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

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

public class UnrecognisedResourcePlugin
extends AbstractConversationBrowserPlugin

A plugin for handling unknown resource types.


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.client.swing.AbstractConversationBrowserPlugin
browser
 
Fields inherited from interface uk.ac.soton.itinnovation.grid.client.swing.ConversationBrowserPlugin
PROVIDER_RESOURCE_NAME
 
Constructor Summary
UnrecognisedResourcePlugin()
           
 
Method Summary
 void addProperties(ResourcePropertiesPanel panel)
          Create a Panel to display a resource
 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 object)
          gets the status of a resource
 Icon getTreeIcon(StorableInStateRepository resource)
           
 void showPopupMenu(JPopupMenu menu, Class itemClass, org.apache.axis.message.addressing.EndpointReferenceType[] items)
          Add extra menu items.
 
Methods inherited from class uk.ac.soton.itinnovation.grid.client.swing.AbstractConversationBrowserPlugin
addFilters, addFilters, addPluginMenu, addPluginMenu, compare, doDoubleClick, doDragDrop, getState, getTreeIcon, getTreeIcon, init, showPopupMenu
 
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(JPopupMenu menu,
                          Class itemClass,
                          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
Overrides:
showPopupMenu in class AbstractConversationBrowserPlugin
Parameters:
menu - the menu being created
itemClass - 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
Overrides:
addProperties in class AbstractConversationBrowserPlugin

doDoubleClick

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

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

getTreeIcon

public Icon getTreeIcon(StorableInStateRepository resource)

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
Overrides:
doDragDrop in class AbstractConversationBrowserPlugin
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

getState

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

Specified by:
getState in interface ConversationBrowserPlugin
Overrides:
getState in class AbstractConversationBrowserPlugin


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