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

Examples of org.dspace.app.xmlui.wing.element.Para.addContent()


   
    suited.addPara("Below are a list of embedded fields that are normally considered usefully in an inline context.");
   
    // Text field
    Para p = suited.addPara();
    p.addContent("This is a plain 'Text' field, ");
        Text text = p.addText("text");
        text.setLabel("Text");
        if (help)
        {
            text.setHelp("This is helpful text.");
View Full Code Here


    String feedbackURL = contextPath+"/feedback";
   
        Division main = body.addDivision("not-authorized","primary administrative");
    main.setHead(T_head);
    Para para1 = main.addPara();
    para1.addContent(T_para1a);
    para1.addXref(feedbackURL,T_para1b);
    para1.addContent(T_para1c);

    main.addPara().addXref(loginURL,T_para2);
   
View Full Code Here

  
     
      if(collection != null)
      {
        Para para = main.addPara();
        para.addContent(T_collection_para);
        para.addXref(contextPath+"/handle/"+collection.getHandle(), collection.getMetadata("name"));
      }
      else if(community != null)
        {
            Para para = main.addPara();
View Full Code Here

        Division main = body.addDivision("not-authorized","primary administrative");
    main.setHead(T_head);
    Para para1 = main.addPara();
    para1.addContent(T_para1a);
    para1.addXref(feedbackURL,T_para1b);
    para1.addContent(T_para1c);

    main.addPara().addXref(loginURL,T_para2);
   
  }
 
View Full Code Here

        if (error)
        {
            text.addError("This field is in error.");
        }
        text.setValue("Current raw value");
        p.addContent(", embedded in a paragraph.");
       
        // Single Checkbox field
        p = suited.addPara();
    p.addContent("This is a single 'CheckBox' field, ");
        CheckBox checkBox = p.addCheckBox("yes-or-no");
View Full Code Here

        para.addXref(contextPath+"/handle/"+collection.getHandle(), collection.getMetadata("name"));
      }
      else if(community != null)
        {
            Para para = main.addPara();
            para.addContent(T_community_para);
            para.addXref(contextPath+"/handle/"+community.getHandle(), community.getMetadata("name"));
        }
    
      // DIVISION: group-actions
      Division actions = main.addDivision("group-edit-actions");
View Full Code Here

        text.setValue("Current raw value");
        p.addContent(", embedded in a paragraph.");
       
        // Single Checkbox field
        p = suited.addPara();
    p.addContent("This is a single 'CheckBox' field, ");
        CheckBox checkBox = p.addCheckBox("yes-or-no");
        if (help)
        {
            checkBox.setHelp("Select either yes or no.");
        }
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,
View Full Code Here

        {
            checkBox.addError("You are incorrect, try again.");
        }
        checkBox.setLabel("Yes or no");
        checkBox.addOption("yes");
        p.addContent(", embedded in a paragraph.");
       
        // File
        p = suited.addPara();
    p.addContent("This is a 'File' field, ");
        File file = p.addFile("file");
View Full Code Here

            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);
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.