/** * Set the head element which is the label associated with this list. This * method should be called before any other elements have been added to the * list. * * @param characters * (Required) Untranslated character data to be included as the * list's head. */ public void setHead(String characters) throws WingException { Head head = setHead(); head.addContent(characters); }
/** * Set the head element which is the label associated with this list. This * method should be called before any other elements have been added to the * list. * * @param key * (Required) Key to the i18n catalogue to translate the content * into the language preferred by the user. */ public void setHead(Message key) throws WingException { Head head = setHead(); head.addContent(key); }
/** * Add additional navigation options. This is to allow selection of a monthly report * * @param options * @throws SAXException * @throws WingException * @throws UIException * @throws SQLException * @throws IOException * @throws AuthorizeException */ public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Date[] monthlyDates = StatisticsLoader.getMonthlyAnalysisDates(); if (monthlyDates != null && monthlyDates.length > 0) { List statList = options.addList("statsreports"); statList.setHead(T_choose_report); HashMap<String, String> params = new HashMap<String, String>(); for (Date date : monthlyDates) { params.put("date", sdfLink.format(date)); statList.addItemXref(super.generateURL("statistics", params), sdfDisplay.format(date)); } } }
public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { List test = options.addList("XMLTest"); test.setHead("XML Test"); test.addItemXref(contextPath + "/xmltest/structural","Structural"); test.addItemXref(contextPath + "/xmltest/HTML","HTML"); List form = test.addList("FormTest"); form.setHead("Forms"); form.addItemXref(contextPath + "/xmltest/form/basic","Basic"); form.addItemXref(contextPath + "/xmltest/form/inline","In line"); form.addItemXref(contextPath + "/xmltest/form/advanced","Advanced"); } }
cocoon.setHead(T_COCOON_HEAD);
/** * Add the statistics aspect navigational options. */ public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { /* Create skeleton menu structure to ensure consistent order between aspects, * even if they are never used */ options.addList("browse"); options.addList("account"); options.addList("context"); options.addList("administrative"); List statistics = options.addList("statistics"); DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if(dso != null && dso.getHandle() != null){ statistics.setHead(T_statistics_head); statistics.addItemXref(contextPath + "/handle/" + dso.getHandle() + "/statistics", T_statistics_view); }else{ // This Navigation is only called either on a DSO related page, or the homepage // If on the home page: add statistics link for the home page statistics.setHead(T_statistics_head); statistics.addItemXref(contextPath + "/statistics-home", T_statistics_view); } } }
initSection.setHead(T_head);
list.setHead(T_head); Select select = list.addItem().addSelect("handle"); select.setLabel(T_collection);
review.setHead(T_head);
List browse = browseDiv.addList("collection-browse", List.TYPE_SIMPLE, "collection-browse"); browse.setHead(T_head_browse); String url = contextPath + "/handle/" + collection.getHandle();
options.addList("administrative"); account.setHead(T_my_account); EPerson eperson = this.context.getCurrentUser(); if (eperson != null)
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Collection collection = submission.getCollection(); String actionURL = contextPath + "/handle/"+collection.getHandle() + "/submit/" + knot.getId() + ".continue"; Division div = body.addInteractiveDivision("submit-save-or-cancel",actionURL, Division.METHOD_POST,"primary submission"); div.setHead(T_submission_head); addSubmissionProgressList(div); List saveOrCancel = div.addList("submit-review", List.TYPE_FORM); saveOrCancel.setHead(T_head); saveOrCancel.addItem(T_info1); org.dspace.app.xmlui.wing.element.Item actions = saveOrCancel.addItem(); actions.addButton("submit_back").setValue(T_submit_back); actions.addButton("submit_save").setValue(T_submit_save); actions.addButton("submit_remove").setValue(T_submit_remove); } }
controlsList.setHead(T_sort_head);
uploadSection.setHead(T_head);
upload.setHead(T_head1);
form.setHead(T_alerts_head);
dspace.setHead(T_DSPACE_HEAD);