org.sigpath.tapestry.pages.model
Class AddCompartments
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.AbstractPage
org.apache.tapestry.html.BasePage
org.sigpath.tapestry.pages.ValidatedPage
org.sigpath.tapestry.pages.model.ModelValidated
org.sigpath.tapestry.pages.model.AddCompartments
- All Implemented Interfaces:
- EventListener, PageRenderListener, PageValidateListener, IComponent, ILocatable, ILocationHolder, IPage, IRender
public abstract class AddCompartments
- extends ModelValidated
- implements PageRenderListener
| Methods inherited from class org.apache.tapestry.AbstractPage |
addPageDetachListener, addPageRenderListener, addPageValidateListener, attach, beginPageRender, beginResponse, detach, endPageRender, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getGlobal, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, getVisit, removePageDetachListener, removePageRenderListener, removePageValidateListener, renderPage, setChangeObserver, setLocale, setPageName, setRequestCycle, validate |
| Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainer, getId, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
| Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification |
| Methods inherited from interface org.apache.tapestry.IRender |
render |
AddCompartments
public AddCompartments()
getConcentrationUnitModel
public IPropertySelectionModel getConcentrationUnitModel()
- selection over molecules types
- Returns:
getVolumeUnitModel
public IPropertySelectionModel getVolumeUnitModel()
- selection over molecules types
- Returns:
getCompartmentModel
public IPropertySelectionModel getCompartmentModel(Vector mcs)
- selection over the Vector of Strings mcs
todo: this model may be used to instaciate any selection we use in this page
- Returns:
formCancel
public void formCancel(IRequestCycle cycle)
- cancels the submission
- Parameters:
cycle -
addCompartment
public void addCompartment(IRequestCycle cycle)
throws SigPathDatabaseException,
ClassNotFoundException,
IOException
- creates a new compartment, add it to the model, validate the model, and go back to a another
page if everything is fine. Otherwise, rollback the changes
- Parameters:
cycle -
- Throws:
SigPathDatabaseException
ClassNotFoundException
IOException
getAttributesFromCompartment
public HashMap getAttributesFromCompartment(Compartment comp)
- initiate the fields of the form so that the page may be used for editing
- Parameters:
comp -
- Returns:
- HashMap which encloses the attributes of the form
pageBeginRender
public void pageBeginRender(PageEvent event)
- the form is empty when the page begins render
- Specified by:
pageBeginRender in interface PageRenderListener
- Parameters:
event -
getOtherCompartments
public Vector getOtherCompartments()
- gets the model compartments other than the one being currently edited.
If the model is new, returns all the model Compartments.
- Returns:
beginEdit
public void beginEdit(IRequestCycle cycle,
Compartment comp)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getFrom
public abstract String getFrom()
setFrom
public abstract void setFrom(String name)
getAttributes
public abstract Map getAttributes()
setAttributes
public abstract void setAttributes(Map attributes)
setEditedCompartment
public abstract void setEditedCompartment(Compartment comp)
getEditedCompartment
public abstract Compartment getEditedCompartment()
Copyright © 2002-2005 Institute for Computational Biomedicine, All Rights Reserved.