@SuppressWarnings("unchecked") @Override protected void setPresentationValue(T newPresentationValue) { propertyWriter.accept((C) this, newPresentationValue); }
/** * Creates a component for a given object model item. Subclasses can * override this method to provide specific behavior. * * @param item * the model item, possibly <code>null</code> * @return a component instance representing the provided item */ public COMPONENT createComponent(SOURCE item) { if (componentFunction != null) { return componentFunction.apply(item); } COMPONENT component = componentSupplier.get(); if (itemConsumer != null) { itemConsumer.accept(component, item); } return component; }