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 getColumnClass(int col) { 12 switch (col) { 13 case 0: 14 return String .class; 15 default: 16 return Boolean .class; 17 } 18 } 19 20 public String getColumnName(int col) { 21 switch (col) { 22 case 0: 23 return "restriction"; 24 default: 25 return "type"; 26 } 27 } 28 29 public String getId() { 30 return "ipRestrictions"; 31 } 32 33 public int getColumnWidth(int col) { 34 return 0; 35 } 36 } 37 | Popular Tags |