Class AdminWebLayoutTemplate

java.lang.Object
com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
com.foreach.across.modules.adminweb.ui.AdminWebLayoutTemplate
All Implemented Interfaces:
com.foreach.across.modules.web.template.NamedWebTemplateProcessor, com.foreach.across.modules.web.template.WebTemplateProcessor

@ConditionalOnBean(org.thymeleaf.spring6.SpringTemplateEngine.class) @Component public class AdminWebLayoutTemplate extends com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
Represents the admin web layout with top and left navigation. Will also register static paths and admin web root path as javascript data values.
Since:
2.1.0
Author:
Arne Vandamme
  • Field Details

  • Constructor Details

    • AdminWebLayoutTemplate

      public AdminWebLayoutTemplate()
      Create a default template.
    • AdminWebLayoutTemplate

      public AdminWebLayoutTemplate(String name, String layoutTemplate)
      Create a new AdminWebLayoutTemplate implementation with a specific name and layout template.
      Parameters:
      name - of this layout
      layoutTemplate - view template to use
  • Method Details

    • registerWebResources

      protected void registerWebResources(com.foreach.across.modules.web.resource.WebResourceRegistry registry)
      Overrides:
      registerWebResources in class com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
    • buildMenus

      protected void buildMenus(com.foreach.across.modules.web.menu.MenuFactory menuFactory)
      Overrides:
      buildMenus in class com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
    • applyTemplate

      public void applyTemplate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
      Specified by:
      applyTemplate in interface com.foreach.across.modules.web.template.WebTemplateProcessor
      Overrides:
      applyTemplate in class com.foreach.across.modules.web.template.LayoutTemplateProcessorAdapterBean
    • setIncludeNavPathAsDataAttribute

      public void setIncludeNavPathAsDataAttribute(boolean includeNavPathAsDataAttribute)
      Should the Menu.getPath() value be included as data attribute on nav components. By default this will be enabled if AcrossDevelopmentMode is active.
    • isIncludeNavPathAsDataAttribute

      public boolean isIncludeNavPathAsDataAttribute()
      Should the Menu.getPath() value be included as data attribute on nav components. By default this will be enabled if AcrossDevelopmentMode is active.