Class PageCompiler<S extends N2oPage,C extends Page>

java.lang.Object
net.n2oapp.framework.config.metadata.compile.ComponentCompiler<C,S,PageContext>
net.n2oapp.framework.config.metadata.compile.page.PageCompiler<S,C>
Type Parameters:
S - Тип исходной модели страницы
All Implemented Interfaces:
SourceClassAware, SourceCompiler<C,S,PageContext>, BaseSourceCompiler<C,S,PageContext>
Direct Known Subclasses:
BasePageCompiler, SimplePageCompiler

public abstract class PageCompiler<S extends N2oPage,C extends Page> extends ComponentCompiler<C,S,PageContext> implements BaseSourceCompiler<C,S,PageContext>
Базовая компиляция страницы
  • Constructor Details

    • PageCompiler

      public PageCompiler()
  • Method Details

    • compileBaseProperties

      protected void compileBaseProperties(S source, C page, PageContext context, CompileProcessor p)
      Компиляция базовых свойств страницы
      Parameters:
      source - Исходная модель страницы
      page - Клиентская модель страницы
      context - Контекст сборки
      p - Процессор сборки
    • initPageRoute

      protected String initPageRoute(N2oPage source, PageContext context, CompileProcessor p)
      Получение базового маршрута страницы
      Parameters:
      source - Исходная страница
      context - Контекст сборки
      p - Процессор сборки
      Returns:
      Маршрут
    • registerRoutes

      protected void registerRoutes(PageRoutes routes, PageContext context, CompileProcessor p)
      Регистрация маршрутов страницы
      Parameters:
      routes - Маршруты страницы
      context - Контекст сборки
      p - Процессор сборки
    • initBreadcrumb

      protected BreadcrumbList initBreadcrumb(N2oPage source, String pageName, PageContext context, CompileProcessor p)
      Получение базового маршрута страницы
      Parameters:
      source - Исходная модель страницы
      pageName - Наименование страницы
      context - Контекст сборки
      p - Процессор сборки метаданных
      Returns:
      breadcrumb текущей страницы
    • initBreadcrumbByContext

      protected BreadcrumbList initBreadcrumbByContext(String pageName, PageContext context)
      Получение базового маршрута страницы по контексту сборки
      Parameters:
      pageName - Наименование страницы
      context - Контекст сборки
      Returns:
      breadcrumb текущей страницы
    • initPageName

      protected PageProperty initPageName(N2oPage source, String pageName, PageContext context, CompileProcessor p)
      Инициализация заголовков страницы
      Parameters:
      source - Исходная модель страницы
      pageName - Наименование страницы
      context - Контекст страницы
      p - Процессор сборки метаданных
      Returns:
      Модель с инициализированными заголовками страницы
    • initContextDatasources

      protected void initContextDatasources(DataSourcesScope dataSourcesScope, ClientDatasourceIdsScope clientDatasourceIdsScope, PageScope pageScope, PageContext context, CompileProcessor p)
    • cloneToolbar

      protected N2oToolbar cloneToolbar(N2oToolbar t, N2oWidget resultWidget, CompileProcessor p)
      Клонирование тулбара для проставления значений по умолчанию
      Returns: