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); }
@Override protected void initModelListening(CheckInputListener inputListener) { model.addEquipmentTypeChangeListener(inputListener); // this.inputListener = inputListener; }
private boolean isNameUnique() { return overallModel.isNameUnique(pageModel.getName().getText()); }