01: package vicazh.hyperpool.stream.net.http;
02:
03: import vicazh.hyperpool.stream.*;
04:
05: /**
06: * The content priorities table model
07: *
08: * @author Victor Zhigunov
09: * @version 0.3.9
10: */
11: public class IContentPrioritiesModel extends IPrioritiesModel {
12:
13: /**
14: * @param name
15: * column name for line name
16: * @param server
17: * column name for server priority name
18: * @param priorities
19: * priorities array
20: */
21: public IContentPrioritiesModel(Object name, Object server,
22: IInt[] priorities) {
23: super (name, null, server, priorities);
24: }
25:
26: public void setValueAt(Object aValue, int row, int column) {
27: super .setValueAt(aValue, row, 2);
28: }
29:
30: public Object getValueAt(int row, int column) {
31: return super .getValueAt(row, column == 0 ? 0 : 2);
32: }
33:
34: public int getColumnCount() {
35: return 2;
36: }
37:
38: public String getColumnName(int columnIndex) {
39: return super .getColumnName(columnIndex == 0 ? 0 : 2);
40: }
41: }
|