public void getPorts(String value, String type) {
		ArrayList<String[]> data = new ArrayList<String[]>();
		Vector<String[]> target = model.getCachedData();
		int index = 0;
		
		//no port case b/c default of index is 0.
		switch (type) {
		case "protocol":
			index = 1;
			break;
		case "name":
			index = 2;
			break;
		case "description":
			index = 3;
			break;
		}
		
		for (int i = 0; i < target.size(); i++)
			if (index < 3 ? target.get(i)[index].equals(value) : target.get(i)[index].toLowerCase().contains(value))
				data.add(target.get(i));
		
		model.loadData(data);
	}