uk.ac.soton.itinnovation.grid.client.account
Class AccountClientPluginSwing

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

public class AccountClientPluginSwing
extends AbstractConversationBrowserPlugin

Grid client plugin for the account 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 AccountClientPluginSwing.AccountStatementModel
           
 class AccountClientPluginSwing.AccountStatementThread
           
 class AccountClientPluginSwing.AddSupplierThread
           
 class AccountClientPluginSwing.CloseAccountThread
           
 class AccountClientPluginSwing.LiabilityRenderer
           
 class AccountClientPluginSwing.OpenPrivateAccountThread
           
 class AccountClientPluginSwing.OpenTradeAccountThread
           
 class AccountClientPluginSwing.PrivateAccountSuppliersThread
           
 class AccountClientPluginSwing.RemoveSupplierThread
           
protected  class AccountClientPluginSwing.StatementListSelectionListener
           
protected  class AccountClientPluginSwing.SupplierListSelectionListener
           
 class AccountClientPluginSwing.SuppliersTableModel
           
 
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
AccountClientPluginSwing()
           
 
Method Summary
 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 item)
          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 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, 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

AccountClientPluginSwing

public AccountClientPluginSwing()
Method Detail

addPluginMenu

public void addPluginMenu(JMenu menu)
Description copied from interface: ConversationBrowserPlugin
Add Menu for this Plugin

Specified by:
addPluginMenu in interface ConversationBrowserPlugin
Overrides:
addPluginMenu 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

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 item)
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(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.