public interface PropertyControlFactory
| Modifier and Type | Field and Description |
|---|---|
static PropertyControlFactory |
BOOLEAN_AND_ENUM_CF |
static PropertyControlFactory |
DATE_CF |
static PropertyControlFactory |
RELATION_COMBOBOX_CF
Factory for UP relations.
|
static PropertyControlFactory |
RELATION_LOOKUP_CF |
static PropertyControlFactory |
STRING_CF
This is a fallback factory; it accepts anything and shows a String edit component for it.
|
static PropertyControlFactory |
TEXTAREA_CF |
| Modifier and Type | Method and Description |
|---|---|
int |
accepts(PropertyMetaModel<?> pmm,
boolean editable,
Class<?> controlClass)
This must return a +ve value when this factory accepts the specified property; the returned value
is an eagerness score.
|
<T> ControlFactoryResult |
createControl(PropertyMetaModel<T> pmm,
boolean editable,
Class<?> controlClass)
This MUST create all nodes necessary for a control to edit the specified item.
|
static final PropertyControlFactory TEXTAREA_CF
static final PropertyControlFactory STRING_CF
static final PropertyControlFactory BOOLEAN_AND_ENUM_CF
static final PropertyControlFactory DATE_CF
static final PropertyControlFactory RELATION_COMBOBOX_CF
static final PropertyControlFactory RELATION_LOOKUP_CF
int accepts(@Nonnull PropertyMetaModel<?> pmm, boolean editable, @Nullable Class<?> controlClass)
pmm - editable - controlClass - 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 <T> ControlFactoryResult createControl(@Nonnull PropertyMetaModel<T> pmm, boolean editable, @Nullable Class<?> controlClass)
pmm - editable - controlClass - 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.container - Copyright © 2017 etc.to. All rights reserved.