/**
* Takes a snapshot of outer class state.
*/
protected ViewModel() {
log.debug("Constructing ListStructure.ViewModel");
MultiColumnOrder multiOrder = getListOrder() instanceof MultiColumnOrder ? (MultiColumnOrder) getListOrder()
: null;
if (multiOrder == null) {
log.debug("MultiColumnOrder not found");
}
for (Iterator i = BaseListStructure.this.columnList.iterator(); i
.hasNext();) {
ListColumn.ViewModel currentColumn = ((ListColumn) i
.next()).getViewModel();
boolean isOrdered = multiOrder != null
&& multiOrder.isColumnOrdered(currentColumn.getId());
this.columnList.add(currentColumn);
this.columns.put(currentColumn.getId(), currentColumn);
this.columnOrders.put(currentColumn.getId(), new Boolean(
isOrdered));