public class ControlFactoryMoney extends Object implements PropertyControlFactory
BOOLEAN_AND_ENUM_CF, DATE_CF, RELATION_COMBOBOX_CF, RELATION_LOOKUP_CF, STRING_CF, TEXTAREA_CF| Constructor and Description |
|---|
ControlFactoryMoney() |
| Modifier and Type | Method and Description |
|---|---|
int |
accepts(PropertyMetaModel<?> pmm,
boolean editable,
Class<?> controlClass)
Accept any type using a string.
|
<T> ControlFactoryResult |
createControl(PropertyMetaModel<T> pmm,
boolean editable,
Class<?> controlClass)
Create a Text control with the basic monetary converter, or the proper converter for the specified type.
|
public int accepts(@Nonnull PropertyMetaModel<?> pmm, boolean editable, @Nullable Class<?> controlClass)
accepts in interface PropertyControlFactorycontrolClass - 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)@Nonnull public <T> ControlFactoryResult createControl(@Nonnull PropertyMetaModel<T> pmm, boolean editable, @Nullable Class<?> controlClass)
createControl in interface PropertyControlFactorycontrolClass - 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.