package devopsdistilled.operp.client.items;

import java.util.Vector;

import javax.inject.Inject;

import devopsdistilled.operp.server.data.service.items.ItemService;

public class ListItemPaneControllerImpl implements ListItemPaneController {

	@Inject
	private ListItemModel model;

	@Inject
	private ItemService itemService;

	@Override
	public ListItemModel getModel() {
		return model;
	}

	@Override
	public void loadData() {
		Vector<String> columns = new Vector<>();
		columns.add("Item ID");
		columns.add("Item Name");
		columns.add("Product");
		columns.add("Brand");
		columns.add("Price");
		model.setTableColumnNames(columns);
		model.setItems(itemService.findAll());
	}

}

@@ -42,34 +42,8 @@
 s;%0A%0A
-import java.util.Vector;%0A%0A
 impo
@@ -404,217 +404,8 @@
 ) %7B%0A
-%09%09Vector%3CString%3E columns = new Vector%3C%3E();%0A%09%09columns.add(%22Item ID%22);%0A%09%09columns.add(%22Item Name%22);%0A%09%09columns.add(%22Product%22);%0A%09%09columns.add(%22Brand%22);%0A%09%09columns.add(%22Price%22);%0A%09%09model.setTableColumnNames(columns);%0A
 %09%09mo

Remove columnNames loading from loadData()