1 19 27 28 package org.netbeans.modules.j2ee.sun.share.configbean.customizers; 29 30 import java.util.Collections ; 31 import java.util.List ; 32 33 import javax.swing.table.AbstractTableModel ; 34 35 36 40 public class GroupTableModel extends SecurityMappingTableModel { 41 42 44 public GroupTableModel(List p) { 45 super(p, 1); 46 } 47 48 50 public int addElement(String entry) { 51 return super.addElement(entry); 52 } 53 54 public int replaceElement(String oldEntry, String newEntry) { 55 return super.replaceElement(oldEntry, newEntry); 56 } 57 58 public int removeElement(String entry) { 59 return super.removeElement(entry); 60 } 61 62 public boolean contains(String entry) { 63 return super.contains(entry); 64 } 65 66 public String getElementAt(int rowIndex) { 67 return (String ) super.getRowElement(rowIndex); 68 } 69 70 72 public String getColumnName(int column) { 73 return SecurityRoleMappingCustomizer.customizerBundle.getString("LBL_GroupName"); } 75 76 78 protected Object getColumnValueFromRow(Object rowEntry, int columnIndex) { 79 return rowEntry; 81 } 82 } 83 | Popular Tags |