01: package vicazh.hyperpool.stream.net.http;
02:
03: import java.util.*;
04: import vicazh.hyperpool.stream.*;
05:
06: /**
07: * The ports selector table model
08: *
09: * @author Victor Zhigunov
10: * @version 0.3.9
11: */
12: public class IPortsModel extends ISelectorModel {
13: /**
14: * @param name
15: * column name for data name
16: * @param index
17: * column name for index
18: * @param data
19: * data list
20: */
21: public IPortsModel(Object name, Object index, List<Object> data) {
22: super (name, index, data);
23: }
24:
25: public Class<?> getColumnClass(int columnIndex) {
26: switch (columnIndex) {
27: case 0:
28: return Integer.class;
29: }
30: return String.class;
31: }
32: }
|