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

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


        actionsList.addItemXref(baseURL+"&query&submit_search",
            T_actions_browse_link);

        actionsList.addLabel(T_actions_search);
        org.dspace.app.xmlui.wing.element.Item actionItem = actionsList.addItem();
        Text queryField = actionItem.addText("query");
        queryField.setAutofocus("autofocus");
        if (query != null)
        {
            queryField.setValue(query);
        }
        queryField.setHelp(T_search_help);
        actionItem.addButton("submit_search").setValue(T_go);

        // DIVISION: eperson-search
        Division search = main.addDivision("eperson-search");
    search.setHead(T_search_head);
View Full Code Here


               
                // Curate Form
                List form = div.addList("curate-form", List.TYPE_FORM);
   
                // Object ID Textbox (required)
                Text id = form.addItem().addText("identifier");
                id.setAutofocus("autofocus");
                id.setLabel(T_object_label_name);
                if (objectID != null)
                {
                    id.setValue(objectID);
                }
                id.setRequired();
                id.setHelp(T_object_hint);
               
                // Selectbox of Curation Task options (required)
                String curateGroup = "";
                try
                {
View Full Code Here

   
    form.addLabel(T_name);
    Highlight item =form.addItem().addHighlight("big");
   
    item.addContent(schemaName+" . ");
    Text element = item.addText("newElement");
    item.addContent(" . ");
    Text qualifier = item.addText("newQualifier");
   
   
    element.setSize(15);
    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);
View Full Code Here

   
    form.addLabel(T_name);
    Highlight item =form.addItem().addHighlight("big");
   
    item.addContent(schemaName+" . ");
    Text element = item.addText("updateElement");
    item.addContent(" . ");
    Text qualifier = item.addText("updateQualifier");
   
   
    element.setSize(13);
    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);
View Full Code Here

        List identity = edit.addList("form",List.TYPE_FORM);
        identity.setHead(T_head2.parameterize(eperson.getFullName()));      
       
        if (admin)
        {
          Text email = identity.addItem().addText("email_address");
          email.setRequired();
          email.setLabel(T_email_address);
          email.setValue(emailValue);
          if (errors.contains("eperson_email_key"))
            {
                email.addError(T_error_email_unique);
            }
          else if (errors.contains("email_address"))
            {
                email.addError(T_error_email);
            }
        }
        else
        {
          identity.addLabel(T_email_address);
          identity.addItem(emailValue);
        }
       
        if (admin)
        {
          Text firstName = identity.addItem().addText("first_name");
          firstName.setRequired();
          firstName.setLabel(T_first_name);
          firstName.setValue(firstValue);
          if (errors.contains("first_name"))
            {
                firstName.addError(T_error_fname);
            }
        }
        else
        {
          identity.addLabel(T_first_name);
          identity.addItem(firstValue);
        }
       
        if (admin)
        {
          Text lastName = identity.addItem().addText("last_name");
          lastName.setRequired();
          lastName.setLabel(T_last_name);
          lastName.setValue(lastValue);
          if (errors.contains("last_name"))
            {
                lastName.addError(T_error_lname);
            }
        }
        else
        {
          identity.addLabel(T_last_name);
          identity.addItem(lastValue);
        }
       
        if (admin)
        {
          Text phone = identity.addItem().addText("phone");
          phone.setLabel(T_telephone);
          phone.setValue(phoneValue);
        }
        else
        {
          identity.addLabel(T_telephone);
          identity.addItem(phoneValue);
View Full Code Here

        }
    main.addPara(T_para1);
 
    List form = main.addList("edit-bitstream-format",List.TYPE_FORM);
   
    Text name = form.addItem().addText("short_description");
    name.setRequired();
    name.setLabel(T_name);
    name.setHelp(T_name_help);
    name.setValue(nameValue);
    name.setSize(35);
    if (errors.contains("short_description"))
        {
            name.addError(T_name_error);
        }
   
    Text mimeType = form.addItem().addText("mimetype");
    mimeType.setLabel(T_mimetype);
    mimeType.setHelp(T_mimetype_help);
    mimeType.setValue(mimetypeValue);
    mimeType.setSize(35);
   
    // 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);
    supportLevel.addOption(1,T_support_1);
    supportLevel.addOption(2,T_support_2);
    supportLevel.setOptionSelected(supportLevelValue);
   
    CheckBox internal = form.addItem().addCheckBox("internal");
    internal.setLabel(T_internal);
    internal.setHelp(T_internal_help);
    internal.addOption((internalValue != null),"true");
   
    Text extensions = form.addItem().addText("extensions");
    extensions.setLabel(T_extensions);
    extensions.setHelp(T_extensions_help);
    extensions.enableAddOperation();
    extensions.enableDeleteOperation();
    for (String extensionValue : extensionValues)
    {
      extensions.addInstance().setValue(extensionValue);
    }
   
    Item actions = form.addItem();
    actions.addButton("submit_save").setValue(T_submit_save);
    actions.addButton("submit_cancel").setValue(T_submit_cancel);
View Full Code Here

            if (this.errorFlag == org.dspace.submit.step.UploadStep.STATUS_CONTAINS_VIRUS)
            {
                file.addError(T_virus_error);
            }

            Text description = upload.addItem().addText("description");
            description.setLabel(T_description);
            description.setHelp(T_description_help);

            Button uploadSubmit = upload.addItem().addButton("submit_upload");
            uploadSubmit.setValue(T_submit_upload);
        }
View Full Code Here

    form.addLabel(T_stat_label);
    form.addItem(T_stat_info.parameterize(count_import,count_native+count_import));
   
    form.addLabel(T_search_label);
    org.dspace.app.xmlui.wing.element.Item queryItem = form.addItem();
    Text query = queryItem.addText("query");
    Button button = queryItem.addButton("submit_author");
    button.setValue(T_submit_search);
    if (!AuthorizeManager.authorizeActionBoolean(context, collection, Constants.ADD))
    {
      query.setDisabled();
      button.setDisabled();
      queryItem.addHighlight("fade").addContent(T_no_add);
    }
   
    // PARA: actions
View Full Code Here

    private void buildQueryField(int row, Cell cell) throws WingException
    {
        Request request = ObjectModelHelper.getRequest(objectModel);
        String current = decodeFromURL(request.getParameter("query" + row));

        Text text = cell.addText("query" + row);
        if (current != null)
        {
            text.setValue(current);
        }
    }
View Full Code Here

       
        feedback.addPara(T_para1);
       
        List form = feedback.addList("form",List.TYPE_FORM);
       
        Text email = form.addItem().addText("email");
        email.setAutofocus("autofocus");
        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",""));
       
View Full Code Here

TOP

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

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.