/** * Append a table to the division. When creating a table the number of rows * and columns contained in the table must be pre computed and provided * here. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * * @param rows * (Required) The number of rows in the table. * @param cols * (Required) The number of columns in the table. * * @return A new table. */ public Table addTable(String name, int rows, int cols) throws WingException { return this.addTable(name, rows, cols, null); }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { String error = ""; try { error = parameters.getParameter("error"); } catch (ParameterException e) { //Should not happen. assert false; } Division div = body.addDivision("error"); Table table = div.addTable("table0",2,1); table.addRow().addCell().addContent("An error has occured:"); table.addRow().addCell().addContent(error); } }
moved.addPara(T_para1); Table table = moved.addTable("metadata-field-move",fields.size() + 1, 3); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_column1);
deleted.addPara(T_para1); Table table = deleted.addTable("format-confirm-delete",formats.size() + 1, 3); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_column1);
deleted.addPara(T_confirm_para); Table table = deleted.addTable("epeople-confirm-delete",epeople.size() + 1, 1); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_head_id);
deleted.addPara(T_para1); Table table = deleted.addTable("bitstreams-confirm-delete",bitstreams.size() + 1, 1);
deleted.addPara(T_para); Table table = deleted.addTable("groups-list",groups.size() + 1, 3); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_column1);
warning.addContent(T_para2); Table table = deleted.addTable("schema-confirm-delete",schemas.size() + 1, 3); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_column1);
Table table = inprogress.addTable("submissions-inprogress",inprogressItems.length+1,3); Row header = table.addRow(Row.ROLE_HEADER); header.addCellContent(T_p_column1);
deleted.addPara(T_confirm_para); Table table = deleted.addTable("policies-confirm-delete",policies.size() + 1, 4); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_head_id);
Table table = wrapper.addTable("list-table", 1, 1, title == null ? "" : "tableWithTitle"); if (title != null)
protected void buildSearchControls(Division div) throws WingException, SQLException { Request request = ObjectModelHelper.getRequest(objectModel); Table controlsTable = div.addTable("search-controls", 1, 3); Row controlsRow = controlsTable.addRow(Row.ROLE_DATA); // Create a control for the number of records to display Cell rppCell = controlsRow.addCell(); rppCell.addContent("pagesize"); Select rppSelect = rppCell.addSelect("rpp"); for (int i : RESULTS_PER_PAGE_PROGRESSION) { rppSelect.addOption((i == getParameterRpp()), i, Integer.toString(i)); } Cell filterCell = controlsRow.addCell(); // Create a drop down of the different sort columns available int selectedCollectionId = Util.getIntParameter(request, "filter_collection"); filterCell.addContent("Collection filter:"); Select sortSelect = filterCell.addSelect("filter_collection"); sortSelect.addOption(-1 == selectedCollectionId,-1, "None"); Collection[] collections = Collection.findAll(context); for (Collection collection : collections) { sortSelect.addOption(collection.getID() == selectedCollectionId, collection.getID(), collection.getName()); } controlsRow.addCell().addButton("submit_search_controls").setValue(T_go); }
Table table = mainDiv.addTable("list-table", matrix.length, 2, title == null ? "" : "tableWithTitle"); if (title != null)
private void renderMainPage(Division div) throws WingException { Table table = div.addTable("workflow-actions", 1, 1); table.setHead(T_info1); // Approve task Row row = table.addRow(); row.addCellContent(T_approve_help); row.addCell().addButton("submit_approve").setValue(T_approve_submit); // Reject item row = table.addRow(); row.addCellContent(T_reject_help); row.addCell().addButton("submit_reject").setValue(T_reject_submit); // Everyone can just cancel row = table.addRow(); row.addCell(0, 2).addButton("submit_leave").setValue(T_cancel_submit); div.addHidden("page").setValue(org.dspace.xmlworkflow.state.actions.processingaction.ReviewAction.MAIN_PAGE); }
private void renderMainPage(Division div) throws WingException { Table table = div.addTable("workflow-actions", 1, 1); table.setHead(T_info1); // Approve task Row row = table.addRow(); row.addCellContent(T_approve_help); row.addCell().addButton("submit_approve").setValue(T_approve_submit); // Edit metadata row = table.addRow(); row.addCellContent(T_edit_help); row.addCell().addButton("submit_edit").setValue(T_edit_submit); // Everyone can just cancel row = table.addRow(); row.addCell(0, 2).addButton("submit_leave").setValue(T_submit_cancel); div.addHidden("page").setValue(ReviewAction.MAIN_PAGE); } }
private void renderMainPage(Division div) throws WingException { Table table = div.addTable("workflow-actions", 1, 1); table.setHead(T_info1); // Approve task Row row = table.addRow(); row.addCellContent(T_approve_help); row.addCell().addButton("submit_approve").setValue(T_approve_submit); // Reject item row = table.addRow(); row.addCellContent(T_reject_help); row.addCell().addButton("submit_reject").setValue(T_reject_submit); // Edit metadata row = table.addRow(); row.addCellContent(T_edit_help); row.addCell().addButton("submit_edit").setValue(T_edit_submit); // Everyone can just cancel row = table.addRow(); row.addCell(0, 2).addButton("submit_leave").setValue(T_cancel_submit); div.addHidden("page").setValue(ReviewAction.MAIN_PAGE); }
private void renderMainPage(Division div) throws WingException { Table table = div.addTable("workflow-actions", 1, 1); table.setHead(T_info1); // Approve task Row row = table.addRow(); row.addCellContent(T_approve_help); row.addCell().addButton("submit_approve").setValue(T_approve_submit); // Reject item row = table.addRow(); row.addCellContent(T_reject_help); row.addCell().addButton("submit_reject").setValue(T_reject_submit); // Decline task row = table.addRow(); row.addCellContent(T_decline_help); row.addCell().addButton("submit_decline_task").setValue(T_decline_submit); // Everyone can just cancel row = table.addRow(); row.addCell(0, 2).addButton("submit_leave").setValue(T_cancel_submit); div.addHidden("page").setValue(ReviewAction.MAIN_PAGE); }
Table table = results.addTable("group-edit-search-eperson",epeople.length + 1, 1); Row header = table.addRow(Row.ROLE_HEADER); header.addCell().addContent(T_epeople_column1);
Table table = div.addTable("workflow-actions", 1, 1); table.setHead(T_info1);
main.addPara().addHighlight("italic").addContent(T_main_para2); Table table = main.addTable("policies-confirm-delete",itemPolicies.size() + 3, 5); Row header = table.addRow(Row.ROLE_HEADER); header.addCell();