Class DateIntervalCompiler
java.lang.Object
net.n2oapp.framework.config.metadata.compile.ComponentCompiler<StandardField<DateInterval>,N2oDateInterval,CompileContext<?,?>>
net.n2oapp.framework.config.metadata.compile.control.FieldCompiler<StandardField<DateInterval>,N2oDateInterval>
net.n2oapp.framework.config.metadata.compile.control.StandardFieldCompiler<DateInterval,N2oDateInterval>
net.n2oapp.framework.config.metadata.compile.control.DateIntervalCompiler
- All Implemented Interfaces:
SourceClassAware,SourceCompiler<StandardField<DateInterval>,,N2oDateInterval, CompileContext<?, ?>> BaseSourceCompiler<StandardField<DateInterval>,N2oDateInterval, CompileContext<?, ?>>
@Component
public class DateIntervalCompiler
extends StandardFieldCompiler<DateInterval,N2oDateInterval>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(N2oDateInterval source, CompileContext<?, ?> context, CompileProcessor p) protected ObjectcompileDefValues(N2oDateInterval source, CompileProcessor p) Сборка значения по умолчанию у поляprotected voidcompileParams(StandardField<DateInterval> control, N2oDateInterval source, WidgetParamScope paramScope, CompileProcessor p) Сборка значений по умолчанию у поля из заданных параметровprotected StringНастройка React компонента ввода по умолчаниюMethods inherited from class net.n2oapp.framework.config.metadata.compile.control.StandardFieldCompiler
compileControl, compileStandardField, initLabelMethods inherited from class net.n2oapp.framework.config.metadata.compile.control.FieldCompiler
compileCopied, compileDefaultValues, compileDependencies, compileField, compileFilters, findSubModelQuery, getSrcProperty, initDefaults, initLocalDatasourceId, initValidationsMethods inherited from class net.n2oapp.framework.config.metadata.compile.ComponentCompiler
compileComponent
-
Constructor Details
-
DateIntervalCompiler
public DateIntervalCompiler()
-
-
Method Details
-
getSourceClass
-
compile
public StandardField<DateInterval> compile(N2oDateInterval source, CompileContext<?, ?> context, CompileProcessor p) -
compileDefValues
Description copied from class:FieldCompilerСборка значения по умолчанию у поля- Overrides:
compileDefValuesin classFieldCompiler<StandardField<DateInterval>,N2oDateInterval> - Parameters:
source- Исходная модель поляp- Процессор сборки- Returns:
- Значение по умолчанию поля
-
compileParams
protected void compileParams(StandardField<DateInterval> control, N2oDateInterval source, WidgetParamScope paramScope, CompileProcessor p) Description copied from class:FieldCompilerСборка значений по умолчанию у поля из заданных параметров- Overrides:
compileParamsin classFieldCompiler<StandardField<DateInterval>,N2oDateInterval> - Parameters:
source- Исходная модель поляp- Процессор сборки
-
getControlSrcProperty
Description copied from class:StandardFieldCompilerНастройка React компонента ввода по умолчанию- Specified by:
getControlSrcPropertyin classStandardFieldCompiler<DateInterval,N2oDateInterval>
-