public class ControlCreatorMoney extends Object implements IControlCreator
| Constructor and Description |
|---|
ControlCreatorMoney() |
| 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)
Create a Text control with the basic monetary converter, or the proper converter for the specified type.
|
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)
createControl 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.to.etc.domui.component.controlfactory.PropertyControlFactory#createControl(to.etc.domui.util.IReadOnlyModel, to.etc.domui.component.meta.PropertyMetaModel, boolean)Copyright © 2017 etc.to. All rights reserved.