uk.ac.cam.spectra.spectrasub.components
Class DefaultAuthorFormlet

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by uk.ac.cam.spectra.spectrasub.components.DefaultAuthorFormlet
All Implemented Interfaces:
java.util.EventListener, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.event.PageBeginRenderListener, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent, Formlet
Direct Known Subclasses:
CrystAuthorFormlet

public abstract class DefaultAuthorFormlet
extends org.apache.tapestry.BaseComponent
implements Formlet, org.apache.tapestry.event.PageBeginRenderListener


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
DefaultAuthorFormlet()
           
 
Method Summary
 boolean allowSubmit()
          If the add more chemist link has been clicked, stop the submission.
 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.
abstract  Name getChemistName()
           
abstract  java.util.List<Name> getChemists()
           
abstract  java.lang.String getInstitution()
           
abstract  Name getNewChemist()
           
 java.lang.String getNoSubmit()
           
abstract  Name getSupervisor()
           
 void pageBeginRender(org.apache.tapestry.event.PageEvent event)
           
abstract  void setChemists(java.util.List<Name> chemists)
           
abstract  void setInstitution(java.lang.String institution)
           
abstract  void setNewChemist(Name n)
           
 void setNoSubmit(java.lang.String noSubmit)
           
abstract  void setSupervisor(Name n)
           
 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 class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

DefaultAuthorFormlet

public DefaultAuthorFormlet()
Method Detail

pageBeginRender

public void pageBeginRender(org.apache.tapestry.event.PageEvent event)
Specified by:
pageBeginRender in interface org.apache.tapestry.event.PageBeginRenderListener

setupPage

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

Specified by:
setupPage in interface Formlet

validate

public void validate(org.apache.tapestry.valid.IValidationDelegate delegate)
Description copied from interface: Formlet
Validate formlet inputs.

Specified by:
validate in interface Formlet

writeMetadata

public void writeMetadata(com.hp.hpl.jena.rdf.model.Resource resource)
Description copied from interface: Formlet
Write form data out as RDF metadata.

Specified by:
writeMetadata in interface Formlet

allowSubmit

public boolean allowSubmit()
If the add more chemist link has been clicked, stop the submission.

Specified by:
allowSubmit in interface Formlet

getChemists

@Persist
public abstract java.util.List<Name> getChemists()

setChemists

public abstract void setChemists(java.util.List<Name> chemists)

getChemistName

public abstract Name getChemistName()

getNewChemist

public abstract Name getNewChemist()

setNewChemist

public abstract void setNewChemist(Name n)

getSupervisor

public abstract Name getSupervisor()

setSupervisor

public abstract void setSupervisor(Name n)

clearSubmissionBlock

public void clearSubmissionBlock()
Description copied from interface: Formlet
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.

Specified by:
clearSubmissionBlock in interface Formlet

setInstitution

public abstract void setInstitution(java.lang.String institution)

getInstitution

public abstract java.lang.String getInstitution()

getNoSubmit

public java.lang.String getNoSubmit()

setNoSubmit

public void setNoSubmit(java.lang.String noSubmit)


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