Constructor and Description |
---|
OnePerWidget() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
create(WidgetType ctl)
Creates a new object for the control.
|
T |
forWidget(WidgetType ctl)
Returns the object for the given control.
|
static <WidgetType extends Widget,T> |
from(Function<? super WidgetType,? extends T> creator)
Creates a OnePerWidget instance where objects are created using the given function.
|
public static <WidgetType extends Widget,T> OnePerWidget<WidgetType,T> from(Function<? super WidgetType,? extends T> creator)
public T forWidget(WidgetType ctl)
protected abstract T create(WidgetType ctl)