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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected N2oToolbarcloneToolbar(N2oToolbar t, N2oWidget resultWidget, CompileProcessor p) Клонирование тулбара для проставления значений по умолчаниюprotected voidcompileBaseProperties(S source, C page, PageContext context, CompileProcessor p) Компиляция базовых свойств страницыprotected BreadcrumbListinitBreadcrumb(N2oPage source, String pageName, PageContext context, CompileProcessor p) Получение базового маршрута страницыprotected BreadcrumbListinitBreadcrumbByContext(String pageName, PageContext context) Получение базового маршрута страницы по контексту сборкиprotected voidinitContextDatasources(DataSourcesScope dataSourcesScope, ClientDatasourceIdsScope clientDatasourceIdsScope, PageScope pageScope, PageContext context, CompileProcessor p) protected PagePropertyinitPageName(N2oPage source, String pageName, PageContext context, CompileProcessor p) Инициализация заголовков страницыprotected StringinitPageRoute(N2oPage source, PageContext context, CompileProcessor p) Получение базового маршрута страницыprotected voidregisterRoutes(PageRoutes routes, PageContext context, CompileProcessor p) Регистрация маршрутов страницыMethods inherited from class net.n2oapp.framework.config.metadata.compile.ComponentCompiler
compileComponent, getSrcPropertyMethods 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
-
PageCompiler
public PageCompiler()
-
-
Method Details
-
compileBaseProperties
Компиляция базовых свойств страницы- Parameters:
source- Исходная модель страницыpage- Клиентская модель страницыcontext- Контекст сборкиp- Процессор сборки
-
initPageRoute
Получение базового маршрута страницы- Parameters:
source- Исходная страницаcontext- Контекст сборкиp- Процессор сборки- Returns:
- Маршрут
-
registerRoutes
Регистрация маршрутов страницы- Parameters:
routes- Маршруты страницыcontext- Контекст сборкиp- Процессор сборки
-
initBreadcrumb
protected BreadcrumbList initBreadcrumb(N2oPage source, String pageName, PageContext context, CompileProcessor p) Получение базового маршрута страницы- Parameters:
source- Исходная модель страницыpageName- Наименование страницыcontext- Контекст сборкиp- Процессор сборки метаданных- Returns:
- breadcrumb текущей страницы
-
initBreadcrumbByContext
Получение базового маршрута страницы по контексту сборки- 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
Клонирование тулбара для проставления значений по умолчанию- Returns:
-