public interface GridBuilderConfig<D>
TableBuilder.of("Hotel Report")
.add(Hotel::getName, "Hotel", NAME)
.add(Hotel::getCity, "City", CITY)
.add(Hotel::getStreet, "Street")
.build(ServletRequest, ServletResponse, resource);
| Modifier and Type | Method and Description |
|---|---|
@NotNull CharSequence |
getAjaxReadyMessage() |
@NotNull HttpParameter |
getAjaxRequestParam() |
@NotNull HtmlConfig |
getConfig() |
@NotNull String |
getControlCss() |
@NotNull String |
getCssLink() |
BiConsumer<Element,Boolean> |
getCssWriter()
Inline CSS writer where the first method is an Element and the seconnd one is a sortable
|
@NotNull String |
getFormId() |
@NotNull Duration |
getIdleDelay() |
default @NotNull String |
getInnerSortableImage(@NotNull Direction direction)
Get a CSS direction style
|
default @Nullable InputStream |
getInnerSortableImageToStream(@NotNull Direction direction)
Get a CSS direction style
|
@NotNull String |
getJavascriptLink()
Link to an external Javascript library where a no-library returns an empty String
|
@NotNull CharSequence |
getSortable() |
@NotNull CharSequence |
getSortableAsc() |
@NotNull CharSequence |
getSortableBoth() |
@NotNull CharSequence |
getSortableDesc() |
default @NotNull CharSequence |
getSortableDirection(@NotNull Direction direction)
Get a CSS direction style
|
@NotNull HttpParameter |
getSortRequestParam() |
@NotNull String |
getSubtitleCss() |
@NotNull List<CharSequence> |
getTableCssClass() |
@NotNull CharSequence |
getTableSelector() |
boolean |
isEmbeddedIcons()
Use inner icons for sortable images
|
static @NotNull GridBuilderConfig |
of(@NotNull HtmlConfig config)
Returns a default implementation
|
@NotNull @NotNull HtmlConfig getConfig()
@NotNull @NotNull String getCssLink()
@NotNull @NotNull String getJavascriptLink()
@NotNull @NotNull Duration getIdleDelay()
@NotNull @NotNull HttpParameter getAjaxRequestParam()
@NotNull @NotNull HttpParameter getSortRequestParam()
@NotNull @NotNull CharSequence getAjaxReadyMessage()
@NotNull @NotNull String getFormId()
@NotNull @NotNull String getControlCss()
@NotNull @NotNull String getSubtitleCss()
@NotNull @NotNull CharSequence getTableSelector()
@NotNull @NotNull List<CharSequence> getTableCssClass()
@NotNull @NotNull CharSequence getSortable()
@NotNull @NotNull CharSequence getSortableAsc()
@NotNull @NotNull CharSequence getSortableDesc()
@NotNull @NotNull CharSequence getSortableBoth()
boolean isEmbeddedIcons()
BiConsumer<Element,Boolean> getCssWriter()
@NotNull default @NotNull CharSequence getSortableDirection(@NotNull @NotNull Direction direction)
@Nullable default @Nullable InputStream getInnerSortableImageToStream(@NotNull @NotNull Direction direction)
@NotNull default @NotNull String getInnerSortableImage(@NotNull @NotNull Direction direction)
@NotNull static @NotNull GridBuilderConfig of(@NotNull @NotNull HtmlConfig config)
Copyright 2015, Pavel Ponec