public class ReportBuilderConfigImpl<D> extends Object implements ReportBuilderConfig<D>
TableBuilder.of("Hotel Report") .add(Hotel::getName, "Hotel", NAME) .add(Hotel::getCity, "City", CITY) .add(Hotel::getStreet, "Street") .build(httpServletRequest, httpServletResponse, resource);
Modifier and Type | Class and Description |
---|---|
static class |
ReportBuilderConfigImpl.Constants
Config constants
|
Modifier and Type | Field and Description |
---|---|
protected HtmlConfig |
config
HTML config
|
Modifier | Constructor and Description |
---|---|
|
ReportBuilderConfigImpl(HtmlConfig config) |
protected |
ReportBuilderConfigImpl(HtmlConfig config,
String cssLink,
String jqueryLink,
Duration idleDelay,
HttpParameter ajaxRequestParam,
HttpParameter sortRequestParam,
String formId,
String controlCss,
String subtitleCss,
List<CharSequence> tableCssClass,
String sortableColumn,
String sortableAsc,
String sortableDesc,
String sortableBoth,
boolean embeddedIcons,
BiConsumer<Element,Boolean> cssWriter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInnerSortableImage, getInnerSortableImageToStream, getSortableDirection, of
@Nonnull protected final HtmlConfig config
public ReportBuilderConfigImpl(@Nonnull HtmlConfig config)
protected ReportBuilderConfigImpl(@Nonnull HtmlConfig config, @Nonnull String cssLink, @Nonnull String jqueryLink, @Nonnull Duration idleDelay, @Nonnull HttpParameter ajaxRequestParam, @Nonnull HttpParameter sortRequestParam, @Nonnull String formId, @Nonnull String controlCss, @Nonnull String subtitleCss, @Nonnull List<CharSequence> tableCssClass, @Nonnull String sortableColumn, @Nonnull String sortableAsc, @Nonnull String sortableDesc, @Nonnull String sortableBoth, boolean embeddedIcons, @Nonnull BiConsumer<Element,Boolean> cssWriter)
@Nonnull protected CharSequence getTableClassSelector()
public ReportBuilderConfigImpl<D> setCssLink(@Nonnull String cssLink)
public ReportBuilderConfigImpl<D> setJqueryLink(@Nonnull String jqueryLink)
public ReportBuilderConfigImpl<D> setIdleDelay(@Nonnull Duration idleDelay)
public ReportBuilderConfigImpl<D> setAjaxRequestParam(@Nonnull HttpParameter ajaxRequestParam)
public ReportBuilderConfigImpl<D> setSortRequestParam(@Nonnull HttpParameter sortRequestParam)
public ReportBuilderConfigImpl<D> setAjaxReadyMessage(@Nonnull CharSequence ajaxReadyMessage)
public ReportBuilderConfigImpl<D> setFormId(@Nonnull String formId)
public ReportBuilderConfigImpl<D> setControlCss(@Nonnull String controlCss)
public ReportBuilderConfigImpl<D> setSubtitleCss(@Nonnull String subtitleCss)
public ReportBuilderConfigImpl<D> setTableSelector(@Nonnull CharSequence tableSelector)
public ReportBuilderConfigImpl<D> setTableCssClass(@Nonnull List<CharSequence> tableCssClass)
public ReportBuilderConfigImpl<D> setCssWriter(@Nullable BiConsumer<Element,Boolean> cssWriter)
public boolean setEmbeddedIcons(boolean embeddedIcons)
@Nonnull public HtmlConfig getConfig()
getConfig
in interface ReportBuilderConfig<D>
getConfig
in interface GridBuilderConfig<D>
@Nonnull public String getCssLink()
getCssLink
in interface ReportBuilderConfig<D>
getCssLink
in interface GridBuilderConfig<D>
@Nonnull public String getJavascriptLink()
getJavascriptLink
in interface ReportBuilderConfig<D>
getJavascriptLink
in interface GridBuilderConfig<D>
@Nonnull public Duration getIdleDelay()
getIdleDelay
in interface ReportBuilderConfig<D>
getIdleDelay
in interface GridBuilderConfig<D>
@Nonnull public HttpParameter getAjaxRequestParam()
getAjaxRequestParam
in interface ReportBuilderConfig<D>
getAjaxRequestParam
in interface GridBuilderConfig<D>
@Nonnull public HttpParameter getSortRequestParam()
getSortRequestParam
in interface ReportBuilderConfig<D>
getSortRequestParam
in interface GridBuilderConfig<D>
@Nonnull public CharSequence getAjaxReadyMessage()
getAjaxReadyMessage
in interface ReportBuilderConfig<D>
getAjaxReadyMessage
in interface GridBuilderConfig<D>
@Nonnull public String getFormId()
getFormId
in interface ReportBuilderConfig<D>
getFormId
in interface GridBuilderConfig<D>
@Nonnull public String getControlCss()
getControlCss
in interface ReportBuilderConfig<D>
getControlCss
in interface GridBuilderConfig<D>
@Nonnull public String getSubtitleCss()
getSubtitleCss
in interface ReportBuilderConfig<D>
getSubtitleCss
in interface GridBuilderConfig<D>
@Nonnull public CharSequence getTableSelector()
getTableSelector
in interface ReportBuilderConfig<D>
getTableSelector
in interface GridBuilderConfig<D>
@Nonnull public List<CharSequence> getTableCssClass()
getTableCssClass
in interface ReportBuilderConfig<D>
getTableCssClass
in interface GridBuilderConfig<D>
@Nonnull public CharSequence getSortable()
getSortable
in interface ReportBuilderConfig<D>
getSortable
in interface GridBuilderConfig<D>
@Nonnull public CharSequence getSortableAsc()
getSortableAsc
in interface ReportBuilderConfig<D>
getSortableAsc
in interface GridBuilderConfig<D>
@Nonnull public CharSequence getSortableDesc()
getSortableDesc
in interface ReportBuilderConfig<D>
getSortableDesc
in interface GridBuilderConfig<D>
@Nonnull public CharSequence getSortableBoth()
getSortableBoth
in interface ReportBuilderConfig<D>
getSortableBoth
in interface GridBuilderConfig<D>
@Nonnull public BiConsumer<Element,Boolean> getCssWriter()
inlineCssWriter()
method.
}getCssWriter
in interface ReportBuilderConfig<D>
getCssWriter
in interface GridBuilderConfig<D>
public boolean isEmbeddedIcons()
isEmbeddedIcons
in interface ReportBuilderConfig<D>
isEmbeddedIcons
in interface GridBuilderConfig<D>
@Nonnull protected BiConsumer<Element,Boolean> inlineCssWriter()
Copyright 2019-2022, Pavel Ponec