use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class ViewRuleAssignmentTableFactory method testEditByDesignerBuilder.
private String testEditByDesignerBuilder(String target, String ruleOid, String runTime, String message) {
HtmlBuilder actionLink = new HtmlBuilder();
// String designerURL = "http://localhost:8080/Designer-0.1.0.BUILD-SNAPSHOT/";
setDesignerLink(designerURL + "&target=" + target + "&ruleOid=" + ruleOid + "&study_oid=" + currentStudy.getOid() + "&provider_user=" + getCurrentUser().getName());
actionLink.a().href(designerURL + "&target=" + target + "&ruleOid=" + ruleOid + "&study_oid=" + currentStudy.getOid() + "&provider_user=" + getCurrentUser().getName() + "&path=ViewRuleAssignment&runTime=" + runTime + "&msg=" + convertMessage(message));
actionLink.append("target=\"_parent\"");
actionLink.append("onMouseDown=\"javascript:setImage('bt_test','images/bt_EnterData_d.gif');\"");
actionLink.append("onMouseUp=\"javascript:setImage('bt_test','images/bt_EnterData.gif');\"").close();
actionLink.img().name("bt_test").src("images/bt_EnterData.gif").border("0").alt("Rule Designer").title("Rule Designer").append("hspace=\"2\"").end().aEnd();
actionLink.append(" ");
return actionLink.toString();
}
use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class ViewRuleAssignmentTableFactory method testLinkBuilder.
private String testLinkBuilder(Integer ruleSetRuleId) {
HtmlBuilder actionLink = new HtmlBuilder();
actionLink.a().href("TestRule?ruleSetRuleId=" + ruleSetRuleId);
actionLink.append("onMouseDown=\"javascript:setImage('bt_test','images/bt_EnterData_d.gif');\"");
actionLink.append("onMouseUp=\"javascript:setImage('bt_test','images/bt_Reassign_d.gif');\"").close();
actionLink.img().name("bt_test").src("images/bt_Reassign_d.gif").border("0").alt("Test").title("Test").append("hspace=\"2\"").end().aEnd();
actionLink.append(" ");
return actionLink.toString();
}
use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class ViewRuleAssignmentTableFactory method restoreLinkBuilder.
private String restoreLinkBuilder(Integer ruleSetRuleId, Integer ruleSetId) {
HtmlBuilder actionLink = new HtmlBuilder();
actionLink.a().href("UpdateRuleSetRule?action=restore&ruleSetRuleId=" + ruleSetRuleId + "&ruleSetId=" + ruleSetId);
actionLink.append("onClick='return confirm(\"" + resword.getString("rule_if_you_restore_this") + "\");'");
actionLink.append("onMouseDown=\"javascript:setImage('bt_Restore3','images/bt_Restore_d.gif');\"");
actionLink.append("onMouseUp=\"javascript:setImage('bt_Restore3','images/bt_Restore.gif');\"").close();
actionLink.img().name("bt_Restore3").src("images/bt_Restore.gif").border("0").alt("Restore").title("Restore").append("hspace=\"2\"").end().aEnd();
actionLink.append(" ");
return actionLink.toString();
}
use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class ViewRuleAssignmentTableFactory method viewLinkBuilder.
private String viewLinkBuilder(Integer ruleSetId) {
HtmlBuilder actionLink = new HtmlBuilder();
actionLink.a().href("ViewRuleSet?ruleSetId=" + ruleSetId);
actionLink.append("onMouseDown=\"javascript:setImage('bt_View1','images/bt_View_d.gif');\"");
actionLink.append("onMouseUp=\"javascript:setImage('bt_View1','images/bt_View.gif');\"").close();
actionLink.img().name("bt_View1").src("images/bt_View.gif").border("0").alt("View").title("View").append("hspace=\"2\"").end().aEnd();
actionLink.append(" ");
return actionLink.toString();
}
use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class ViewRuleAssignmentTableFactory method executeLinkBuilder.
private String executeLinkBuilder(Integer ruleSetId, Integer ruleId, String targetValue) {
HtmlBuilder actionLink = new HtmlBuilder();
if (!(targetValue.startsWith(ExpressionService.STUDY_EVENT_OID_START_KEY) && (targetValue.endsWith(ExpressionService.STARTDATE) || targetValue.endsWith(ExpressionService.STATUS)))) {
actionLink.a().href("RunRuleSet?ruleSetId=" + ruleSetId + "&ruleId=" + ruleId);
actionLink.append("onMouseDown=\"javascript:setImage('bt_Run1','images/bt_ExexuteRules.gif');\"");
actionLink.append("onMouseUp=\"javascript:setImage('bt_Run1','images/bt_ExexuteRules.gif');\"").close();
}
actionLink.img().name("bt_Run1").src("images/bt_ExexuteRules.gif").border("0").alt("Run").title("Run").append("hspace=\"2\"").end().aEnd();
actionLink.append(" ");
return actionLink.toString();
}
Aggregations