Class BasePageCompiler<S extends N2oBasePage,D extends StandardPage>
java.lang.Object
net.n2oapp.framework.config.metadata.compile.ComponentCompiler<C,S,PageContext>
net.n2oapp.framework.config.metadata.compile.page.PageCompiler<S,D>
net.n2oapp.framework.config.metadata.compile.page.BasePageCompiler<S,D>
- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectWidgets(S source, CompileProcessor p) compilePage(S source, D page, PageContext context, CompileProcessor p, SearchBarScope searchBarScope) protected voidinitRegions(SourceComponent[] pageItems, Map<String, List<Region>> regionMap, String defaultPlace, PageContext context, CompileProcessor p, Object... scopes) Инициализация всех регионов страницы и добавление их в контейнер со всеми регионами страницыinitRegions(S source, D page, CompileProcessor p, PageContext context, Object... scopes) Methods inherited from class net.n2oapp.framework.config.metadata.compile.page.PageCompiler
cloneToolbar, compileBaseProperties, initBreadcrumb, initBreadcrumbByContext, initContextDatasources, initPageName, initPageRoute, registerRoutesMethods 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
-
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
-
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 информацией для сборки
-