org.freehep.jas.services
Interface HTMLComponentFactory


public interface HTMLComponentFactory

An interface to be implemented by plugins which allow objects to be embedded in HTML pages.

Example of use:

 HTMLComponentFactory factory = new MyComponentFactory();
 FreeHEPLookup lookup = getApplication().getLookup();
 lookup.add(factory,"objectTagA");
 lookup.add(factory,"objectTagB");

Version:
$Id:
Author:
serbo

Method Summary
 JComponent getComponent(String name, Map attributes)
          Called when an Object tag is found in an HTML page.
 

Method Detail

getComponent

JComponent getComponent(String name,
                        Map attributes)
Called when an Object tag is found in an HTML page.

Parameters:
name - The name referenced in the object tag
attributes - The parameters and values specified in the Object tag.
Returns:
The component to be embedded in the HTML page


Copyright © 2013. All Rights Reserved.