return super.isVisible() && pivotConfigStorage != null;
}
};
add(configStoreButton);
AjaxCheckBox showGrandTotalForColumnCheckBox = new AjaxCheckBox("showGrandTotalForColumn",
new PropertyModel<Boolean>(this, "pivotModel.showGrandTotalForColumn")) {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (pivotModel.isAutoCalculate()) {
compute(target);
}
}
};
add(showGrandTotalForColumnCheckBox);
AjaxCheckBox showGrandTotalForRowCheckBox = new AjaxCheckBox("showGrandTotalForRow",
new PropertyModel<Boolean>(this, "pivotModel.showGrandTotalForRow")) {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (pivotModel.isAutoCalculate()) {
compute(target);
}
}
};
add(showGrandTotalForRowCheckBox);
AjaxCheckBox autoCalculateCheckBox = new AjaxCheckBox("autoCalculate", new PropertyModel<Boolean>(this,
"pivotModel.autoCalculate")) {
private static final long serialVersionUID = 1L;
@Override