Class StandardFieldCompiler<D extends Control,S extends N2oStandardField>
- java.lang.Object
-
- net.n2oapp.framework.config.metadata.compile.ComponentCompiler<D,S>
-
- net.n2oapp.framework.config.metadata.compile.control.FieldCompiler<StandardField<D>,S>
-
- net.n2oapp.framework.config.metadata.compile.control.StandardFieldCompiler<D,S>
-
- All Implemented Interfaces:
SourceClassAware,SourceCompiler<StandardField<D>,S,CompileContext<?,?>>,BaseSourceCompiler<StandardField<D>,S,CompileContext<?,?>>
- Direct Known Subclasses:
CheckboxCompiler,CodeEditorCompiler,DateIntervalCompiler,DatePickerCompiler,FileUploadCompiler,HiddenCompiler,HtmlControlCompiler,InputMoneyCompiler,InputTextCompiler,ListControlCompiler,MaskedInputCompiler,OutputTextCompiler,PasswordCompiler,SearchButtonsCompiler,TextAreaCompiler,TextEditorCompiler
public abstract class StandardFieldCompiler<D extends Control,S extends N2oStandardField> extends FieldCompiler<StandardField<D>,S>
Абстрактная реализация компиляции поля ввода
-
-
Constructor Summary
Constructors Constructor Description StandardFieldCompiler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcompileControl(D control, S source, CompileProcessor p, StandardField<D> field)protected ObjectcompileDefValues(S source, CompileProcessor p)Сборка значения по умолчанию у поляprotected StandardField<D>compileStandardField(D control, S source, CompileContext<?,?> context, CompileProcessor p)protected SubModelQueryfindSubModelQuery(String fieldId, CompileProcessor p)Возвращает информацию о вложенных моделях выборки по идентификатору поляprotected abstract StringgetControlSrcProperty()Настройка React компонента ввода по умолчаниюprotected StringinitLabel(S source, CompileProcessor p)-
Methods inherited from class net.n2oapp.framework.config.metadata.compile.control.FieldCompiler
compileDependencies, compileField, getSrcProperty
-
Methods inherited from class net.n2oapp.framework.config.metadata.compile.ComponentCompiler
compileComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.n2oapp.framework.api.metadata.aware.SourceClassAware
getSourceClass
-
Methods inherited from interface net.n2oapp.framework.api.metadata.compile.SourceCompiler
compile
-
-
-
-
Method Detail
-
compileStandardField
protected StandardField<D> compileStandardField(D control, S source, CompileContext<?,?> context, CompileProcessor p)
-
compileControl
protected void compileControl(D control, S source, CompileProcessor p, StandardField<D> field)
-
initLabel
protected String initLabel(S source, CompileProcessor p)
- Overrides:
initLabelin classFieldCompiler<StandardField<D extends Control>,S extends N2oStandardField>
-
getControlSrcProperty
protected abstract String getControlSrcProperty()
Настройка React компонента ввода по умолчанию
-
compileDefValues
protected Object compileDefValues(S source, CompileProcessor p)
Сборка значения по умолчанию у поля- Parameters:
source- Исходная модель поляp- Процессор сборки- Returns:
- Значение по умолчанию поля
-
findSubModelQuery
protected SubModelQuery findSubModelQuery(String fieldId, CompileProcessor p)
Возвращает информацию о вложенных моделях выборки по идентификатору поля- Parameters:
fieldId- - идентификатор поляp- - процессор сборки метаданных
-
-