@Test public void testCreateComponentValueSetter() { Consumer<Boolean> setter = aspectDefinition.createComponentValueSetter(componentWrapper); assertThat(componentWrapper.getComponent().isEnabled(), is(false)); setter.accept(true); assertThat(componentWrapper.getComponent().isEnabled(), is(true)); }
public abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper);
ModelToUiAspectDefinition implements LinkkiAspectDefinition { public abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper); }
ModelToUiAspectDefinition implements LinkkiAspectDefinition { public abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper);  }
ModelToUiAspectDefinition implements LinkkiAspectDefinition { public abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper);  @Override Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper); abstract Aspect<V> createAspect(); abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper); }
ModelToUiAspectDefinition implements LinkkiAspectDefinition { public abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper);  @Override Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper); abstract Aspect<V> createAspect(); abstract Consumer<V> createComponentValueSetter(ComponentWrapper componentWrapper);  }