1 19 20 package com.sslexplorer.security; 21 22 import com.sslexplorer.table.AbstractTableItemTableModel; 23 24 25 32 public class RoleItemModel extends AbstractTableItemTableModel { 33 34 37 public int getColumnCount() { 38 return 2; 39 } 40 41 44 public String getColumnName(int col) { 45 switch (col) { 46 case 0: 47 return "role"; 48 default: 49 return "accounts"; 50 } 51 } 52 53 56 public Class getColumnClass(int col) { 57 switch (col) { 58 case 0: 59 return String .class; 60 default: 61 return String .class; 62 } 63 } 64 65 public int getColumnWidth(int col) { 66 return 0; 67 } 68 69 public String getId() { 70 return "roles"; 71 } 72 73 } | Popular Tags |