public interface IControlCreator
| Modifier and Type | Method and Description |
|---|---|
<T> int |
accepts(PropertyMetaModel<T> pmm,
Class<? extends IControl<T>> controlClass)
This must return a +ve value when this factory accepts the specified property; the returned value
is an eagerness score.
|
<T,C extends IControl<T>> |
createControl(PropertyMetaModel<T> pmm,
Class<C> controlClass)
This MUST create all nodes necessary for a control to edit the specified item.
|
<T> int accepts(@Nonnull PropertyMetaModel<T> pmm, @Nullable Class<? extends IControl<T>> controlClass)
pmm - controlClass - When set the control factory *must* be able to return a component which is assignment-compatible with this class type. If it cannot it MUST refuse to create the control.@Nonnull <T,C extends IControl<T>> C createControl(@Nonnull PropertyMetaModel<T> pmm, @Nullable Class<C> controlClass)
pmm - controlClass - When set the control factory *must* return a component which is assignment-compatible with this
class type. When this method is called it has already (by it's accept method) told us it can, so
not creating the proper type is not an option.container - Copyright © 2017 etc.to. All rights reserved.