java.lang.Object
net.n2oapp.framework.config.metadata.compile.ComponentCompiler<D,S,CompileContext<?,?>>
net.n2oapp.framework.config.metadata.compile.control.FieldCompiler<D,S>
- All Implemented Interfaces:
SourceClassAware,SourceCompiler<D,,S, CompileContext<?, ?>> BaseSourceCompiler<D,S, CompileContext<?, ?>>
- Direct Known Subclasses:
AbstractFilterButtonCompiler,ActionFieldCompiler,AlertFieldCompiler,CustomFieldCompiler,HtmlCompiler,IntervalFieldCompiler,MarkdownCompiler,SearchButtonsCompiler,StandardFieldCompiler,StatusFieldCompiler,TextCompiler
public abstract class FieldCompiler<D extends Field,S extends N2oField>
extends ComponentCompiler<D,S,CompileContext<?,?>>
Абстрактная реализация компиляции поля ввода
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompileCopied(S source, CompileProcessor p) protected voidcompileDefaultValues(D control, S source, CompileContext<?, ?> context, CompileProcessor p) protected ObjectcompileDefValues(S source, CompileProcessor p) Сборка значения по умолчанию у поляprotected voidcompileDependencies(Field field, S source, CompileContext<?, ?> context, CompileProcessor p) Компиляция зависимостей между полямиprotected voidcompileField(D field, S source, CompileContext<?, ?> context, CompileProcessor p) protected voidcompileFilters(S source, CompileProcessor p) protected voidcompileParams(D control, S source, WidgetParamScope paramScope, CompileProcessor p) Сборка значений по умолчанию у поля из заданных параметровprotected SubModelQueryfindSubModelQuery(String fieldId, CompileProcessor p) Возвращает информацию о вложенных моделях выборки по идентификатору поляprotected StringСвойство содержащее React компонент по умолчаниюprotected voidinitDefaults(S source, CompileContext<?, ?> context, CompileProcessor p) protected StringinitLabel(S source, CompileProcessor p) protected Stringprotected voidinitValidations(S source, Field field, CompileContext<?, ?> context, CompileProcessor p) Methods inherited from class net.n2oapp.framework.config.metadata.compile.ComponentCompiler
compileComponentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.n2oapp.framework.api.metadata.aware.SourceClassAware
getSourceClassMethods inherited from interface net.n2oapp.framework.api.metadata.compile.SourceCompiler
compile
-
Constructor Details
-
FieldCompiler
public FieldCompiler()
-
-
Method Details
-
getSrcProperty
Description copied from class:ComponentCompilerСвойство содержащее React компонент по умолчанию- Overrides:
getSrcPropertyin classComponentCompiler<D extends Field,S extends N2oField, CompileContext<?, ?>>
-
initDefaults
-
compileField
-
initLabel
-
compileDependencies
protected void compileDependencies(Field field, S source, CompileContext<?, ?> context, CompileProcessor p) Компиляция зависимостей между полями- Parameters:
field- клиентская модель элемента вводаsource- исходная модель поля
-
compileFilters
-
findSubModelQuery
Возвращает информацию о вложенных моделях выборки по идентификатору поля- Parameters:
fieldId- - идентификатор поляp- - процессор сборки метаданных
-
initValidations
protected void initValidations(S source, Field field, CompileContext<?, ?> context, CompileProcessor p) -
compileCopied
-
compileDefaultValues
protected void compileDefaultValues(D control, S source, CompileContext<?, ?> context, CompileProcessor p) -
compileDefValues
Сборка значения по умолчанию у поля- Parameters:
source- Исходная модель поляp- Процессор сборки- Returns:
- Значение по умолчанию поля
-
compileParams
Сборка значений по умолчанию у поля из заданных параметров- Parameters:
source- Исходная модель поляp- Процессор сборки
-
initLocalDatasourceId
-