public class ControlCreatorString extends Object implements IControlCreator
| Constructor and Description |
|---|
ControlCreatorString() |
| Modifier and Type | Method and Description |
|---|---|
<T> int |
accepts(PropertyMetaModel<T> pmm,
Class<? extends IControl<T>> controlClass)
Accept any type using a string.
|
<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(PropertyMetaModel<T> pmm, Class<? extends IControl<T>> controlClass)
accepts 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.to.etc.domui.component.controlfactory.PropertyControlFactory#accepts(to.etc.domui.component.meta.PropertyMetaModel)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.