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

Examples of org.dspace.app.xmlui.wing.element.List.addItem()


        
          if (deleteConstraints != null && deleteConstraints.size() > 0)
          {
            submitDelete.setDisabled();
           
            Highlight hi = identity.addItem("eperson-delete-constraint","eperson-delete-constraint").addHighlight("error");
            hi.addContent(T_delete_constraint);
            hi.addContent(" ");
           
            for (String constraint : deleteConstraints)
            {
View Full Code Here


            hi.addContent(".");
          }
        }
       
       
        Item buttons = identity.addItem();
        if (admin)
          buttons.addButton("submit_save").setValue(T_submit_save);
        buttons.addButton("submit_cancel").setValue(T_submit_cancel);
       
       
View Full Code Here

          Group[] groups = Group.allMemberGroups(context, eperson);
          for (Group group : groups)
          {
            String url = contextPath + "/admin/groups?administrative-continue="+knot.getId()+"&submit_edit_group&groupID="+group.getID();
           
            Item item = member.addItem();
            item.addXref(url,group.getName());
           
            // Check if this membership is via another group or not, if so then add a note.
            Group via = findViaGroup(eperson, group);
            if (via != null)
View Full Code Here

              item.addHighlight("fade").addContent(T_indirect_member.parameterize(via.getName()));
           
          }
         
          if (groups.length <= 0)
            member.addItem().addHighlight("italic").addContent(T_member_none);
         
        }
       
      edit.addHidden("administrative-continue").setValue(knot.getId());
  }
View Full Code Here

            idiv.setHead(getFieldLabel(field, "title"));
        List fl = idiv.addList("choicesList", "form", "choices-lookup");
        fl.setHead(T_results);

        // the <select> tag, and param values
        Item selectItem = fl.addItem("select", "choices-lookup");
        Select s = selectItem.addSelect("chooser", "choices-lookup");
        s.setSize(ConfigurationManager.getIntProperty("xmlui.lookup.select.size", 12));

        // parameters for javascript
        Hidden h = selectItem.addHidden("paramField");
View Full Code Here

        h.setValue(contextPath);

        // NOTE: the "spinner" indicator image gets added in the XSLT.

        // the text input(s)
        Item ti = fl.addItem("textFields", "choices-lookup");
        Composite textItem = ti.addComposite("textFieldsComp", "choices-lookup");
        Text t1 = textItem.addText("text1", "choices-lookup");
        if (isName)
        {
            Text t2 = textItem.addText("text2", "choices-lookup");
View Full Code Here

                t1.setHelp(m);
            }
        }

        // confirmation buttons
        Item buttItem = fl.addItem("confirmation", "choices-lookup");
        Button accept = buttItem.addButton("accept", "choices-lookup");
        accept.setValue(isRepeating ? T_add : T_accept);
        Button more = buttItem.addButton("more", "choices-lookup");
        more.setDisabled();
        more.setValue(T_more);
View Full Code Here

      }
               
        List identity = add.addList("identity",List.TYPE_FORM);
        identity.setHead(T_head2);      
       
        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);
View Full Code Here

        }
        else if (errors.contains("email_address")) {
          email.addError(T_error_email);
        }
       
        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);
View Full Code Here

        firstName.setValue(firstValue);
        if (errors.contains("first_name")) {
          firstName.addError(T_error_fname);
        }
       
        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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.