(DBList list)
| 226 | } |
| 227 | |
| 228 | public void setFields(DBList list) |
| 229 | throws DBException |
| 230 | { |
| 231 | for (int tab = 0; tab < this.fields.length; tab++) { |
| 232 | for (int row = 0; row < this.fields[0].length; row++) { |
| 233 | for (int col = 0; col < this.fields[0][0].length; col++) { |
| 234 | if (this.fields[tab][row][col] != null) { |
| 235 | this.fields[tab][row][col].setSelected(false); |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | this.signLevels[tab][0] = -1; |
| 241 | this.signLevels[tab][1] = -1; |
| 242 | } |
| 243 | |
| 244 | DBElement element = list.getElement("CharAbilities"); |
| 245 | if (element == null) { |
| 246 | throw new DBException("CharAbilities field not found"); |
| 247 | } |
| 248 | DBList abilityList = (DBList)element.getValue(); |
| 249 | int count = abilityList.getElementCount(); |
| 250 | for (int index = 0; index < count; index++) { |
| 251 | DBList fieldList = (DBList)abilityList.getElement(index).getValue(); |
| 252 | String abilityName = fieldList.getString("RnAbName"); |
| 253 | JCheckBox field = (JCheckBox)this.labelMap.get(abilityName); |
| 254 | if (field != null) { |
| 255 | field.setSelected(true); |
| 256 | int value = Integer.parseInt(field.getActionCommand()); |
| 257 | int tab = value / 100; |
| 258 | int row = value % 100 / 10; |
| 259 | int col = value % 10; |
| 260 | if ((row < 2) && (col > this.signLevels[tab][row])) |
| 261 | this.signLevels[tab][row] = col; |
| 262 | } |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | public void getFields(DBList list) |
| 267 | throws DBException |
no test coverage detected