Search in sources :

Example 1 with Input

use of org.akaza.openclinica.web.pform.dto.Input in project OpenClinica by OpenClinica.

the class InputWidget method getUserControl.

@Override
public UserControl getUserControl() {
    Input input = new Input();
    Label label = new Label();
    label.setLabel(itemFormMetadataBean.getLeftItemText());
    input.setLabel(label);
    // input.setHint(hint);
    if (appearance != null)
        input.setAppearance(appearance);
    input.setRef("/" + version.getOid() + "/" + itemGroupBean.getOid() + "/" + item.getOid());
    return input;
}
Also used : Input(org.akaza.openclinica.web.pform.dto.Input) Label(org.akaza.openclinica.web.pform.dto.Label)

Example 2 with Input

use of org.akaza.openclinica.web.pform.dto.Input in project OpenClinica by OpenClinica.

the class SubHeaderWidget method getUserControl.

@Override
public UserControl getUserControl() {
    Input input = new Input();
    Label label = new Label();
    label.setLabel(itemMetaData.getSubHeader());
    input.setLabel(label);
    input.setRef("/" + version.getOid() + "/" + itemGroup.getOid() + "/" + item.getOid() + ".SUBHEADER");
    return input;
}
Also used : Input(org.akaza.openclinica.web.pform.dto.Input) Label(org.akaza.openclinica.web.pform.dto.Label)

Example 3 with Input

use of org.akaza.openclinica.web.pform.dto.Input in project OpenClinica by OpenClinica.

the class SectionTextWidget method getUserControl.

@Override
public UserControl getUserControl() {
    Input input = new Input();
    Label label = new Label();
    label.setLabel(text);
    input.setLabel(label);
    input.setRef("/" + versionOid + "/SECTION_" + String.valueOf(sectionId) + "." + textType);
    return input;
}
Also used : Input(org.akaza.openclinica.web.pform.dto.Input) Label(org.akaza.openclinica.web.pform.dto.Label)

Example 4 with Input

use of org.akaza.openclinica.web.pform.dto.Input in project OpenClinica by OpenClinica.

the class HeaderWidget method getUserControl.

@Override
public UserControl getUserControl() {
    Input input = new Input();
    Label label = new Label();
    label.setLabel("__" + itemMetaData.getHeader() + "__");
    input.setLabel(label);
    input.setRef("/" + version.getOid() + "/" + itemGroup.getOid() + "/" + item.getOid() + ".HEADER");
    return input;
}
Also used : Input(org.akaza.openclinica.web.pform.dto.Input) Label(org.akaza.openclinica.web.pform.dto.Label)

Aggregations

Input (org.akaza.openclinica.web.pform.dto.Input)4 Label (org.akaza.openclinica.web.pform.dto.Label)4