Class ViewComponents

java.lang.Object
pl.matsuo.core.util.desktop.component.ViewComponents

public class ViewComponents extends Object
  • Constructor Details

    • ViewComponents

      public ViewComponents(String additionalCss)
  • Method Details

    • loadResource

      public static String loadResource(Class<?> clazz, String path)
    • pageTemplate

      public j2html.tags.ContainerTag pageTemplate(String title, j2html.tags.DomContent... bodyContent)
    • rowCol

      public j2html.tags.DomContent rowCol(j2html.tags.DomContent... content)
    • table

      public <E> j2html.tags.DomContent table(j2html.tags.DomContent headerRow, List<E> rows, Function<? super E,j2html.tags.DomContent> mapper)
    • maybeShowAlert

      public j2html.tags.DomContent maybeShowAlert(IRequest request, String param, AlertType type)