org.biomoby.service.dashboard.renderers
Class XMLTreeRenderer
java.lang.Object
org.biomoby.service.dashboard.renderers.AbstractRenderer
org.biomoby.service.dashboard.renderers.XMLTreeRenderer
- All Implemented Interfaces:
- Renderer
public class XMLTreeRenderer
- extends AbstractRenderer
Render XML data using XMLTree
.
- Version:
- $Id: XMLTreeRenderer.java,v 1.2 2006/02/20 05:51:11 senger Exp $
- Author:
- Martin Senger
XMLTreeRenderer
public XMLTreeRenderer()
canHandle
public boolean canHandle(String criterion,
Object value)
- It can handle XML strings. Ask for MIME_TYPE criterion with
value "text/xml".
- Specified by:
canHandle
in interface Renderer
- Specified by:
canHandle
in class AbstractRenderer
- Parameters:
criterion
- is a category of the value, e.g. "MIME-TYPE"value
- is a value from the category criterion, e.g. "text/xml"
getComponent
public JComponent getComponent(DataContainer data)
throws MobyException
- Description copied from interface:
Renderer
- Return a JComponent displaying (rendering) given data.
If it gets an array of data, it can always delegate their
accumulation to the CollectionRenderer
by saying:
if (data.getData().getClass().isArray())
return new BoxCollectionRenderer (this).getComponent (data);
- Specified by:
getComponent
in interface Renderer
- Specified by:
getComponent
in class AbstractRenderer
- Parameters:
data
- to be rendered
- Returns:
- a component for displaying data, or null if there is a
problem with data
- Throws:
MobyException
- if called with wrong type of data
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010