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

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


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

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


        edit.setHead(T_head);   
       
        edit.addLabel(T_file);
        edit.addItem().addXref(fileUrl, fileName);
       
        Text description = edit.addItem().addText("description");
        description.setLabel(T_description);
        description.setHelp(T_description_help);
        description.setValue(bitstream.getDescription());
       
        edit.addItem(T_info1);
        if (guessedFormat != null)
        {
          edit.addLabel(T_format_detected);
          edit.addItem(guessedFormat.getShortDescription());
        }
       
        // System supported formats
        Select format = edit.addItem().addSelect("format");
        format.setLabel(T_format_selected);
       
        format.addOption(-1,T_format_default);
        for (BitstreamFormat bitstreamFormat : bitstreamFormats)
        {
          String supportLevel = "Unknown";
          if (bitstreamFormat.getSupportLevel() == BitstreamFormat.KNOWN)
            supportLevel = "known";
          else if (bitstreamFormat.getSupportLevel() == BitstreamFormat.SUPPORTED)
            supportLevel = "Supported";
          String name = bitstreamFormat.getShortDescription()+" ("+supportLevel+")";
          int id = bitstreamFormat.getID();
      
          format.addOption(id,name);
        }
        if (currentFormat != null)
        {
          format.setOptionSelected(currentFormat.getID());
        }
        else if (guessedFormat != null)
        {
          format.setOptionSelected(guessedFormat.getID());
        }
        else
        {
          format.setOptionSelected(-1);
        }
       
        edit.addItem(T_info2);
       
        // User supplied format
        Text userFormat = edit.addItem().addText("format_description");
        userFormat.setLabel(T_format_user);
        userFormat.setHelp(T_format_user_help);
        userFormat.setValue(bitstream.getUserFormatDescription());
       
        // add ID of bitstream we're editing
        div.addHidden("bitstream_id").setValue(bitstream.getID());
       
        // Note, not standard control actions, this page just goes back to the upload step.
View Full Code Here

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

            if (this.errorFlag == org.dspace.submit.step.UploadStep.STATUS_UPLOAD_ERROR)
            {
                file.addError(T_upload_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

        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");
        if (query != null)
          queryField.setValue(query);
        queryField.setHelp(T_search_help);
        actionItem.addButton("submit_search").setValue(T_go);
      
       
       
        // DIVISION: eperson-search
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

    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

      main.setHead(T_head2.parameterize(nameValue));
    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

            Select scope = queryList.addItem().addSelect("scope");
            scope.setLabel(T_search_scope);
            buildScopeList(scope);
        }
       
        Text text = queryList.addItem().addText("query");
        text.setLabel(T_full_text_search);
        text.setValue(queryString);
       
        buildSearchControls(query);
        query.addPara(null, "button-list").addButton("submit").setValue(T_go);

        // Add the result division
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.