Class BasePageCompiler<S extends N2oBasePage,D extends StandardPage>

All Implemented Interfaces:
SourceClassAware, SourceCompiler<D,S,PageContext>, BaseSourceCompiler<D,S,PageContext>
Direct Known Subclasses:
LeftRightPageCompiler, SearchablePageCompiler, StandardPageCompiler, TopLeftRightPageCompiler

public abstract class BasePageCompiler<S extends N2oBasePage,D extends StandardPage> extends PageCompiler<S,D>
Базовая компиляция страницы с регионами
  • Constructor Details

    • BasePageCompiler

      public BasePageCompiler()
  • Method Details

    • initRegions

      protected abstract Map<String,List<Region>> initRegions(S source, D page, CompileProcessor p, PageContext context, Object... scopes)
    • compilePage

      public D compilePage(S source, D page, PageContext context, CompileProcessor p, SearchBarScope searchBarScope)
    • collectWidgets

      protected List<N2oWidget> collectWidgets(S source, CompileProcessor p)
    • initRegions

      protected void initRegions(SourceComponent[] pageItems, Map<String,List<Region>> regionMap, String defaultPlace, PageContext context, CompileProcessor p, Object... scopes)
      Инициализация всех регионов страницы и добавление их в контейнер со всеми регионами страницы
      Parameters:
      pageItems - Элементы страницы (регионы/виджеты)
      regionMap - Контейнер для хранения всех регионов страницы по их позициям на странице.
      defaultPlace - Позиция регионов по умолчанию
      context - Контекст страницы
      p - Процессор сборки метаданных
      scopes - Массив scope c информацией для сборки