uk.ac.soton.itinnovation.grid.client.data
Class DataClientPluginSwing

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

public class DataClientPluginSwing
extends AbstractConversationBrowserPlugin

Grid client plugin for the sample service. This plugin extends the Grid client to allow it to use the Grid sample service. It registers the objects relating to the service and also extends the client's Swing interface to add menu actions for these resources.

See Also:
for details of the client's plugin system

Nested Class Summary
 class DataClientPluginSwing.DataDetailsThread
           
 class DataClientPluginSwing.PreviewThread
           
 class DataClientPluginSwing.TransferThread
           
 
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
DataClientPluginSwing()
           
 
Method Summary
 void addFilters()
          Add Filters for this Plugin
 void addProperties(ResourcePropertiesPanel panel)
          Create a Panel to display a resource
 int compare(StorableInStateRepository s1, StorableInStateRepository s2)
          Compare.
 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 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, addPluginMenu, addPluginMenu, doDoubleClick, doDoubleClick, doDragDrop, getState, getTreeIcon, init, showPopupMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataClientPluginSwing

public DataClientPluginSwing()
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

addFilters

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

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

compare

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

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

getState

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

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

getTreeIcon

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

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


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