gradebookng/tool/src/java/org/sakaiproject/gradebookng/tool/panels/importExport/GradeImportConfirmationStep.java
private ListView<ProcessedGradeItem> makeListView(final String markupId, final List<ProcessedGradeItem> itemList) {

		final ListView<ProcessedGradeItem> rval = new ListView<ProcessedGradeItem>(markupId, itemList) {
			private static final long serialVersionUID = 1L;

			@Override
			protected void populateItem(final ListItem<ProcessedGradeItem> item) {

				final ProcessedGradeItem gradeItem = item.getModelObject();

				String displayTitle = gradeItem.getItemTitle();
				if(gradeItem.getType() == Type.COMMENT) {
					displayTitle = MessageHelper.getString("importExport.confirmation.commentsdisplay", gradeItem.getItemTitle());
				}

				item.add(new Label("title", displayTitle));
				item.add(new Label("points", gradeItem.getItemPointValue()));

			}
		};

		return rval;
	}
/**
	 * Helper to create a listview for what needs to be shown
	 * @param markupId wicket markup id
	 * @param itemList ist of stuff
	 * @return
	 */
Helper to create a listview for what needs to be shown
@param markupId wicket markup id
@param itemList ist of stuff
@return
Helper to create a listview for what needs to be shown @param markupId wicket markup id @param itemList ist of stuff @return
private ListView<ProcessedGradeItem> makeListView(final String markupId, final List<ProcessedGradeItem> itemList) {
		final ListView<ProcessedGradeItem> rval = new ListView<ProcessedGradeItem>(markupId, itemList) {
			private static final long serialVersionUID = 1L;
			@Override
			protected void populateItem(final ListItem<ProcessedGradeItem> item) {
				final ProcessedGradeItem gradeItem = item.getModelObject();
				String displayTitle = gradeItem.getItemTitle();
				if(gradeItem.getType() == Type.COMMENT) {
					displayTitle = MessageHelper.getString("importExport.confirmation.commentsdisplay", gradeItem.getItemTitle());
				}
				item.add(new Label("title", displayTitle));
				item.add(new Label("points", gradeItem.getItemPointValue()));
			}
		};
		return rval;
	}
private ListView < ProcessedGradeItem > makeListView ( final String markupId , final List < ProcessedGradeItem > itemList ) { final ListView < ProcessedGradeItem > rval = new ListView < ProcessedGradeItem > ( markupId , itemList ) { private static final long serialVersionUID = 1L ; @ Override protected void populateItem ( final ListItem < ProcessedGradeItem > item ) { final ProcessedGradeItem gradeItem = item . getModelObject ( ) ; String displayTitle = gradeItem . getItemTitle ( ) ; if ( gradeItem . getType ( ) == Type . COMMENT ) { displayTitle = MessageHelper . getString ( "importExport.confirmation.commentsdisplay" , gradeItem . getItemTitle ( ) ) ; } item . add ( new Label ( "title" , displayTitle ) ) ; item . add ( new Label ( "points" , gradeItem . getItemPointValue ( ) ) ) ; } } ; return rval ; }
Helper to create a listview for what needs to be shown
 @param markupId wicket markup id
 @param itemList ist of stuff
 @return
Helper to create a listview for what needs to be shown @param markupId wicket markup id @param itemList ist of stuff @return