Created
August 8, 2008 17:30
-
-
Save technicalpickles/4598 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%> | |
<%@ page import="edu.mit.broad.cbip.web.CbipJspConstants" %> | |
<%@page import="edu.mit.broad.cbip.web.compound.management.CreateMotherTubesFromMasterTubesActionBean"%> | |
<stripes:layout-render name="<%= CbipJspConstants.BASIC_LAYOUT_JSP %>"> | |
<stripes:layout-component name="title"> | |
</stripes:layout-component> | |
<stripes:layout-component name="contents"> | |
<stripes:form beanclass="<%= CreateMotherTubesFromMasterTubesActionBean.class %>" > | |
<stripes:label name="dto.targetMotherTubeConcentrationConcentration">Target Mother Tube Concentration</stripes:label> | |
<stripes:text name="dto.targetMotherTubeConcentrationConcentration" /> | |
<br /> | |
<stripes:label name="dto.targetMotherTubeConcentrationVolume">Target Mother Tube Volume</stripes:label> | |
<stripes:text name="dto.targetMotherTubeConcentrationVolume" /> | |
<br /> | |
<stripes:label name="dto.masterTubeRack">Master Tube Rack</stripes:label> | |
<stripes:text name="dto.masterTubeRack"/> | |
<br /> | |
<stripes:label name="dto.motherTubeRack">Mother Tube Rack</stripes:label> | |
<stripes:text name="dto.motherTubeRack"/> | |
<br /> | |
<stripes:submit name="calculate">Calculate</stripes:submit> | |
</stripes:form> | |
</stripes:layout-component> | |
</stripes:layout-render> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: CreateMotherTubesFromMasterTubesActionBean.java | |
* Classes: CreateMotherTubesFromMasterTubesActionBean | |
* | |
* Author: Broad Institute | |
* | |
* Copyright: MIT 2008. | |
* $Id$ | |
* | |
****************************************************************************** | |
* | |
* $Date$ | |
* $Author$ | |
*/ | |
package edu.mit.broad.cbip.web.compound.management; | |
import net.sourceforge.stripes.action.DefaultHandler; | |
import net.sourceforge.stripes.action.Resolution; | |
import net.sourceforge.stripes.action.UrlBinding; | |
import net.sourceforge.stripes.action.Wizard; | |
import edu.mit.broad.cbip.domain.compound.array.TubeRack; | |
import edu.mit.broad.cbip.domain.compound.container.Tube; | |
import edu.mit.broad.cbip.domain.util.LiquidHandler; | |
import edu.mit.broad.cbip.service.compound.MotherTubeCreationDTO; | |
import edu.mit.broad.cbip.web.BaseActionBean; | |
import edu.mit.broad.cbip.web.CbipJspConstants; | |
/** | |
* Wizard for creating mother {@link Tube}s from master {@link Tube}s. | |
* | |
* @author <a href="http://www.broad.mit.edu/chembio/">Broad Institute, Chemical Biology Software Development Group</a>. | |
* @version $Revision$. | |
*/ | |
@UrlBinding(CbipJspConstants.CREATE_MOTHER_TUBES_FROM_MASTERS_URL) | |
@Wizard(startEvents="begin") | |
public class CreateMotherTubesFromMasterTubesActionBean extends BaseActionBean | |
{ | |
private MotherTubeCreationDTO dto; | |
/** | |
* Display first page for mother {@link Tube} creation. | |
* @return renders initial form | |
*/ | |
@DefaultHandler | |
public Resolution begin() { | |
return renderingOf(CbipJspConstants.BEGIN_CREATE_MOTHER_TUBES_FROM_MASTERS_JSP); | |
} | |
/** | |
* Looks up statistics for the master {@link TubeRack}. | |
* @return JSON containing stats | |
*/ | |
public Resolution lookupMasterTubeRack() { | |
return null; | |
} | |
/** | |
* Calculates | |
* @return re-renders form if errors, otherwise redirects to procedure | |
*/ | |
public Resolution calculate() { | |
return redirectTo(this.getClass(), "procedure"); | |
} | |
/** | |
* Displays values needed for mother tube creation procedure. Also prompts for | |
* solvents and {@link LiquidHandler}s. | |
* | |
* @return renders second form | |
*/ | |
public Resolution procedure() { | |
return renderingOf(CbipJspConstants.PROCEDURE_CREATE_MOTHER_TUBES_FROM_MASTERS_JSP); | |
} | |
/** | |
* Records the mother tube creation. | |
* @return redirects... somewhere TODO | |
*/ | |
public Resolution record() { | |
return null; | |
} | |
/** | |
* Returns to the first form. | |
* @return redirects to first form | |
*/ | |
public Resolution back() { | |
return null; | |
} | |
/** | |
* @return the DTO | |
*/ | |
public MotherTubeCreationDTO getDto() | |
{ | |
return this.dto; | |
} | |
/** | |
* @param dto | |
*/ | |
public void setDto(MotherTubeCreationDTO dto) | |
{ | |
this.dto = dto; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="/cbip/compound/management/motherTubeCreation.action" method="post"> | |
<label>Target Mother Tube Concentration</label> | |
<input name="dto.targetMotherTubeConcentrationConcentration" type="text" /> | |
<br /> | |
<label>Target Mother Tube Volume</label> | |
<input name="dto.targetMotherTubeConcentrationVolume" type="text" /> | |
<br /> | |
<label>Master Tube Rack</label> | |
<input name="dto.masterTubeRack" type="text" /> | |
<br /> | |
<label>Mother Tube Rack</label> | |
<input name="dto.motherTubeRack" type="text" /> | |
<br /> | |
<input name="calculate" value="Calculate" type="submit" /> | |
<div style="display: none;"><input type="hidden" name="_sourcePage" value="2kPRjHcjiZMB33CSBYToxqzRCFfxkMDstFnz0lDODTxOnNMGCqmRCQkX-9ryxxdpE7pc9-IAwSE=" /><input type="hidden" name="__fp" value="TPPZUFtzAxAcA-F54ul3MSGorQWetlSGDC2IrsAa3Vauw8YqKB6SW46tw1YRcvxtz5J9FsyE99KXc3UfDwSN-amOs0yKUd4UJhgqkT9CRtB69Me6ltEEDbiZYOxLOMNfFPBYZHtVykYj3p8WF-sGQdaXr_x8nq8sbi5Qed_KGXgviHpJtJYVQQ8xUKJtV29Vtjye4DEDegM=" /></div></form> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment