Search in sources :

Example 46 with HtmlBuilder

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();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 47 with HtmlBuilder

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();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 48 with HtmlBuilder

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();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 49 with HtmlBuilder

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();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 50 with HtmlBuilder

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();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Aggregations

HtmlBuilder (org.jmesa.view.html.HtmlBuilder)53 HtmlSnippets (org.jmesa.view.html.HtmlSnippets)6 SyndEntryImpl (com.sun.syndication.feed.synd.SyndEntryImpl)1 SimpleDateFormat (java.text.SimpleDateFormat)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 StudyBean (org.akaza.openclinica.bean.managestudy.StudyBean)1 RuleActionBean (org.akaza.openclinica.domain.rule.action.RuleActionBean)1 ParticipantPortalRegistrar (org.akaza.openclinica.service.pmanage.ParticipantPortalRegistrar)1 BasicCellEditor (org.jmesa.view.editor.BasicCellEditor)1 CellEditor (org.jmesa.view.editor.CellEditor)1 HtmlColumn (org.jmesa.view.html.component.HtmlColumn)1 HtmlRow (org.jmesa.view.html.component.HtmlRow)1 HtmlTable (org.jmesa.view.html.component.HtmlTable)1