Package org.dspace.app.xmlui.wing.element

Examples of org.dspace.app.xmlui.wing.element.TextArea


    List form = div.addList("system-wide-alerts",List.TYPE_FORM);
    form.setHead(T_alerts_head);
   
    form.addItem(T_alerts_warning);
   
    TextArea message = form.addItem().addTextArea("message");
    message.setLabel(T_alerts_message_label);
    message.setSize(5, 45);
    if (SystemwideAlerts.getMessage() == null)
      message.setValue(T_alerts_message_default);
    else
      message.setValue(SystemwideAlerts.getMessage());
   
    Select countdown = form.addItem().addSelect("countdown");
    countdown.setLabel(T_alerts_countdown_label);
   
    countdown.addOption(0,T_alerts_countdown_none);
View Full Code Here


        Text email = form.addItem().addText("email");
        email.setLabel(T_email);
        email.setHelp(T_email_help);
        email.setValue(parameters.getParameter("email",""));
       
        TextArea comments = form.addItem().addTextArea("comments");
        comments.setLabel(T_comments);
        comments.setValue(parameters.getParameter("comments",""));
       
        form.addItem().addButton("submit").setValue(T_submit);
       
        feedback.addHidden("page").setValue(parameters.getParameter("page","unknown"));
    }
View Full Code Here

    element.setValue(elementValue);
   
    qualifier.setSize(15);
    qualifier.setValue(qualifierValue);
   
    TextArea scopeNote =form.addItem().addTextArea("newNote");
    scopeNote.setLabel(T_note);
    scopeNote.setHelp(T_note_help);
    scopeNote.setSize(2, 35);
    scopeNote.setValue(noteValue);
   
    form.addItem().addButton("submit_add").setValue(T_submit_add);
  }
View Full Code Here

    element.setValue(elementValue);
   
    qualifier.setSize(13);
    qualifier.setValue(qualifierValue);
   
    TextArea scopeNote =form.addItem().addTextArea("updateNote");
    scopeNote.setLabel(T_note);
    scopeNote.setHelp(T_note_help);
    scopeNote.setSize(2, 35);
    scopeNote.setValue(noteValue);
   
    Item actions = form.addItem();
    actions.addButton("submit_update").setValue(T_submit_update);
    actions.addButton("submit_cancel").setValue(T_submit_cancel);
   
View Full Code Here

   
    // Do not allow anyone to change the name of the unknown format.
    if (format != null && format.getID() == 1)
      name.setDisabled();

    TextArea description = form.addItem().addTextArea("description");
    description.setLabel(T_description);
    description.setValue(descriptionValue);
    description.setSize(3, 35);
   
    Select supportLevel = form.addItem().addSelect("support_level");
    supportLevel.setLabel(T_support);
    supportLevel.setHelp(T_support_help);
    supportLevel.addOption(0,T_support_0);
View Full Code Here

        List form = div.addList("reject-workflow",List.TYPE_FORM);
       
        form.addItem(T_info1);
       
        TextArea reason = form.addItem().addTextArea("reason");
        reason.setLabel(T_reason);
        reason.setRequired();
        reason.setSize(15, 50);
        if (this.errorFields.contains("reason"))
          reason.addError(T_reason_required);
     
        org.dspace.app.xmlui.wing.element.Item actions = form.addItem();
        actions.addButton("submit_reject").setValue(T_submit_reject);
        actions.addButton("submit_cancel").setValue(T_submit_cancel);
       
View Full Code Here

      Text short_description = metadataList.addItem().addText("short_description");
      short_description.setSize(40);
     
      // introductory text
      metadataList.addLabel(T_label_introductory_text);
      TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text");
      introductory_text.setSize(6, 40);
     
      // copyright text
      metadataList.addLabel(T_label_copyright_text);
      TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text");
      copyright_text.setSize(6, 40);
     
      // legacy sidebar text; may or may not be used for news
      metadataList.addLabel(T_label_side_bar_text);
      TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text");
      side_bar_text.setSize(6, 40);
     
      // license text
      metadataList.addLabel(T_label_license);
      TextArea license = metadataList.addItem().addTextArea("license");
      license.setSize(6, 40);
     
      // provenance description
      metadataList.addLabel(T_label_provenance_description);
      TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description");
      provenance_description.setSize(6, 40);
           
      // the row to upload a new logo
      metadataList.addLabel(T_label_logo);
      metadataList.addItem().addFile("logo");
View Full Code Here

      if (short_description_error != null)
        short_description.addError(short_description_error);
     
      // introductory text
      metadataList.addLabel(T_label_introductory_text);
      TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text");
      introductory_text.setValue(thisCollection.getMetadata("introductory_text"));
      introductory_text.setSize(6, 40);
      if (introductory_text_error != null)
        introductory_text.addError(introductory_text_error);
     
      // copyright text
      metadataList.addLabel(T_label_copyright_text);
      TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text");
      copyright_text.setValue(thisCollection.getMetadata("copyright_text"));
      copyright_text.setSize(6, 40);
      if (copyright_text_error != null)
        copyright_text.addError(copyright_text_error);
     
      // legacy sidebar text; may or may not be used for news
      metadataList.addLabel(T_label_side_bar_text);
      TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text");
      side_bar_text.setValue(thisCollection.getMetadata("side_bar_text"));
      side_bar_text.setSize(6, 40);
      if (side_bar_text_error != null)
        side_bar_text.addError(side_bar_text_error);
     
      // license text
      metadataList.addLabel(T_label_license);
      TextArea license = metadataList.addItem().addTextArea("license");
      license.setValue(thisCollection.getMetadata("license"));
      license.setSize(6, 40);
     
      // provenance description
      metadataList.addLabel(T_label_provenance_description);
      TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description");
      provenance_description.setValue(thisCollection.getMetadata("provenance_description"));
      provenance_description.setSize(6, 40);
           
      // the row to upload a new logo
      metadataList.addLabel(T_label_logo);
      metadataList.addItem().addFile("logo");
View Full Code Here

        div.setHead("HTML Test");
       
        div.addPara("This page tests Manakin's ability to handle HTML fragments, this ability is normally used to handle user-inputed text. There are two reasons for using this ability of including user supplied HTML fragments 1) it doesn't break the abstraction between themes and aspects, 2) it provides a safety mechanism preventing security vulnerabilities such as cross site scripting.");
       
        List form = div.addList("html-test",List.TYPE_FORM);
        TextArea fragmentField = form.addItem().addTextArea("fragment");
        fragmentField.setLabel("Fragment");
        fragmentField.setHelp("Enter free formed text, you may use <p>,<a>,<b>,<i>, or <img> tags.");
        fragmentField.setSize(15, 50);
        fragmentField.setValue(fragment);
       
        CheckBox optionsField = form.addItem().addCheckBox("options");
        optionsField.setLabel("Options");
        optionsField.addOption("blankLines", "Treat blank lines as paragraph breaks.");
        if (blankLines)
View Full Code Here

   
       
        // Text Area Field
        p = unsuited.addPara();
    p.addContent("This is a 'Text Area' field, ");
        TextArea textArea = p.addTextArea("textarea");
        textArea.setLabel("Text Area");
        if (help)
          textArea.setHelp("This is helpfull text.");
        if (error)
          textArea.addError("This field is in error.");
        textArea.setValue("This is the raw value");
        p.addContent(", embedded in a paragraph.");
       
        // Multi-option Checkbox field
        p = unsuited.addPara();
    p.addContent("This is a multi-option 'CheckBox' field, ");
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.wing.element.TextArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.