Search the FirstSpirit Knowledge Base
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
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
Hi,
is there really nobody who has experiences in calling a service method of a custom FirstSpirit service component out of an editor component. I really need help here and would be glad for getting assistance.
Thanks
Manuel
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