|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsample.client.SampleClientPlugin
public class SampleClientPlugin
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.
for details of the client's plugin system| Constructor Summary | |
|---|---|
SampleClientPlugin()
|
|
| Method Summary | |
|---|---|
void |
addProperties(ResourcePropertiesPanel panel)
Create a Panel to display a resource |
boolean |
doDoubleClick(ConversationBrowser browser,
StorableInStateRepository resource)
Do a double click on a resource. |
boolean |
doDragDrop(ConversationBrowser browser,
Object source,
Object target)
Object 'source' has been dragged on to 'target'. |
Icon |
getTreeIcon(ConversationBrowser browser,
StorableInStateRepository resource)
Get an icon representing this resource |
void |
initPlugin()
Initialise the plugin. |
void |
showPopupMenu(ConversationBrowser browser,
JPopupMenu menu,
Object[] items)
Add extra menu items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleClientPlugin()
| Method Detail |
|---|
public void initPlugin()
GridClientPluginProviderThe plugin should register itself with other components as appropriate.
initPlugin in interface GridClientPluginProviderRemoteServiceImpl.registerPortType(javax.xml.namespace.QName, Class),
ImplementationFactory.registerImplementation(Class, Class),
ConversationBrowser.addPlugin(uk.ac.soton.ecs.iam.grid.client.swing.PluginHook)
public void showPopupMenu(ConversationBrowser browser,
JPopupMenu menu,
Object[] items)
PluginHook
showPopupMenu in interface PluginHookbrowser - the browser opening the menumenu - the menu being createditems - the objects currently selectedpublic void addProperties(ResourcePropertiesPanel panel)
PluginHook
addProperties in interface PluginHook
public boolean doDoubleClick(ConversationBrowser browser,
StorableInStateRepository resource)
doDoubleClick in interface PluginHook
public Icon getTreeIcon(ConversationBrowser browser,
StorableInStateRepository resource)
PluginHook
getTreeIcon in interface PluginHook
public boolean doDragDrop(ConversationBrowser browser,
Object source,
Object target)
PluginHookStorableInStateRepository.
doDragDrop in interface PluginHooksource - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||