@Override public void initPresentation() { IOverviewCategory category = view.addOverviewCategory(getString("Overview.Experience.Title")); for (IValueModel<Integer> model : management.getAllModels()) { IValueView<Integer> valueView = category.addIntegerValueView(getString("Overview.Experience." + model.getId()), 2); presenters.add(new ValueSubPresenter(model, valueView)); } initTotal(category); calculateXPCost(); }
public void update() { view.setValue(model.getValue()); }