uk.ac.cam.spectra.spectrasub.components
Interface Formlet

All Superinterfaces:
org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Implementing Classes:
CrystAuthorFormlet, DefaultAuthorFormlet, NMRExperimentMetadata

public interface Formlet
extends org.apache.tapestry.ITemplateComponent

Interface for components that contribute parts of the AddMetadata page

Author:
ojd20

Method Summary
 boolean allowSubmit()
           
 void clearSubmissionBlock()
          This method will be called after the form handling has taken account of this formlets need to block submission, the formlet should clear whatever state it holds for blocking submisison.
 void setupPage(DataPackage p)
          This method gets called from the page begin render method when the form is notrewinding.
 void validate(org.apache.tapestry.valid.IValidationDelegate delegate)
          Validate formlet inputs.
 void writeMetadata(com.hp.hpl.jena.rdf.model.Resource resource)
          Write form data out as RDF metadata.
 
Methods inherited from interface org.apache.tapestry.ITemplateComponent
addOuter
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

setupPage

void setupPage(DataPackage p)
This method gets called from the page begin render method when the form is notrewinding. To implement rewind functionality, implement IPageBeginRenderListener.

Parameters:
p -

writeMetadata

void writeMetadata(com.hp.hpl.jena.rdf.model.Resource resource)
Write form data out as RDF metadata.

Parameters:
resource -

validate

void validate(org.apache.tapestry.valid.IValidationDelegate delegate)
Validate formlet inputs.

Parameters:
delegate -

allowSubmit

boolean allowSubmit()

clearSubmissionBlock

void clearSubmissionBlock()
This method will be called after the form handling has taken account of this formlets need to block submission, the formlet should clear whatever state it holds for blocking submisison.



Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.