public class ControlFactoryRelationLookup extends Object implements PropertyControlFactory
BOOLEAN_AND_ENUM_CF, DATE_CF, RELATION_COMBOBOX_CF, RELATION_LOOKUP_CF, STRING_CF, TEXTAREA_CF| Constructor and Description |
|---|
ControlFactoryRelationLookup() |
| Modifier and Type | Method and Description |
|---|---|
int |
accepts(PropertyMetaModel<?> pmm,
boolean editable,
Class<?> controlClass)
Accept any UP relation.
|
<T> ControlFactoryResult |
createControl(PropertyMetaModel<T> pmm,
boolean editable,
Class<?> controlClass)
Create the lookup thingy.
|
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.@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.Copyright © 2017 etc.to. All rights reserved.