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

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


   
    div.addPara(T_para2);
   
   
    // LIST: Author search form
    List form = div.addList("mapper-form")
   
    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))
    {
View Full Code Here


      main.setHead(T_head1);
    else
      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);
   
   
    main.addHidden("administrative-continue").setValue(knot.getId());
View Full Code Here

           
            div.addHidden("showfull").setValue("true");
        }
       

        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);
       
        div.addHidden("submission-continue").setValue(knot.getId());
View Full Code Here

        Division search = body.addDivision("search","primary");
        search.setHead(T_head);
        Division query = search.addInteractiveDivision("general-query",
                "search",Division.METHOD_GET,"secondary search");

        List queryList = query.addList("search-query",List.TYPE_FORM);
       
        if (variableScope())
        {
            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);
View Full Code Here

      ccPara.addButton("submit_to_creative_commons").setValue(T_submit_to_creative_commons);
 
      // Division 4:
    //  Local onsite division
    Division onsiteDiv = div.addInteractiveDivision("submit-cclicense-offsite", actionURL, Division.METHOD_POST);
    List form = onsiteDiv.addList("submit-review", List.TYPE_FORM);
 
    form.addLabel(T_license);
    if (CreativeCommons.hasLicense(context, item))
    {
      String url = CreativeCommons.getLicenseURL(item);
      form.addItem().addXref(url,url);
     
      form.addItem().addButton("submit_no_cc").setValue(T_submit_remove);
      form.addItem().addHidden("cc_license_url").setValue(url);
        }
    else
    {
      form.addItem().addHighlight("italic").addContent(T_no_license);
    }
   
       
    // add standard control/paging buttons
        addControlButtons(form);
View Full Code Here

    {
        Date[] monthlyDates = StatisticsLoader.getMonthlyAnalysisDates();

        if (monthlyDates != null && monthlyDates.length > 0)
        {
            List statList = options.addList("statsreports");
            statList.setHead(T_choose_report);

            HashMap<String, String> params = new HashMap<String, String>();
            for (Date date : monthlyDates)
            {
                params.put("date", sdfLink.format(date));
                statList.addItemXref(super.generateURL("statistics", params), sdfDisplay.format(date));
            }
        }
    }
View Full Code Here

      div.addHidden("showfull").setValue("true");
    }


    List form = div.addList("resume-submission",List.TYPE_FORM);

    org.dspace.app.xmlui.wing.element.Item actions = form.addItem();
    actions.addButton("submit_resume").setValue(T_submit_resume);
    actions.addButton("submit_cancel").setValue(T_submit_cancel);
  }
View Full Code Here

      Division main = body.addInteractiveDivision("create-collection",contextPath+"/admin/collection",Division.METHOD_MULTIPART,"primary administrative collection");
      main.setHead(T_main_head.parameterize(parentCommunity.getMetadata("name")));
         
     
      // The grand list of metadata options
      List metadataList = main.addList("metadataList", "form");
     
      // collection name
      metadataList.addLabel(T_label_name);
      Text name = metadataList.addItem().addText("name");
      name.setSize(40);
     
      // short description
      metadataList.addLabel(T_label_short_description);
      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");

      Para buttonList = main.addPara();
      buttonList.addButton("submit_save").setValue(T_submit_save);
      buttonList.addButton("submit_cancel").setValue(T_submit_cancel);
     
View Full Code Here

   
   
      // DIVISION: authorization-actions
        Division actions = main.addDivision("edit-policy-actions");
       
        List actionsList = actions.addList("actions","form");
       
        // actions radio buttons
        actionsList.addLabel(T_label_action);
        Item actionSelectItem = actionsList.addItem();
        Radio actionSelect = actionSelectItem.addRadio("action_id");
        actionSelect.setLabel(T_label_action);
            //Select actionSelect = actionSelectItem.addSelect("action_id");
            //actionsBox.addContent(T_label_action);
            //Select actionSelect = actionsBox.addSelect("action_id");
        for( int i = 0; i < Constants.actionText.length; i++ )
        {
            // only display if action i is relevant
            //  to resource type resourceRelevance                            
            if( (Constants.actionTypeRelevance[i] & resourceRelevance) > 0)
            {
              if (actionID == i)
                actionSelect.addOption(true, i, Constants.actionText[i]);
              else
                actionSelect.addOption(i, Constants.actionText[i]);
            }
        }
        if (errors.contains("action_id"))
          actionSelect.addError(T_error_no_action);       
       
       
        // currently set group
        actionsList.addLabel(T_policy_currentGroup);
      Select groupSelect = actionsList.addItem().addSelect("group_id");
      groupSelect.setSize(5);
      for (Group group : Group.findAll(context, Group.NAME))
      {
        if (group == currentGroup)
          groupSelect.addOption(true, group.getID(), group.getName());
        else
          groupSelect.addOption(group.getID(), group.getName());
      }
      if (errors.contains("group_id"))
        groupSelect.addError(T_error_no_group);
     
       
        // the search function
        actionsList.addLabel(T_label_search);
        Item searchItem = actionsList.addItem();
        Text searchText = searchItem.addText("query");
        if (!query.equals(new String("-1")))
          searchText.setValue(query);
        searchItem.addButton("submit_search_groups").setValue(T_submit_search_groups);
       
       
        actionsList.addLabel();
        Item buttons = actionsList.addItem();
        buttons.addButton("submit_save").setValue(T_submit_save);
        buttons.addButton("submit_cancel").setValue(T_submit_cancel);
       
       
      // Display the search results table
View Full Code Here

    // Basic form with a drop down list of all the collections
    // you can submit too.
        Division div = body.addInteractiveDivision("select-collection",actionURL,Division.METHOD_POST,"primary submission");
    div.setHead(T_submission_head);
       
        List list = div.addList("select-collection", List.TYPE_FORM);
        list.setHead(T_head);      
        Select select = list.addItem().addSelect("handle");
        select.setLabel(T_collection);
        select.setHelp(T_collection_help);
       
        select.addOption("",T_collection_default);
        for (Collection collection : collections)
        {
          String name = collection.getMetadata("name");
            if (name.length() > 50)
              name = name.substring(0, 47) + "...";
          select.addOption(collection.getHandle(),name);
        }
       
        Button submit = list.addItem().addButton("submit");
        submit.setValue(T_submit_next);
    }
View Full Code Here

TOP

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

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.