Search in sources :

Example 21 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListDiscNotesSubjectTableFactory method reAssignStudySubjectLinkBuilder.

private String reAssignStudySubjectLinkBuilder(StudySubjectBean studySubject) {
    HtmlBuilder actionLink = new HtmlBuilder();
    actionLink.a().href("ReassignStudySubject?id=" + studySubject.getId());
    actionLink.append("onMouseDown=\"javascript:setImage('bt_Reassign1','images/bt_Reassign_d.gif');\"");
    actionLink.append("onMouseUp=\"javascript:setImage('bt_Reassign1','images/bt_Reassign.gif');\"").close();
    actionLink.img().name("bt_Reassign1").src("images/bt_Reassign.gif").border("0").alt(resword.getString("reassign")).title(resword.getString("reassign")).append("hspace=\"2\"").end().aEnd();
    actionLink.append("   ");
    return actionLink.toString();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 22 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListDiscNotesForCRFTableFactory method restoreStudySubjectLinkBuilder.

private String restoreStudySubjectLinkBuilder(StudySubjectBean studySubject) {
    HtmlBuilder actionLink = new HtmlBuilder();
    actionLink.a().href("RestoreStudySubject?action=confirm&id=" + studySubject.getId() + "&subjectId=" + studySubject.getSubjectId() + "&studyId=" + studySubject.getStudyId());
    actionLink.append("onMouseDown=\"javascript:setImage('bt_Restor3','images/bt_Restore_d.gif');\"");
    actionLink.append("onMouseUp=\"javascript:setImage('bt_Restor3','images/bt_Restore_d.gif');\"").close();
    actionLink.img().name("bt_Restore1").src("images/bt_Remove.gif").border("0").alt(resword.getString("restore")).title(resword.getString("restore")).align("left").append("hspace=\"6\"").end().aEnd();
    return actionLink.toString();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 23 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListStudySubjectTableFactory method viewStudySubjectLinkBuilder.

private String viewStudySubjectLinkBuilder(StudySubjectBean studySubject) {
    HtmlBuilder actionLink = new HtmlBuilder();
    actionLink.a().href("ViewStudySubject?id=" + studySubject.getId());
    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(resword.getString("view")).title(resword.getString("view")).append("hspace=\"2\"").end().aEnd();
    actionLink.append("   ");
    return actionLink.toString();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 24 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListStudySubjectTableFactory method reAssignStudySubjectLinkBuilder.

private String reAssignStudySubjectLinkBuilder(StudySubjectBean studySubject) {
    HtmlBuilder actionLink = new HtmlBuilder();
    actionLink.a().href("ReassignStudySubject?id=" + studySubject.getId());
    actionLink.append("onMouseDown=\"javascript:setImage('bt_Reassign1','images/bt_Reassign_d.gif');\"");
    actionLink.append("onMouseUp=\"javascript:setImage('bt_Reassign1','images/bt_Reassign.gif');\"").close();
    actionLink.img().name("bt_Reassign1").src("images/bt_Reassign.gif").border("0").alt(resword.getString("reassign")).title(resword.getString("reassign")).append("hspace=\"2\"").end().aEnd();
    actionLink.append("   ");
    return actionLink.toString();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 25 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListStudySubjectTableFactory method removeStudySubjectLinkBuilder.

private String removeStudySubjectLinkBuilder(StudySubjectBean studySubject) {
    HtmlBuilder actionLink = new HtmlBuilder();
    actionLink.a().href("RemoveStudySubject?action=confirm&id=" + studySubject.getId() + "&subjectId=" + studySubject.getSubjectId() + "&studyId=" + studySubject.getStudyId());
    actionLink.append("onMouseDown=\"javascript:setImage('bt_Remove1','images/bt_Remove_d.gif');\"");
    actionLink.append("onMouseUp=\"javascript:setImage('bt_Remove1','images/bt_Remove.gif');\"").close();
    actionLink.img().name("bt_Remove1").src("images/bt_Remove.gif").border("0").alt(resword.getString("remove")).title(resword.getString("remove")).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