uk.ac.soton.ecs.iam.grid.client.swing
Class ConversationBrowser
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
uk.ac.soton.ecs.iam.grid.client.swing.ConversationBrowser
- All Implemented Interfaces:
- DragGestureListener, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, InvocationListener, RegistryListener
public class ConversationBrowser
- extends JFrame
- implements DragGestureListener, ActionListener, InvocationListener, RegistryListener
A swing component that allows browsing of a registry.
There are three areas of the ConversationBrowser
ResourceBrowsingPanel - allows users to browser the resources and services in the registry using
different Resource Views @see uk.ac.soton.itinnovation.grid.client.swing.ResourceView
ResourceViewingPanel - Provides details of the resource or service selected in the ResourceBrowsingPanel.
Each resource or service is display in a ResourcePropertiesPanel @see uk.ac.soton.itinnovation.grid.client.swing.ResourcePropertiesPanel
LoggingPanel - Provides a log of the users interaction with resources and services
- See Also:
- Serialized Form
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
|
Method Summary |
void |
actionPerformed(ActionEvent event)
|
void |
addAvailableFilter(ResourceFilter filter)
Adds a ResourceFilter to the list of available Resource Filters
that can be created by the client |
void |
addAvailableRule(Class<? extends ResourceRule> rule)
Adds a ResourceRule Class to the list of available Resource Rules
that can be created by the client |
void |
addFilter(ResourceFilter filter)
Adds a Filter to the list of pre-fabricated Filters available to the client |
void |
addSwingPlugin(ConversationBrowserPlugin plugin)
Add a new plugin. |
void |
addToPopupMenu(JPopupMenu menu,
org.apache.axis.message.addressing.EndpointReferenceType[] items,
MouseEvent e)
|
void |
broadcast(RegistryEvent event)
|
void |
destroy(org.apache.axis.message.addressing.EndpointReferenceType epr)
|
void |
destroy(org.apache.axis.message.addressing.EndpointReferenceType[] objs)
|
void |
discoverResources(org.apache.axis.message.addressing.EndpointReferenceType service)
|
void |
discoverResources(GridService service,
org.apache.axis.message.addressing.EndpointReferenceType serviceEPR)
|
void |
doAction(String action)
|
void |
doAction(String action,
StorableInStateRepository c)
|
void |
dragGestureRecognized(DragGestureEvent dge)
|
DefaultInvocationEngine |
getEngine()
|
ProxyFactory |
getFactory()
|
PersistentRegistry |
getRegistry()
|
ResourcePropertiesPanel |
getResourcePropertiesPanel(org.apache.axis.message.addressing.EndpointReferenceType item)
|
ResourcePropertiesPanel |
getResourcePropertiesPanel(StorableInStateRepository item)
|
ArrayList<ResourceView> |
getResourceViews()
|
org.apache.axis.message.addressing.EndpointReferenceType |
getSelectedObject()
Return the user object for the single selected tree node, or null
if there isn't exactly one selected. |
Transport |
getTransport()
|
WSDLCache |
getWSDLcache()
|
void |
importGridResource(Object source,
JComponent dropTarget)
|
void |
importGridResource(StorableInStateRepository source,
JComponent dropTarget)
|
void |
importLocalFile(File localFile)
|
void |
invocationDone(Invocation invocation)
SOAP call ended. |
void |
invocationDone(String name)
|
void |
invocationStarted(Invocation invocation)
SOAP call starting. |
void |
invocationStarted(String name)
|
void |
itemsSelected(org.apache.axis.message.addressing.EndpointReferenceType[] items)
Notification that items have been selected by the user
Update the ResourceViews to show the selected resources |
void |
registerListener(RegistryListener listener)
|
void |
registryEvent(RegistryEvent event)
|
void |
removeSwingPlugin(ConversationBrowserPlugin plugin)
Remove a plugin previous added with #addPlugin. |
void |
rename(org.apache.axis.message.addressing.EndpointReferenceType epr)
|
void |
rename(ResourceMetadata rmd,
String name)
|
void |
rename(StorableInStateRepository c)
|
void |
runThread(ThrowingRunnable runnable,
String message)
Execute 'runnable' in a new thread. |
void |
setBusy(String operation)
Deprecated. the busy indicator works automatically now |
void |
setServiceFactory(ServiceFactory serviceFactory)
|
void |
showPopupMenu(org.apache.axis.message.addressing.EndpointReferenceType[] items,
MouseEvent e)
|
| Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
plugins
public ArrayList<ConversationBrowserPlugin> plugins
ACTION_REFRESH
public static final String ACTION_REFRESH
- See Also:
- Constant Field Values
ACTION_REFRESH_EPRS
public static final String ACTION_REFRESH_EPRS
- See Also:
- Constant Field Values
ACTION_CLOSE
public static final String ACTION_CLOSE
- See Also:
- Constant Field Values
ACTION_RENAME
public static final String ACTION_RENAME
- See Also:
- Constant Field Values
ACTION_UPDATE_EPR
public static final String ACTION_UPDATE_EPR
- See Also:
- Constant Field Values
ACTION_VIEW_EPR
public static final String ACTION_VIEW_EPR
- See Also:
- Constant Field Values
ACTION_ADD_SERVICE
public static final String ACTION_ADD_SERVICE
- See Also:
- Constant Field Values
ACTION_DISCOVER
public static final String ACTION_DISCOVER
- See Also:
- Constant Field Values
ACTION_FORGET
public static final String ACTION_FORGET
- See Also:
- Constant Field Values
ACTION_TEST_ENGINE
public static final String ACTION_TEST_ENGINE
- See Also:
- Constant Field Values
ACTION_CLEAR_ID_PREFS
public static final String ACTION_CLEAR_ID_PREFS
- See Also:
- Constant Field Values
ACTION_SAVE_CREDENTIALS
public static final String ACTION_SAVE_CREDENTIALS
- See Also:
- Constant Field Values
ACTION_VIEW_CREDENTIALS
public static final String ACTION_VIEW_CREDENTIALS
- See Also:
- Constant Field Values
ACTION_VIEW_REGISTRIES
public static final String ACTION_VIEW_REGISTRIES
- See Also:
- Constant Field Values
ACTION_CLEAR_WSDL_CACHE
public static final String ACTION_CLEAR_WSDL_CACHE
- See Also:
- Constant Field Values
ConversationBrowser
public ConversationBrowser(DefaultInvocationEngine engine,
ProxyFactory proxyFactory,
WSDLCache wsdlCache)
getRegistry
public PersistentRegistry getRegistry()
getFactory
public ProxyFactory getFactory()
getTransport
public Transport getTransport()
getWSDLcache
public WSDLCache getWSDLcache()
setServiceFactory
public void setServiceFactory(ServiceFactory serviceFactory)
getEngine
public DefaultInvocationEngine getEngine()
registerListener
public void registerListener(RegistryListener listener)
broadcast
public void broadcast(RegistryEvent event)
registryEvent
public void registryEvent(RegistryEvent event)
- Specified by:
registryEvent in interface RegistryListener
getResourceViews
public ArrayList<ResourceView> getResourceViews()
actionPerformed
public void actionPerformed(ActionEvent event)
- Specified by:
actionPerformed in interface ActionListener
getResourcePropertiesPanel
public ResourcePropertiesPanel getResourcePropertiesPanel(org.apache.axis.message.addressing.EndpointReferenceType item)
getResourcePropertiesPanel
public ResourcePropertiesPanel getResourcePropertiesPanel(StorableInStateRepository item)
importLocalFile
public void importLocalFile(File localFile)
throws RemoteException
- Throws:
RemoteException
importGridResource
public void importGridResource(Object source,
JComponent dropTarget)
importGridResource
public void importGridResource(StorableInStateRepository source,
JComponent dropTarget)
throws RemoteException
- Throws:
RemoteException
doAction
public void doAction(String action)
throws RemoteException
- Throws:
RemoteException
doAction
public void doAction(String action,
StorableInStateRepository c)
throws RemoteException
- Throws:
RemoteException
setBusy
@Deprecated
public void setBusy(String operation)
- Deprecated. the busy indicator works automatically now
- Indicate to the user than an operation is in progress.
- Parameters:
operation - the text to display to the user, or null to indicate that
the operation has finished.
rename
public void rename(org.apache.axis.message.addressing.EndpointReferenceType epr)
throws RemoteException
- Throws:
RemoteException
rename
public void rename(ResourceMetadata rmd,
String name)
throws RemoteException
- Throws:
RemoteException
rename
public void rename(StorableInStateRepository c)
throws RemoteException
- Throws:
RemoteException
discoverResources
public void discoverResources(org.apache.axis.message.addressing.EndpointReferenceType service)
throws RemoteException,
MalformedURLException
- Throws:
RemoteException
MalformedURLException
discoverResources
public void discoverResources(GridService service,
org.apache.axis.message.addressing.EndpointReferenceType serviceEPR)
throws RemoteException,
MalformedURLException
- Throws:
RemoteException
MalformedURLException
getSelectedObject
public org.apache.axis.message.addressing.EndpointReferenceType getSelectedObject()
- Return the user object for the single selected tree node, or null
if there isn't exactly one selected.
- Returns:
- Object the object selected in the current view
dragGestureRecognized
public void dragGestureRecognized(DragGestureEvent dge)
- Specified by:
dragGestureRecognized in interface DragGestureListener
addFilter
public void addFilter(ResourceFilter filter)
- Adds a Filter to the list of pre-fabricated Filters available to the client
- Parameters:
filter - the filter to be added
addAvailableFilter
public void addAvailableFilter(ResourceFilter filter)
- Adds a ResourceFilter to the list of available Resource Filters
that can be created by the client
- Parameters:
filter - the resource filter class to be added
addAvailableRule
public void addAvailableRule(Class<? extends ResourceRule> rule)
- Adds a ResourceRule Class to the list of available Resource Rules
that can be created by the client
- Parameters:
rule - the resource rule class to be added
itemsSelected
public void itemsSelected(org.apache.axis.message.addressing.EndpointReferenceType[] items)
- Notification that items have been selected by the user
Update the ResourceViews to show the selected resources
- Parameters:
items - the items that have been selected
addSwingPlugin
public void addSwingPlugin(ConversationBrowserPlugin plugin)
- Add a new plugin.
Note: plugins are normally added automatically by the constructor
- Parameters:
plugin -
removeSwingPlugin
public void removeSwingPlugin(ConversationBrowserPlugin plugin)
- Remove a plugin previous added with
#addPlugin.
- Parameters:
plugin - the plugin to be removed
runThread
public void runThread(ThrowingRunnable runnable,
String message)
- Execute 'runnable' in a new thread. If the method throws an exception, it is
displayed in an error box.
- Parameters:
runnable - object with run() methodmessage - message to display while running
invocationStarted
public void invocationStarted(Invocation invocation)
- Description copied from interface:
InvocationListener
- SOAP call starting. Called by
Transport to indicate that
a SOAP invocation is about to start. This can be used to display a 'busy' indicator.
- Specified by:
invocationStarted in interface InvocationListener
invocationDone
public void invocationDone(Invocation invocation)
- Description copied from interface:
InvocationListener
- SOAP call ended. Called by
Transport to indicate that
a SOAP invocation has finished. This can be used to hide the 'busy' indicator
set by InvocationListener.invocationStarted(uk.ac.soton.ecs.iam.grid.comms.client.helpers.Invocation).
- Specified by:
invocationDone in interface InvocationListener
invocationStarted
public void invocationStarted(String name)
invocationDone
public void invocationDone(String name)
showPopupMenu
public void showPopupMenu(org.apache.axis.message.addressing.EndpointReferenceType[] items,
MouseEvent e)
addToPopupMenu
public void addToPopupMenu(JPopupMenu menu,
org.apache.axis.message.addressing.EndpointReferenceType[] items,
MouseEvent e)
destroy
public void destroy(org.apache.axis.message.addressing.EndpointReferenceType[] objs)
destroy
public void destroy(org.apache.axis.message.addressing.EndpointReferenceType epr)
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.