net.sourceforge.fluxion.pussycat.renderlets.impl
Class IndividualViewRenderlet

java.lang.Object
  extended by net.sourceforge.fluxion.pussycat.renderlets.template.PussycatRenderlet<org.semanticweb.owl.model.OWLEntity,org.semanticweb.owl.model.OWLIndividual>
      extended by net.sourceforge.fluxion.pussycat.renderlets.impl.IndividualViewRenderlet
All Implemented Interfaces:
Renderlet<org.semanticweb.owl.model.OWLEntity,org.semanticweb.owl.model.OWLIndividual>

public class IndividualViewRenderlet
extends PussycatRenderlet<org.semanticweb.owl.model.OWLEntity,org.semanticweb.owl.model.OWLIndividual>

A renderlet that simply renders the string "Hello World!". To construct a well formed renderlet, you must implement render() so that it performs some rendering of this.renderedObject and returns a valid HTML string. You must also implement an indeing strategy for object that this renderlet can select. For instance, if this renderlet renders a Set, and selects one of these Strings, it would be advisable to store a map of string-id<->string so that the actual string object can be recovered when lookupObject() is called in. The rendering code should then make sure that when links are clicked in the html, they fire a call that passes the string-id to the servlet. this.renderedObject will be typed according to generic type O on PussycatRenderlet, and this.selectedObject typed by type S. So for instance, if MyRenderlet extends PussycatRenderlet, MyRenderlet will be typed by renderedObject instanceof String, selectedObject instanceof Integer


Field Summary
 
Fields inherited from class net.sourceforge.fluxion.pussycat.renderlets.template.PussycatRenderlet
id, renderedObject, selection
 
Constructor Summary
IndividualViewRenderlet()
           
 
Method Summary
 org.semanticweb.owl.model.OWLIndividual lookupObject(java.lang.String objectId)
           
 java.lang.String render()
           
 
Methods inherited from class net.sourceforge.fluxion.pussycat.renderlets.template.PussycatRenderlet
addListener, getContentType, getDescription, getDisplayName, getId, getName, getNexus, getPussycatRenderletManager, getRenderletListeners, getSelectedObject, init, isSelfUpdatable, isUpdating, registerRenderletManager, removeListener, rendersClass, selectsClass, setContentType, setDescription, setDisplayName, setId, setName, setNexus, setRenderletListeners, setSelectedObject, setSelfUpdatable, setUpdating, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualViewRenderlet

public IndividualViewRenderlet()
Method Detail

render

public java.lang.String render()

lookupObject

public org.semanticweb.owl.model.OWLIndividual lookupObject(java.lang.String objectId)


Copyright © 2010. All Rights Reserved.