public class ControlFactoryDate extends Object implements PropertyControlFactory
BOOLEAN_AND_ENUM_CF, DATE_CF, RELATION_COMBOBOX_CF, RELATION_LOOKUP_CF, STRING_CF, TEXTAREA_CF| Constructor and Description |
|---|
ControlFactoryDate() |
| Modifier and Type | Method and Description |
|---|---|
int |
accepts(PropertyMetaModel<?> pmm,
boolean editable,
Class<?> controlClass)
Accept java.util.Date class only.
|
<T> ControlFactoryResult |
createControl(PropertyMetaModel<T> pmm,
boolean editable,
Class<?> controlClass)
This MUST create all nodes necessary for a control to edit the specified item.
|
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, boolean)@Nonnull public <T> ControlFactoryResult createControl(@Nonnull PropertyMetaModel<T> pmm, boolean editable, @Nullable Class<?> controlClass)
PropertyControlFactorycreateControl 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.Copyright © 2017 etc.to. All rights reserved.