Class ListControlCompiler<T extends ListControl,S extends N2oListField>
java.lang.Object
net.n2oapp.framework.config.metadata.compile.ComponentCompiler<D,S,CompileContext<?,?>>
net.n2oapp.framework.config.metadata.compile.control.FieldCompiler<StandardField<D>,S>
net.n2oapp.framework.config.metadata.compile.control.StandardFieldCompiler<T,S>
net.n2oapp.framework.config.metadata.compile.control.ListControlCompiler<T,S>
- All Implemented Interfaces:
SourceClassAware,SourceCompiler<StandardField<T>,,S, CompileContext<?, ?>> BaseSourceCompiler<StandardField<T>,S, CompileContext<?, ?>>
- Direct Known Subclasses:
AutoCompleteCompiler,CheckboxGroupCompiler,InputSelectCompiler,InputSelectTreeCompiler,RadioGroupCompiler,SelectCompiler,SliderCompiler
public abstract class ListControlCompiler<T extends ListControl,S extends N2oListField>
extends StandardFieldCompiler<T,S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompileData(S source, T listControl, CompileContext<?, ?> context, CompileProcessor p) protected ObjectcompileDefValues(S source, CompileProcessor p) Сборка значения по умолчанию у поляprotected StandardField<T>compileFetchDependencies(StandardField<T> field, S source, CompileProcessor p) protected ModelLinkcompileLinkOnSet(StandardField<T> control, S source, WidgetScope widgetScope, CompileProcessor p) protected StandardField<T>compileListControl(T listControl, S source, CompileContext<?, ?> context, CompileProcessor p) protected voidcompileParams(StandardField<T> control, S source, WidgetParamScope paramScope, CompileProcessor p) Сборка значений по умолчанию у поля из заданных параметровprotected SubModelQuerycreateSubModel(N2oListField item, List<Map<String, Object>> data, CompileProcessor p) protected StringinitQuickSearchParam(T listControl, N2oListField source, CompileProcessor p) Methods inherited from class net.n2oapp.framework.config.metadata.compile.control.StandardFieldCompiler
compileControl, compileStandardField, getControlSrcProperty, 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
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
-
ListControlCompiler
public ListControlCompiler()
-
-
Method Details
-
compileListControl
protected StandardField<T> compileListControl(T listControl, S source, CompileContext<?, ?> context, CompileProcessor p) -
compileData
protected void compileData(S source, T listControl, CompileContext<?, ?> context, CompileProcessor p) -
compileDefValues
Description copied from class:FieldCompilerСборка значения по умолчанию у поля- Overrides:
compileDefValuesin classFieldCompiler<StandardField<T extends ListControl>,S extends N2oListField> - Parameters:
source- Исходная модель поляp- Процессор сборки- Returns:
- Значение по умолчанию поля
-
compileParams
protected void compileParams(StandardField<T> control, S source, WidgetParamScope paramScope, CompileProcessor p) Description copied from class:FieldCompilerСборка значений по умолчанию у поля из заданных параметров- Overrides:
compileParamsin classFieldCompiler<StandardField<T extends ListControl>,S extends N2oListField> source- Исходная модель поляp- Процессор сборки
-
compileLinkOnSet
protected ModelLink compileLinkOnSet(StandardField<T> control, S source, WidgetScope widgetScope, CompileProcessor p) -
compileFetchDependencies
protected StandardField<T> compileFetchDependencies(StandardField<T> field, S source, CompileProcessor p) -
createSubModel
protected SubModelQuery createSubModel(N2oListField item, List<Map<String, Object>> data, CompileProcessor p) -
initQuickSearchParam
-