/** * Reports if this record can be undone. A composite record can be undone only if each of the * sub-records can be undone. * * @see ActivityRecord#canUndo() */ public boolean canUndo() { for (Iterator<ActivityRecord> records = recordList.listIterator(); records.hasNext(); ) { ActivityRecord record = records.next(); if (!record.canUndo()) { return false; } } return true; }