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

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


     * collection metadata.
     */
    public void addBody(Body body) throws SAXException, WingException,
            UIException, SQLException, IOException, AuthorizeException
    {
        Division division = body.addDivision("comunity-browser", "primary");
        division.setHead(T_head);
        division.addPara(T_select);

        TreeNode root = buildTree(Community.findAllTop(context));
       
        boolean full = ConfigurationManager.getBooleanProperty("xmlui.community-list.render.full", true);
       
        if (full)
        {
          ReferenceSet referenceSet = division.addReferenceSet("community-browser",
                  ReferenceSet.TYPE_SUMMARY_LIST,null,"hierarchy");
         
          ArrayList<TreeNode> rootNodes = root.getChildrenOfType(Constants.COMMUNITY);
         
          for (TreeNode node : rootNodes)
          {
              buildReferenceSet(referenceSet,node);  
          }
        }
        else
        {
          List list = division.addList("comunity-browser");
         
          ArrayList<TreeNode> rootNodes = root.getChildrenOfType(Constants.COMMUNITY);
          
           for (TreeNode node : rootNodes)
           {
View Full Code Here


   
 
  public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {
    Request request = ObjectModelHelper.getRequest(objectModel);
   
    Division div = body.addDivision("failed_auth");
    div.setHead(T_h1);
    div.addPara((Message)request.getSession().getAttribute(SESSION_ATTRIBUTE_NAME));
    deRegisterErrorCode(request);
  }
View Full Code Here

     
      boolean blankLines = false;
      if (options != null && options[0].equals("blankLines"))
        blankLines = true;
     
        Division div = body.addInteractiveDivision("html-test", "", Division.METHOD_GET, "primary");
    
        div.setHead("HTML Test");
       
        div.addPara("This page tests Manakin's ability to handle HTML fragments, this ability is normally used to handle user-inputed text. There are two reasons for using this ability of including user supplied HTML fragments 1) it doesn't break the abstraction between themes and aspects, 2) it provides a safety mechanism preventing security vulnerabilities such as cross site scripting.");
       
        List form = div.addList("html-test",List.TYPE_FORM);
        TextArea fragmentField = form.addItem().addTextArea("fragment");
        fragmentField.setLabel("Fragment");
        fragmentField.setHelp("Enter free formed text, you may use <p>,<a>,<b>,<i>, or <img> tags.");
        fragmentField.setSize(15, 50);
        fragmentField.setValue(fragment);
       
        CheckBox optionsField = form.addItem().addCheckBox("options");
        optionsField.setLabel("Options");
        optionsField.addOption("blankLines", "Treat blank lines as paragraph breaks.");
        if (blankLines)
          optionsField.setOptionSelected("blankLines");
       
       
        Button submit = form.addItem().addButton("submit");
        submit.setValue("Test HTML Rendering");
       
        Division test = div.addDivision("html-test-sample");
        test.setHead("Rendered Sample");
       
        test.addSimpleHTMLFragment(blankLines, fragment);
       
    }
View Full Code Here

                        throw new UIException(se);
                }
               
               

                Division div = body.addInteractiveDivision("submit-describe",actionURL,Division.METHOD_POST,"primary submission");
                div.setHead(T_submission_head);
                addSubmissionProgressList(div);

                List form = div.addList("submit-describe",List.TYPE_FORM);
                form.setHead(T_head);

                // Iterate over all inputs and add it to the form.
                for(DCInput dcInput : inputs)
                {
View Full Code Here

    if (request.getParameter("activity") != null)
      option = OPTIONS.activity;
    if (request.getParameter("harvest") != null)
      option = OPTIONS.harvest;
   
    Division div = body.addInteractiveDivision("control-panel", contextPath+"/admin/panel", Division.METHOD_POST, "primary administrative");
    div.setHead(T_head);
   
    // LIST: options
    List options = div.addList("options",List.TYPE_SIMPLE,"horizontal");
   
    // our options, selected or not....
    if (option == OPTIONS.java)
      options.addItem().addHighlight("bold").addXref("?java",T_option_java);
    else
      options.addItemXref("?java",T_option_java);
   
    if (option == OPTIONS.dspace)
      options.addItem().addHighlight("bold").addXref("?dspace",T_option_dspace);
    else
      options.addItemXref("?dspace",T_option_dspace);
   
    if (option == OPTIONS.alerts)
      options.addItem().addHighlight("bold").addXref("?alerts",T_option_alerts);
    else
      options.addItemXref("?alerts",T_option_alerts);
   
    if (option == OPTIONS.harvest)
      options.addItem().addHighlight("bold").addXref("?harvest",T_option_harvest);
    else
      options.addItemXref("?harvest",T_option_harvest);
   
    String userSortTarget = "?activity";
    if (request.getParameter("sortBy") != null)
      userSortTarget += "&sortBy="+request.getParameter("sortBy");
    if (option == OPTIONS.activity)
      options.addItem().addHighlight("bold").addXref(userSortTarget,"Current Activity");
    else
      options.addItemXref(userSortTarget,"Current Activity");
   
   
    // The main content:
    if (option == OPTIONS.java)
      addJavaInformation(div);
    else if (option == OPTIONS.dspace)
      addDSpaceConfiguration(div);
    else if (option == OPTIONS.alerts)
      addAlerts(div);
    else if (option == OPTIONS.activity)
      addActivity(div);
    else if (option == OPTIONS.harvest)
      addHarvest(div);
    else
    {
      div.addPara(T_select_panel);
    }
   
  }
View Full Code Here

        pageMeta.addTrail().addContent(T_trail_forgot_password);
    }
   
   public void addBody(Body body) throws WingException {
       
       Division register = body.addInteractiveDivision("reset-password",
               contextPath+"/register",Division.METHOD_POST,"primary");
      
       register.setHead(T_head);
      
       EPersonUtils.forgottProgressList(register,2);
      
       register.addPara(T_para1);
      
       List form = register.addList("form",List.TYPE_FORM);
      
       form.addLabel(T_email_address);
       form.addItem(email);
      
       Field password = form.addItem().addPassword("password");
       password.setRequired();
       password.setLabel(T_new_password);
       if (errors.contains("password"))
       {
           password.addError(T_error_invalid_password);
       }
      
       Field passwordConfirm = form.addItem().addPassword("password_confirm");
       passwordConfirm.setRequired();
       passwordConfirm.setLabel(T_confirm_password);
       if (errors.contains("password_confirm"))
       {
           passwordConfirm.addError(T_error_unconfirmed_password);
       }
      
       form.addItem().addButton("submit").setValue(T_submit);
      
       register.addHidden("eperson-continue").setValue(knot.getId());
   }
View Full Code Here

    if (request.getParameter("help") != null)
      help = true;
    if (request.getParameter("error") != null)
      error = true;
   
        Division div = body.addInteractiveDivision("test", "", "post", "primary");
        div.setHead("Inline form test");
        div.addPara("There are two options you can use to control how this page is generated. First is the help parameter, if this is present then help text will be provided for all fields. Next is the error parameter, if it is provided then all fields will be generated in error conditions.");
   
    if (help)
      div.addPara().addXref(makeURL(false,error),"Turn help OFF");
    else
      div.addPara().addXref(makeURL(true,error),"Turn help ON");
     
    if (error)
      div.addPara().addXref(makeURL(help,false),"Turn errors OFF");
    else
      div.addPara().addXref(makeURL(help,true),"Turn errors ON");
   
   
    Division suited = body.addDivision("suited");
    suited.setHead("Fields suited towards being used inline");
   
    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 helpfull text.");
        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 singe 'CheckBox' field, ");
        CheckBox checkBox = p.addCheckBox("yes-or-no");
        if (help)
          checkBox.setHelp("Select either yes or no.");
        if (error)
          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");
        file.setLabel("File");
        if (help)
          file.setHelp("Upload a file.");
        if (error)
          file.addError("This field is in error.");
        p.addContent(", embedded in a paragraph.");
       
        // Select (single)
        p = suited.addPara();
    p.addContent("This is single 'Select' (aka dropdown) field, ");
        Select select = p.addSelect("select");
        select.setLabel("Select (single)");
        if (help)
          select.setHelp("Select one of the options");
        if (error)
          select.addError("This field is in error.");
        select.addOption("one","uno");
        select.addOption("two","dos");
        select.addOption("three","tres");
        select.addOption("four","cuatro");
        select.addOption("five","cinco");
        select.setOptionSelected("one");
        p.addContent(", embedded in a paragraph.");
       
        // Button
        p = suited.addPara();
    p.addContent("This is a 'Button' field, ");
        Button button = p.addButton("button");
        button.setLabel("Button");
        button.setValue("When you touch me I do things, lots of things");
        if (help)
          button.setHelp("Submit buttons allow the user to submit the form.");
        if (error)
          button.addError("This button is in error.");
        p.addContent(", embedded in a paragraph.");
       
       
       
        Division unsuited = body.addDivision("unsuited");
        unsuited.setHead("Fields typicaly unsuited towards being used inline");
   
        unsuited.addPara("Below are a list of embedded fields that are normally considered useless in an inline context. This is because there widgets normally cross multiple lines making them hard to render inline. However these are all legal, but perhaps not advisable, and in some circumstances may be needed.");
   
       
        // Text Area Field
        p = unsuited.addPara();
    p.addContent("This is a 'Text Area' field, ");
        TextArea textArea = p.addTextArea("textarea");
        textArea.setLabel("Text Area");
        if (help)
          textArea.setHelp("This is helpfull text.");
        if (error)
          textArea.addError("This field is in error.");
        textArea.setValue("This is the raw value");
        p.addContent(", embedded in a paragraph.");
       
        // Multi-option Checkbox field
        p = unsuited.addPara();
    p.addContent("This is a multi-option 'CheckBox' field, ");
        checkBox = p.addCheckBox("fruit");
        if (help)
          checkBox.setHelp("Select all the fruits that you like to eat");
        if (error)
          checkBox.addError("You are incorrect you actualy do like Tootse Rolls.");
        checkBox.setLabel("fruits");
        checkBox.addOption("apple","Apples");
        checkBox.addOption(true,"orange","Oranges");
        checkBox.addOption("pear","Pears");
        checkBox.addOption("tootsie","Tootsie Roll");
        checkBox.addOption(true,"cherry","Cherry");
        p.addContent(", embedded in a paragraph.");
       
        // multi-option Radio field
        p = unsuited.addPara();
    p.addContent("This is a multi-option 'Radio' field, ");
        Radio radio = p.addRadio("sex");
        radio.setLabel("Football colors");        
        if (help)
          radio.setHelp("Select the colors of the best (college) football team.");
        if (error)
          radio.addError("Error, Maroon & White is the only acceptable answer.");
        radio.addOption("ut","Burnt Orange & White");
        radio.addOption(true,"tamu","Maroon & White");
        radio.addOption("ttu","Tech Red & Black");
        radio.addOption("baylor","Green & Gold");
        radio.addOption("rice","Blue & Gray");
        radio.addOption("uh","Scarlet Red & Albino White");
        p.addContent(", embedded in a paragraph.");

        // Select (multiple)
        p = unsuited.addPara();
    p.addContent("This is multiple 'Select' field, ");
        select = p.addSelect("multi-select");
        select.setLabel("Select (multiple)");
        select.setMultiple();
        select.setSize(4);
        if (help)
          select.setHelp("Select one or more options");
        if (error)
          select.addError("This field is in error.");
        select.addOption("one","uno");
        select.addOption("two","dos");
        select.addOption("three","tres");
        select.addOption("four","cuatro");
        select.addOption("five","cinco");
        select.setOptionSelected("one");
        select.setOptionSelected("three");
        select.setOptionSelected("five");
        p.addContent(", embedded in a paragraph.");
       
        // Composite
        p = unsuited.addPara();
    p.addContent("This is a 'Composite' field of two text fields, ");
        Composite composite = p.addComposite("composite-2text");
        composite.setLabel("Composite (two text fields)");
        if (help)
          composite.setHelp("I am the help for the entire composite");
View Full Code Here

           action += "/profile";
      
      
      
      
       Division profile = body.addInteractiveDivision("information",
               action,Division.METHOD_POST,"primary");
      
       if (registering)
           profile.setHead(T_head_create);
       else
           profile.setHead(T_head_update);
      
       // Add the progress list if we are registering a new user
       if (registering)
           EPersonUtils.registrationProgressList(profile,2);
      
      
      
      
      
       List form = profile.addList("form",List.TYPE_FORM);
      
       List identity = form.addList("identity",List.TYPE_FORM);
       identity.setHead(T_head_identify);
      
       // Email
       identity.addLabel(T_email_address);
       identity.addItem(email);
      
       // First name
       Text firstName = identity.addItem().addText("first_name");
       firstName.setRequired();
       firstName.setLabel(T_first_name);
       firstName.setValue(defaultFirstName);
       if (errors.contains("first_name"))
       {
           firstName.addError(T_error_required);
       }
       if (!registering && !ConfigurationManager.getBooleanProperty("xmlui.user.editmetadata", true))
           firstName.setDisabled();
      
       // Last name
       Text lastName = identity.addItem().addText("last_name");
       lastName.setRequired();
       lastName.setLabel(T_last_name);
       lastName.setValue(defaultLastName);
       if (errors.contains("last_name"))
       {
           lastName.addError(T_error_required);
       }
       if (!registering &&!ConfigurationManager.getBooleanProperty("xmlui.user.editmetadata", true))
           lastName.setDisabled();
      
       // Phone
       Text phone = identity.addItem().addText("phone");
       phone.setLabel(T_telephone);
       phone.setValue(defaultPhone);
       if (errors.contains("phone"))
       {
           phone.addError(T_error_required);
       }
       if (!registering && !ConfigurationManager.getBooleanProperty("xmlui.user.editmetadata", true))
           phone.setDisabled();
       
       // Language
       Select lang = identity.addItem().addSelect("language");
       lang.setLabel(T_language);
       if (supportedLocales.length > 0)
       {
           for (Locale lc : supportedLocales)
           {
               lang.addOption(lc.toString(), lc.getDisplayName());
           }
       }
       else
       {
           lang.addOption(I18nUtil.DEFAULTLOCALE.toString(), I18nUtil.DEFAULTLOCALE.getDisplayName());
       }
       lang.setOptionSelected((defaultLanguage == null || defaultLanguage.equals("")) ?
                              I18nUtil.DEFAULTLOCALE.toString() : defaultLanguage);
       if (!registering && !ConfigurationManager.getBooleanProperty("xmlui.user.editmetadata", true))
           lang.setDisabled();

       // Subscriptions
       if (!registering)
       {
           List subscribe = form.addList("subscriptions",List.TYPE_FORM);
           subscribe.setHead(T_subscriptions);
          
           subscribe.addItem(T_subscriptions_help);
          
           Collection[] currentList = Subscribe.getSubscriptions(context, context.getCurrentUser());
           Collection[] possibleList = Collection.findAll(context);
          
           Select subscriptions = subscribe.addItem().addSelect("subscriptions");
           subscriptions.setLabel(T_email_subscriptions);
           subscriptions.setHelp("");
           subscriptions.enableAddOperation();
           subscriptions.enableDeleteOperation();
          
           subscriptions.addOption(-1,T_select_collection);
           for (Collection possible : possibleList)
           {
                   String name = possible.getMetadata("name");
                   if (name.length() > 50)
                           name = name.substring(0, 47) + "...";
                   subscriptions.addOption(possible.getID(), name);
           }
                  
           for (Collection collection: currentList)
                   subscriptions.addInstance().setOptionSelected(collection.getID());
       }
      
      
       if (allowSetPassword)
       {
           List security = form.addList("security",List.TYPE_FORM);
           security.setHead(T_head_security);
          
           if (registering)
           {
                   security.addItem().addContent(T_create_password_instructions);
           }
           else
           {
                   security.addItem().addContent(T_update_password_instructions);
           }
          
          
           Field password = security.addItem().addPassword("password");
           password.setLabel(T_password);
           if (registering)
                   password.setRequired();
           if (errors.contains("password"))
           {
               password.addError(T_error_invalid_password);
           }
          
           Field passwordConfirm = security.addItem().addPassword("password_confirm");
           passwordConfirm.setLabel(T_confirm_password);
           if (registering)
                   passwordConfirm.setRequired();
           if (errors.contains("password_confirm"))
           {
               passwordConfirm.addError(T_error_unconfirmed_password);
           }
       }
      
       Button submit = form.addItem().addButton("submit");
       if (registering)
           submit.setValue(T_submit_update);
       else
           submit.setValue(T_submit_create);
      
       profile.addHidden("eperson-continue").setValue(knot.getId());
      
      
      
       if (!registering)
       {
                // Add a list of groups that this user is apart of.
                        Group[] memberships = Group.allMemberGroups(context, context.getCurrentUser());
               
               
                        // Not a member of any groups then don't do anything.
                        if (!(memberships.length > 0))
                                return;
                       
                        List list = profile.addList("memberships");
                        list.setHead(T_head_auth);
                        for (Group group: memberships)
                        {
                                list.addItem(group.getName());
                        }
View Full Code Here

            String query = getQuery();
            int hitCount = queryResults.getHitCount();
            para.addContent(T_result_query.parameterize(query,hitCount));
           
            Division results = search.addDivision("search-results","primary");
           
            if (searchScope instanceof Community)
            {
                Community community = (Community) searchScope;
                String communityName = community.getMetadata("name");
                results.setHead(T_head1_community.parameterize(communityName));
            }
            else if (searchScope instanceof Collection)
            {
                Collection collection = (Collection) searchScope;
                String collectionName = collection.getMetadata("name");
                results.setHead(T_head1_collection.parameterize(collectionName));
            }
            else
            {
                results.setHead(T_head1_none);
            }

            if (queryResults.getHitCount() > 0)
            {
                // Pagination variables.
                int itemsTotal = queryResults.getHitCount();
                int firstItemIndex = queryResults.getStart() + 1;
                int lastItemIndex = queryResults.getStart()
                        + queryResults.getPageSize();
                if (itemsTotal < lastItemIndex)
                    lastItemIndex = itemsTotal;
                int currentPage = (queryResults.getStart() / queryResults
                        .getPageSize()) + 1;
                int pagesTotal = ((queryResults.getHitCount() - 1) / queryResults
                        .getPageSize()) + 1;
                Map<String, String> parameters = new HashMap<String, String>();
                parameters.put("page", "{pageNum}");
                String pageURLMask = generateURL(parameters);

                results.setMaskedPagination(itemsTotal, firstItemIndex,
                        lastItemIndex, currentPage, pagesTotal, pageURLMask);

                // Look for any communities or collections in the mix
                ReferenceSet referenceSet = null;
                boolean resultsContainsBothContainersAndItems = false;
               
                @SuppressWarnings("unchecked") // This cast is correct
                java.util.List<String> containerHandles = queryResults.getHitHandles();
                for (String handle : containerHandles)
                {
                    DSpaceObject resultDSO = HandleManager.resolveToObject(
                            context, handle);

                    if (resultDSO instanceof Community
                            || resultDSO instanceof Collection)
                    {
                        if (referenceSet == null) {
                            referenceSet = results.addReferenceSet("search-results-repository",
                                    ReferenceSet.TYPE_SUMMARY_LIST,null,"repository-search-results");
                            // Set a heading showing that we will be listing containers that matched:
                            referenceSet.setHead(T_head2);
                            resultsContainsBothContainersAndItems = true;
                        }
                        referenceSet.addReference(resultDSO);
                    }
                }
               
               
                // Look for any items in the result set.
                referenceSet = null;
               
                @SuppressWarnings("unchecked") // This cast is correct
                java.util.List<String> itemHandles = queryResults.getHitHandles();
                for (String handle : itemHandles)
                {
                    DSpaceObject resultDSO = HandleManager.resolveToObject(
                            context, handle);

                    if (resultDSO instanceof Item)
                    {
                        if (referenceSet == null) {
                            referenceSet = results.addReferenceSet("search-results-repository",
                                    ReferenceSet.TYPE_SUMMARY_LIST,null,"repository-search-results");
                            // Only set a heading if there are both containers and items.
                            if (resultsContainsBothContainersAndItems)
                              referenceSet.setHead(T_head3)
                        }
                        referenceSet.addReference(resultDSO);
                    }
                }
               
            }
            else
            {
                results.addPara(T_no_results);
            }
        }// Empty query
    }
View Full Code Here

        DCValue[] publisher = item.getDC("publisher", null, Item.ANY);
     
     
        // Generate a from asking the user two questions: multiple
        // titles & published before.
      Division div = body.addInteractiveDivision("submit-initial-questions", actionURL, Division.METHOD_POST, "primary submission");
      div.setHead(T_submission_head);
      addSubmissionProgressList(div);
     
      List form = div.addList("submit-initial-questions", List.TYPE_FORM);
        form.setHead(T_head);   
       
        CheckBox multipleTitles = form.addItem().addCheckBox("multiple_titles");
        multipleTitles.setLabel(T_multiple_titles);
        multipleTitles.setHelp(T_multiple_titles_help);
        multipleTitles.addOption("true");
        if (submission.hasMultipleTitles())
        {
          multipleTitles.setOptionSelected("true");
        }
       
        // If any titles would be removed if the user unselected this box then
        // warn the user!
        if (titles.length > 0)
        {
          org.dspace.app.xmlui.wing.element.Item note = form.addItem();
          note.addHighlight("bold").addContent(T_important_note);
          note.addContent(T_multiple_titles_note);
          for (int i=0; i< titles.length; i++)
          {
            if (i > 0)
              note.addContent(T_separator);
            note.addContent("\"");
            note.addHighlight("bold").addContent(titles[i].value);
            note.addContent("\"");
          }
        }
       
        CheckBox publishedBefore = form.addItem().addCheckBox("published_before");
        publishedBefore.setLabel(T_published_before);
        publishedBefore.setHelp(T_published_before_help);
        publishedBefore.addOption("true");
        if (submission.isPublishedBefore())
        {
          publishedBefore.setOptionSelected("true");
        }
       
        // If any metadata would be removed if the user unselected the box then warn
        // the user about what will be removed.
        if (dateIssued.length > 0 || citation.length > 0 || publisher.length > 0)
        {
          org.dspace.app.xmlui.wing.element.Item note = form.addItem();
          note.addHighlight("bold").addContent(T_important_note);
          note.addContent(T_published_before_note);
         
          // Start a convoluted processes to build an english list of values.
          // Format: Date Issued (value, value, value), Citation (value, value, value), Publisher (value, value, value)
          if (dateIssued.length > 0)
          {
            note.addHighlight("bold").addContent(T_date_issued);
            note.addContent(T_open);
            for (int i=0; i< dateIssued.length; i++)
            {
              if (i > 0)
                note.addContent(T_separator);
              note.addContent(dateIssued[i].value);
            }
            note.addContent(T_close);
          }
         
          // Conjunction
          if (dateIssued.length > 0 && (citation.length > 0 || publisher.length > 0))
            note.addContent(T_separator);
         
          if (dateIssued.length > 0 && citation.length > 0 && publisher.length == 0)
          {
            note.addContent(T_and);
          }
         
          // Citation
          if (citation.length > 0)
          {
            note.addHighlight("bold").addContent(T_citation);
            note.addContent(T_open);
            for (int i=0; i< citation.length; i++)
            {
              if (i > 0)
                note.addContent(T_separator);
              note.addContent(citation[i].value);
            }
            note.addContent(T_close);
          }
         
         
          // Conjunction
          if (citation.length > 0 && publisher.length > 0)
          {
            note.addContent(T_separator);
          }
         
          if ((dateIssued.length > 0 || citation.length > 0) && publisher.length > 0)
          {
            note.addContent(T_and);
          }
         
         
          // Publisher
          if (publisher.length > 0)
          {
            note.addHighlight("bold").addContent(T_publisher);
            note.addContent(T_open);
            for (int i=0; i< publisher.length; i++)
            {
              if (i > 0)
                note.addContent(T_separator);
              note.addContent(publisher[i].value);
            }
            note.addContent(T_close);
          }
        }
       
        //add standard control/paging buttons
        addControlButtons(form);
       
        //Since we already warn users about the metadata pruning to happen
        //if they uncheck an already checked box, then
        //we can let the prune process occur immediately!
        div.addHidden("prune").setValue("true");
       
    }
View Full Code Here

TOP

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

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.