Class FieldCompiler<D extends Field,S extends N2oField>

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 Details

    • FieldCompiler

      public FieldCompiler()
  • Method Details

    • getSrcProperty

      protected String getSrcProperty()
      Description copied from class: ComponentCompiler
      Свойство содержащее React компонент по умолчанию
      Overrides:
      getSrcProperty in class ComponentCompiler<D extends Field,S extends N2oField,CompileContext<?,?>>
    • initDefaults

      protected void initDefaults(S source, CompileContext<?,?> context, CompileProcessor p)
    • compileField

      protected void compileField(D field, S source, CompileContext<?,?> context, CompileProcessor p)
    • initLabel

      protected String initLabel(S source, CompileProcessor p)
    • compileDependencies

      protected void compileDependencies(Field field, S source, CompileContext<?,?> context, CompileProcessor p)
      Компиляция зависимостей между полями
      Parameters:
      field - клиентская модель элемента ввода
      source - исходная модель поля
    • compileFilters

      protected void compileFilters(S source, CompileProcessor p)
    • findSubModelQuery

      protected SubModelQuery findSubModelQuery(String fieldId, CompileProcessor p)
      Возвращает информацию о вложенных моделях выборки по идентификатору поля
      Parameters:
      fieldId - - идентификатор поля
      p - - процессор сборки метаданных
    • initValidations

      protected void initValidations(S source, Field field, CompileContext<?,?> context, CompileProcessor p)
    • compileCopied

      protected void compileCopied(S source, CompileProcessor p)
    • compileDefaultValues

      protected void compileDefaultValues(D control, S source, CompileContext<?,?> context, CompileProcessor p)
    • compileDefValues

      protected Object compileDefValues(S source, CompileProcessor p)
      Сборка значения по умолчанию у поля
      Parameters:
      source - Исходная модель поля
      p - Процессор сборки
      Returns:
      Значение по умолчанию поля
    • compileParams

      protected void compileParams(D control, S source, WidgetParamScope paramScope, CompileProcessor p)
      Сборка значений по умолчанию у поля из заданных параметров
      Parameters:
      source - Исходная модель поля
      p - Процессор сборки
    • initLocalDatasourceId

      protected String initLocalDatasourceId(CompileProcessor p)