public class ControlCreatorBoolean extends Object implements IControlCreator
| Constructor and Description |
|---|
ControlCreatorBoolean() |
| 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.
|
public <T> int accepts(@Nonnull PropertyMetaModel<T> pmm, @Nullable Class<? extends IControl<T>> controlClass)
IControlCreatoraccepts in interface IControlCreatorcontrolClass - 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 public <T,C extends IControl<T>> C createControl(@Nonnull PropertyMetaModel<T> pmm, @Nullable Class<C> controlClass)
IControlCreatorcreateControl in interface IControlCreatorcontrolClass - 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.Copyright © 2017 etc.to. All rights reserved.