KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > security > IpRestrictionItemModel


1 package com.sslexplorer.security;
2
3 import com.sslexplorer.table.AbstractTableItemTableModel;
4
5 public class IpRestrictionItemModel extends AbstractTableItemTableModel {
6
7     public int getColumnCount() {
8         return 2;
9     }
10     
11     public Class JavaDoc getColumnClass(int col) {
12         switch (col) {
13             case 0:
14                 return String JavaDoc.class;
15             default:
16                 return Boolean JavaDoc.class;
17         }
18     }
19     
20     public String JavaDoc getColumnName(int col) {
21         switch (col) {
22             case 0:
23                 return "restriction";
24             default:
25                 return "type";
26         }
27     }
28     
29     public String JavaDoc getId() {
30         return "ipRestrictions";
31     }
32     
33     public int getColumnWidth(int col) {
34         return 0;
35     }
36 }
37
Popular Tags