public int _index;
protected void awake() {
super.awake();
_displayGroup = (AWTDisplayGroup)valueForBinding(BindingNames.displayGroup);
AWTPivotState pivotState = _displayGroup != null ? _displayGroup.pivotState() : null;
if (pivotState.rowFields().size() != 1 || pivotState.columnFields().size() != 1) return;
String valueColumnName = stringValueForBinding("valueColumnName");
List columnAttributes = pivotState._allColumnAttributes();
if (columnAttributes.size() == 0) return;
Column atttributeColumn = (valueColumnName != null)
? findColumnWithName(columnAttributes, valueColumnName)
: (AWTDataTable.Column)columnAttributes.get(0);
if (atttributeColumn == null) return;
_columnAttributeColumns = pivotState.leafLevelColumnsFor(atttributeColumn);
_pivotState = pivotState;
}