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

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


            }
            while (i > tenYearBreak);

            // Create a free text entry box for the year
            jumpForm = jump.addPara();
            jumpForm.addContent(T_jump_year);
            jumpForm.addText(BrowseParams.STARTS_WITH).setHelp(T_jump_year_help);
           
            jumpForm.addButton("submit").setValue(T_go);
        }
        else
View Full Code Here


                        .toString(c));
            }

            // Create a free text field for the initial characters
            Para jumpForm = jump.addPara();
            jumpForm.addContent(T_starts_with);
            jumpForm.addText(BrowseParams.STARTS_WITH).setHelp(T_starts_with_help);
           
            jumpForm.addButton("submit").setValue(T_go);
        }
    }
View Full Code Here

                Set<SortOption> sortOptions = SortOption.getSortOptions();
               
                // Only generate the list if we have multiple columns
                if (sortOptions.size() > 1)
                {
                    controlsForm.addContent(T_sort_by);
                    Select sortSelect = controlsForm.addSelect(BrowseParams.SORT_BY);
   
                    for (SortOption so : sortOptions)
                    {
                        if (so.isVisible())
View Full Code Here

                throw new WingException("Unable to get sort options", se);
            }
        }

        // Create a control to changing ascending / descending order
        controlsForm.addContent(T_order);
        Select orderSelect = controlsForm.addSelect(BrowseParams.ORDER);
        orderSelect.addOption("ASC".equals(params.scope.getOrder()), "ASC", T_order_asc);
        orderSelect.addOption("DESC".equals(params.scope.getOrder()), "DESC", T_order_desc);

        // Create a control for the number of records to display
View Full Code Here

        Select orderSelect = controlsForm.addSelect(BrowseParams.ORDER);
        orderSelect.addOption("ASC".equals(params.scope.getOrder()), "ASC", T_order_asc);
        orderSelect.addOption("DESC".equals(params.scope.getOrder()), "DESC", T_order_desc);

        // Create a control for the number of records to display
        controlsForm.addContent(T_rpp);
        Select rppSelect = controlsForm.addSelect(BrowseParams.RESULTS_PER_PAGE);
       
        for (int i : RESULTS_PER_PAGE_PROGRESSION)
        {
            rppSelect.addOption((i == info.getResultsPerPage()), i, Integer.toString(i));
View Full Code Here

            if (collections.length > 0)
            {
                Division start = division.addDivision("start-submision");
                start.setHead(T_s_head1);
                Para p = start.addPara();
                p.addContent(T_s_info1a);
                p.addXref(contextPath+"/submit",T_s_info1b);
                Para secondP = start.addPara();
                secondP.addContent(T_s_info1c);
                return;
            }
View Full Code Here

                start.setHead(T_s_head1);
                Para p = start.addPara();
                p.addContent(T_s_info1a);
                p.addXref(contextPath+"/submit",T_s_info1b);
                Para secondP = start.addPara();
                secondP.addContent(T_s_info1c);
                return;
            }
      }

      Division unfinished = division.addDivision("unfinished-submisions");
View Full Code Here

      }

      Division unfinished = division.addDivision("unfinished-submisions");
      unfinished.setHead(T_s_head2);
      Para p = unfinished.addPara();
      p.addContent(T_s_info2a);
      p.addHighlight("bold").addXref(contextPath+"/submit",T_s_info2b);
      p.addContent(T_s_info2c);

      // Calculate the number of rows.
      // Each list pluss the top header and bottom row for the button.
View Full Code Here

      Division unfinished = division.addDivision("unfinished-submisions");
      unfinished.setHead(T_s_head2);
      Para p = unfinished.addPara();
      p.addContent(T_s_info2a);
      p.addHighlight("bold").addXref(contextPath+"/submit",T_s_info2b);
      p.addContent(T_s_info2c);

      // Calculate the number of rows.
      // Each list pluss the top header and bottom row for the button.
      int rows = unfinishedItems.length + supervisedItems.length + 2;
      if (supervisedItems.length > 0 && unfinishedItems.length > 0)
View Full Code Here

        //Display limit text & link to allow user to override this default limit
        if(!displayAll && count == limit)
        {
            Para limitedList = completedSubmissions.addPara();
            limitedList.addContent(T_c_limit);
            limitedList.addXref(contextPath + "/submissions?all", T_c_displayall);
        }   
    }

}
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.