See Domain Model 2.7
308309310311312313314315316317318
} private void removePolicyFromPolicyList(Policy policy) { Iterator<Policy> iter = policies.iterator(); while (iter.hasNext()) { Policy p = iter.next(); if (policy.getId().equals(p.getId())) { iter.remove(); } } }
40414243444546474849505152535455
return getObject().getPolicies().size(); } public Object getDetailValueAt(int rowIndex, int columnIndex) { Policy policy = getObject().getPolicies().get(rowIndex); switch (columnIndex) { case 0: return policy.getName(); case 1: return policy.getId(); } return null; }
310311312313314315316317318319320
596061626364656667686970717273
return getObject().getPolicies().size(); } public Object getDetailValueAt(int rowIndex, int columnIndex) { Policy policy = getObject().getPolicies().get(rowIndex); switch (columnIndex) { case 0: return policy.getName(); case 1: return policy; } return null;
329330331332333334335336337338339