ch.ethz.iks.r_osgi.types
Interface ServiceUIComponent


public interface ServiceUIComponent

Presentations for services implement this interface.

When the ServiceUI fetches a service that has the presentation property set, it first invokes the initComponent method of the ServiceUIComponent to let it initialize. Then, the getPanel method is called that is expected to return a panel that presents the service.

Since:
0.3
Author:
Jan S. Rellermeyer, ETH Zurich

Method Summary
 java.awt.Panel getPanel()
          get the main panel of the presentation.
 void initComponent(java.lang.Object serviceObject, org.osgi.framework.BundleContext context)
          called by the system when the component is initialized.
 

Method Detail

initComponent

void initComponent(java.lang.Object serviceObject,
                   org.osgi.framework.BundleContext context)
called by the system when the component is initialized.

Parameters:
serviceObject - the service object of the service to which the ServiceUIComponent is bound.
context - a bundle context. Can be used if the component has to access other OSGi services or has to interact differently with the framework.
Since:
0.5

getPanel

java.awt.Panel getPanel()
get the main panel of the presentation.

Returns:
the panel.
Since:
0.5


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.