|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
uk.ac.soton.ecs.iam.grid.client.swing.ConversationBrowser
public class ConversationBrowser
A swing component that allows browsing of a StateRepository.
There are three areas of the ConversationBrowser
ResourceBrowsingPanel - allows users to browser the resources and services in the StateRepository 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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
ACTION_ADD_SERVICE
|
static String |
ACTION_CLOSE
|
static String |
ACTION_DISCOVER
|
static String |
ACTION_FORGET
|
static String |
ACTION_REFRESH
|
static String |
ACTION_REFRESH_EPRS
|
static String |
ACTION_RENAME
|
static String |
ACTION_UPDATE_EPR
|
static String |
ACTION_VIEW_EPR
|
static ArrayList<PluginHook> |
plugins
|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| 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 |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ConversationBrowser(StateRepository repos)
Create a new browser for this StateRepository. |
|
| 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 |
SOAPHeaderElement[] |
addHeadersForCall(StateRepository repos,
StorableInStateRepository proxy,
Method method)
|
static void |
addPlugin(PluginHook plugin)
Add a plug-in to the list. |
void |
destroy(WSResourceLifetime c)
|
void |
discoverResources(RemoteService service)
|
void |
doAction(String action)
|
void |
doAction(String action,
StorableInStateRepository c)
|
void |
dragGestureRecognized(DragGestureEvent dge)
|
void |
forget(StorableInStateRepository c)
|
void |
getEPR(ResourceMetadata rmd,
boolean display)
|
StateRepository |
getRepository()
|
ResourcePropertiesPanel |
getResourcePropertiesPanel(StorableInStateRepository item)
|
ArrayList<ResourceView> |
getResourceViews()
|
Object |
getSelectedObject()
Return the user object for the single selected tree node, or null if there isn't exactly one selected. |
void |
importGridResource(StorableInStateRepository source,
JComponent dropTarget)
|
void |
importLocalFile(File localFile)
|
void |
invocationDone(StorableInStateRepository object,
Method method)
SOAP call ended. |
void |
invocationDone(String name)
|
void |
invocationStarted(StorableInStateRepository object,
Method method)
SOAP call starting. |
void |
invocationStarted(String name)
|
void |
itemsSelected(Object[] items)
Notification that items have been selected by the user Update the ResourceViews to show the selected resources |
static void |
removePlugin(PluginHook plugin)
Remove a plugin previous added with addPlugin(uk.ac.soton.ecs.iam.grid.client.swing.PluginHook). |
void |
rename(StorableInStateRepository c)
|
void |
repositoryChanged(RepositoryChangedEvent event)
|
void |
runThread(ThrowingRunnable runnable,
String message)
Execute 'runnable' in a new thread. |
void |
setBusy(String operation)
Deprecated. the busy indicator works automatically now |
void |
showPopupMenu(Object[] items,
MouseEvent e)
|
| 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.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static ArrayList<PluginHook> plugins
public static final String ACTION_REFRESH
public static final String ACTION_REFRESH_EPRS
public static final String ACTION_CLOSE
public static final String ACTION_RENAME
public static final String ACTION_UPDATE_EPR
public static final String ACTION_VIEW_EPR
public static final String ACTION_ADD_SERVICE
public static final String ACTION_DISCOVER
public static final String ACTION_FORGET
| Constructor Detail |
|---|
public ConversationBrowser(StateRepository repos)
| Method Detail |
|---|
public ArrayList<ResourceView> getResourceViews()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void repositoryChanged(RepositoryChangedEvent event)
repositoryChanged in interface StateRepositoryListenerpublic StateRepository getRepository()
public ResourcePropertiesPanel getResourcePropertiesPanel(StorableInStateRepository item)
public void importLocalFile(File localFile)
throws RemoteException
RemoteException
public void importGridResource(StorableInStateRepository source,
JComponent dropTarget)
throws RemoteException
RemoteException
public void doAction(String action)
throws RemoteException,
ObjectAlreadyExists
RemoteException
ObjectAlreadyExists
public void doAction(String action,
StorableInStateRepository c)
throws RemoteException,
ObjectAlreadyExists
RemoteException
ObjectAlreadyExists@Deprecated public void setBusy(String operation)
operation - the text to display to the user, or null to indicate that
the operation has finished.
public void forget(StorableInStateRepository c)
throws RemoteException
RemoteException
public void rename(StorableInStateRepository c)
throws RemoteException
RemoteException
public void discoverResources(RemoteService service)
throws RemoteException,
MalformedURLException
RemoteException
MalformedURLExceptionpublic Object getSelectedObject()
public void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized in interface DragGestureListenerpublic void addFilter(ResourceFilter filter)
filter - the filter to be addedpublic void addAvailableFilter(ResourceFilter filter)
filter - the resource filter class to be addedpublic void addAvailableRule(Class<? extends ResourceRule> rule)
rule - the resource rule class to be addedpublic void itemsSelected(Object[] items)
items - the items that have been selectedpublic static void addPlugin(PluginHook plugin)
plugin - the plugin to addpublic static void removePlugin(PluginHook plugin)
addPlugin(uk.ac.soton.ecs.iam.grid.client.swing.PluginHook).
plugin - the plugin to be removed
public void runThread(ThrowingRunnable runnable,
String message)
runnable - object with run() methodmessage - message to display while running
public void invocationStarted(StorableInStateRepository object,
Method method)
InvocationListenerRemoteResourceProxy to indicate that
a SOAP invocation is about to start. This can be used to display a 'busy' indicator.
invocationStarted in interface InvocationListener
public void invocationDone(StorableInStateRepository object,
Method method)
InvocationListenerRemoteResourceProxy 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.StorableInStateRepository, java.lang.reflect.Method).
invocationDone in interface InvocationListenerpublic void invocationStarted(String name)
public void invocationDone(String name)
public SOAPHeaderElement[] addHeadersForCall(StateRepository repos,
StorableInStateRepository proxy,
Method method)
addHeadersForCall in interface InvocationListener
public void showPopupMenu(Object[] items,
MouseEvent e)
public void getEPR(ResourceMetadata rmd,
boolean display)
public void destroy(WSResourceLifetime c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||