private void addStatisticsTypeRow(String label, final EquipmentStatisticsType type) { Action action = new SmartAction(properties.getIcon(type)) { private static final long serialVersionUID = 1L; @Override protected void execute(Component parentComponent) { model.setEquipmentType(type); } }; String typeLabel = properties.getLabel(type); view.addStatisticsRow(label, action, typeLabel, model.getEquipmentType() == type); }