Changeset 606 for AE/installer2/src/net/oni2/aeinstaller/gui/modtable
- Timestamp:
- Jan 14, 2013, 1:34:55 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/gui/modtable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/modtable/ModTableModel.java
r605 r606 12 12 import net.oni2.aeinstaller.backend.mods.Mod; 13 13 import net.oni2.aeinstaller.backend.mods.ModManager; 14 import net.oni2.aeinstaller.backend.mods.Type;15 14 16 15 /** … … 43 42 return mod; 44 43 case 0: 44 return install.get(row); 45 case 1: 45 46 return mod.getName(); 46 case 1:47 case 2: 47 48 return mod.getPackageNumberString(); 48 case 2:49 String type = "";50 for (Type t : mod.getTypes()) {51 if (type.length() > 0)52 type += ", ";53 type += t.getName();54 }55 return type;56 case 3:57 return mod.getPlatform().toString();58 case 4:59 return install.get(row);60 49 } 61 50 return null; … … 66 55 switch (col) { 67 56 case 0: 57 return bundle.getString("mod.install"); 58 case 1: 68 59 return bundle.getString("mod.name"); 69 case 1:60 case 2: 70 61 return bundle.getString("mod.package_number"); 71 case 2:72 return bundle.getString("mod.type");73 case 3:74 return bundle.getString("mod.platform");75 case 4:76 return bundle.getString("mod.install");77 62 } 78 63 return null; … … 86 71 @Override 87 72 public int getColumnCount() { 88 return 5;73 return 3; 89 74 } 90 75 … … 93 78 switch (col) { 94 79 case 0: 80 return Boolean.class; 81 case 1: 95 82 return String.class; 96 case 1:83 case 2: 97 84 return String.class; 98 case 2:99 return String.class;100 case 3:101 return String.class;102 case 4:103 return Boolean.class;104 85 } 105 86 return null; … … 118 99 switch (colNum) { 119 100 case 0: 120 col.setPreferredWidth(150); 121 break; 122 case 1: 123 w = 55; 101 w = 50; 124 102 col.setPreferredWidth(w); 125 103 col.setMinWidth(w); 126 104 col.setMaxWidth(w); 127 105 break; 128 case 2:129 col.setPreferredWidth(1 00);106 case 1: 107 col.setPreferredWidth(150); 130 108 break; 131 case 3: 132 w = 70; 133 col.setPreferredWidth(w); 134 col.setMinWidth(w); 135 col.setMaxWidth(w); 136 break; 137 case 4: 138 w = 60; 109 case 2: 110 w = 55; 139 111 col.setPreferredWidth(w); 140 112 col.setMinWidth(w); … … 204 176 @Override 205 177 public boolean isCellEditable(int rowIndex, int columnIndex) { 206 return columnIndex == 4;178 return columnIndex == 0; 207 179 } 208 180 … … 210 182 public void setValueAt(Object aValue, int rowIndex, int columnIndex) { 211 183 super.setValueAt(aValue, rowIndex, columnIndex); 212 if (columnIndex == 4) {184 if (columnIndex == 0) { 213 185 install.set(rowIndex, (Boolean) aValue); 214 186 -
AE/installer2/src/net/oni2/aeinstaller/gui/modtable/ModTableModel.properties
r593 r606 1 1 mod.name=Name 2 mod.type=Type3 2 mod.package_number=Pkg# 4 mod.platform=Platform 5 mod.install=Install? 3 mod.install=Install
Note:
See TracChangeset
for help on using the changeset viewer.