@Test public void testSetup() { propertiesItemPresenter.setup(new Property("Name", "Value"), mock(PersistencePresenter.class)); verify(view).init(eq(propertiesItemPresenter)); verify(view).setName(eq("Name")); verify(view).setValue(eq("Value")); }
@Override public PropertiesItemPresenter setup(final Property property, final PersistencePresenter parentPresenter) { this.property = property; this.parentPresenter = parentPresenter; view.init(this); view.setName(property.getName()); view.setValue(property.getValue()); return this; }
PropertiesItemPresenter extends ListItemPresenter<Property, PersistencePresenter, PropertiesItemPresenter.View> { @Override public PropertiesItemPresenter setup(final Property property, final PersistencePresenter parentPresenter) { this.property = property; this.parentPresenter = parentPresenter; view.init(this); view.setName(property.getName()); view.setValue(property.getValue()); return this; } }
PropertiesItemPresenter extends ListItemPresenter<Property, PersistencePresenter, PropertiesItemPresenter.View> { @Override public PropertiesItemPresenter setup(final Property property, final PersistencePresenter parentPresenter) { this.property = property; this.parentPresenter = parentPresenter; view.init(this); view.setName(property.getName()); view.setValue(property.getValue()); return this; } @Inject  PropertiesItemPresenter(final View view); }
PropertiesItemPresenter extends ListItemPresenter<Property, PersistencePresenter, PropertiesItemPresenter.View> { @Override public PropertiesItemPresenter setup(final Property property, final PersistencePresenter parentPresenter) { this.property = property; this.parentPresenter = parentPresenter; view.init(this); view.setName(property.getName()); view.setValue(property.getValue()); return this; } @Inject  PropertiesItemPresenter(final View view); @Override PropertiesItemPresenter setup(final Property property,
                                         final PersistencePresenter parentPresenter); void onNameChange(final String name); void onValueChange(final String value); @Override Property getObject(); @Override void remove(); }
PropertiesItemPresenter extends ListItemPresenter<Property, PersistencePresenter, PropertiesItemPresenter.View> { @Override public PropertiesItemPresenter setup(final Property property, final PersistencePresenter parentPresenter) { this.property = property; this.parentPresenter = parentPresenter; view.init(this); view.setName(property.getName()); view.setValue(property.getValue()); return this; } @Inject  PropertiesItemPresenter(final View view); @Override PropertiesItemPresenter setup(final Property property,
                                         final PersistencePresenter parentPresenter); void onNameChange(final String name); void onValueChange(final String value); @Override Property getObject(); @Override void remove();  }