Servicecall from Editor Component
Author: manuelk
Publication Date: 9/20/2011 14:50
Hello,
I try to get a custom editor working with a JTable as primary swing compononet. The JTable must be filled with data from a webservice. I need to use a FirstSpirit service-component as a proxy for the actual webservice.
Unfortunatly I do not not know how to call a method from a service-component out of an editor-component. I hope anyone can help me and give me a simple example how to call a method of a service component.
Thanks.
Manuel
-
Author: andre - 9/22/2011 9:22
we're talking about GuiEditors or Gadgets? ...which FirstSpirit-Version?
GuiEditor:
or use this method
getService(Class<T> serviceClass)getHost().getConnection().getService(....)
--------------------
for Gadgets (http://www.e-spirit.com/odfs42/access/de/espirit/firstspirit/access/ServicesBroker.html):
ServicesBroker servicesBroker =
SpecialistBroker.requireSpecialist(ServicesBroker.TYPE);MyService myService = servicesBroker.
getService(MyService.class);obtain a Broker through the SwingGadgetContext<?>
-- andre
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire