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

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


      // 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);
View Full Code Here


     
       
        // 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();
View Full Code Here

    Division newSchema = main.addDivision("add-schema");
    newSchema.setHead(T_head2);
   
    List form = newSchema.addList("new-schema",List.TYPE_FORM);
   
    Text namespace = form.addItem().addText("namespace");
    namespace.setLabel(T_namespace);
    namespace.setRequired();
    namespace.setHelp(T_namespace_help);
    if (namespaceValue != null)
      namespace.setValue(namespaceValue);
    if (errors.contains("namespace"))
      namespace.addError(T_namespace_error);
   
    Text name = form.addItem().addText("name");
    name.setLabel(T_name);
    name.setRequired();
    name.setHelp(T_name_help);
    if (nameValue != null)
      name.setValue(nameValue);
    if (errors.contains("name"))
      name.addError(T_name_error);
   
    form.addItem().addButton("submit_add").setValue(T_submit_add);
  
   
    main.addHidden("administrative-continue").setValue(knot.getId());
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

        // 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");
            DCPersonName dp = new DCPersonName(value);
            t1.setValue(dp.getLastName());
            t2.setValue(dp.getFirstNames());
            if (isFieldMessage(field, "help.last"))
            {
                Message m = getFieldMessage(field, "help.last");
                t1.setLabel(m);
                t1.setHelp(m);
            }
            else
            {
                String m = getFieldLabel(field, "help.last");
                t1.setLabel(m);
                t1.setHelp(m);
            }
            if (isFieldMessage(field, "help.first"))
            {
                Message m = getFieldMessage(field, "help.first");
                t2.setLabel(m);
                t2.setHelp(m);
            }
            else
            {
                String m = getFieldLabel(field, "help.first");
                t2.setLabel(m);
                t2.setHelp(m);
            }
        }
        else
        {
            t1.setValue(value);
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);
        }
        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);
        }
       
        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);
        }
       
        Text phone = identity.addItem().addText("phone");
        phone.setLabel(T_telephone);
        phone.setValue(phoneValue);
       
        CheckBox canLogIn = identity.addItem().addCheckBox("can_log_in");
        canLogIn.setLabel(T_can_log_in);
        canLogIn.addOption(canLogInValue, "yes");
       
View Full Code Here

        actions.setHead(T_actions_head);
       
        List actionsList = actions.addList("actions");
        actionsList.addLabel(T_actions_item_lookup);
        Item actionItem = actionsList.addItem();
        Text queryField = actionItem.addText("identifier");
        if (query != null)
          queryField.setValue(query);
        if (errors.contains("identifier"))
          queryField.addError(T_bad_name);
        queryField.setHelp(T_search_help);
        actionItem.addButton("submit_edit").setValue(T_submit_find);
        actionsList.addLabel(T_actions_advanced);
        actionsList.addItemXref(baseURL+"&submit_wildcard", T_actions_advanced_link);
   
        // DIVISION: authorization-containerList
View Full Code Here

      // 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);
      name.setValue(thisCollection.getMetadata("name"));
     
      // short description
      metadataList.addLabel(T_label_short_description);
      Text short_description = metadataList.addItem().addText("short_description");
      short_description.setValue(thisCollection.getMetadata("short_description"));
      short_description.setSize(40);
      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"));
View Full Code Here

    
      // DIVISION: group-actions
      Division actions = main.addDivision("group-edit-actions");
      Para groupName = actions.addPara();
        groupName.addContent(T_label_name);
        Text groupText = groupName.addText("group_name");
        groupText.setValue(currentName);
        if(collection != null || community != null)
        {
          // If this group is associated with a collection or community then it is special,
          // thus they shouldn't be able to update it.
          groupText.setDisabled();
          groupText.setHelp(T_label_instructions);
        }
        else if (errors.contains("group_name") || errors.contains("group_name_duplicate"))
          groupText.addError("");
       

        Para searchBoxes = actions.addPara();
        searchBoxes.addContent(T_label_search);
        Text queryField = searchBoxes.addText("query");
        queryField.setValue(query);
        queryField.setSize(15);
        searchBoxes.addButton("submit_search_epeople").setValue(T_submit_search_people);
        searchBoxes.addButton("submit_search_groups").setValue(T_submit_search_groups);
   
       
        if (query != null)
View Full Code Here

        actionsList.addLabel(T_actions_browse);
        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);
       
       
       
       
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.