Package | Description |
---|---|
org.ujorm.tools.web | |
org.ujorm.tools.web.ajax | |
org.ujorm.tools.web.ao | |
org.ujorm.tools.web.json | |
org.ujorm.tools.web.report | |
org.ujorm.tools.web.table |
Modifier and Type | Method and Description |
---|---|
Element |
Element.addAnchor(String url,
CharSequence... cssClasses)
Add an anchor element with URL and CSS classes
|
Element |
Element.addAnchoredText(String url,
Object... text)
Deprecated.
|
Element |
HtmlElement.addBody()
Returns a body element
|
Element |
Element.addBody(CharSequence... cssClasses)
Add new body element
|
Element |
Element.addBreak(CharSequence... cssClasses)
Add a line break
|
Element |
Element.addButton(CharSequence... cssClasses)
Add new button element
|
Element |
HtmlElement.addCDATA(CharSequence charData)
Deprecated.
|
Element |
Element.addCDATA(CharSequence charData) |
Element |
HtmlElement.addComment(CharSequence comment) |
Element |
Element.addComment(CharSequence comment) |
Element |
HtmlElement.addCssBodies(CharSequence lineSeparator,
CharSequence... css)
Create a new CSS element and return it.
|
Element |
HtmlElement.addCssBody(CharSequence css)
Create a new CSS element and return it
|
Element |
HtmlElement.addCssLink(CharSequence css)
Create a new CSS element and return it
|
Element |
Element.addDiv(CharSequence... cssClasses)
Add new div element
|
Element |
HtmlElement.addElement(String name)
Create new Element
|
Element |
Element.addElement(String name)
Create new Element
|
Element |
Element.addElement(String name,
CharSequence... cssClasses)
Add a new Element with optional CSS classes
|
Element |
Element.addElementIf(boolean enabled,
String name,
CharSequence... cssClasses)
Add an element according to a condition.
|
Element |
Element.addFieldset(String title,
CharSequence... cssClasses)
Add new fieldset element including a title
|
Element |
Element.addForm(CharSequence... cssClasses)
Add new form element
|
Element |
HtmlElement.addHead()
Returns a head element
|
Element |
Element.addHeading(CharSequence title,
CharSequence... cssClasses)
Add a top heading (level one)
|
Element |
Element.addHeading(int level,
CharSequence title,
CharSequence... cssClasses)
Add new heading with the required level where the first level is the one,
|
Element |
Element.addImage(CharSequence imageLink,
CharSequence alt,
CharSequence... cssClasses)
Add a link to an image
|
Element |
Element.addImage(InputStream imageStream,
CharSequence alt,
CharSequence... cssClasses)
Add an embeded image
|
Element |
Element.addInput(CharSequence... cssClasses)
Add new input element
|
Element |
HtmlElement.addJavascriptBody(CharSequence... javascript)
Create a new Javascript element and return it.
|
Element |
HtmlElement.addJavascriptContents(CharSequence javascript)
Deprecated.
|
Element |
HtmlElement.addJavascriptLink(boolean defer,
CharSequence javascriptLink)
Create a new Javascript element and return it
|
Element |
Element.addLabel(CharSequence... cssClasses)
Add new label element
|
Element |
Element.addLink(CharSequence... cssClasses)
Add new link element
|
Element |
Element.addLinkedText(String url,
Object... text)
Add a
|
Element |
Element.addListItem(CharSequence... cssClasses) |
Element |
Element.addOption(CharSequence... cssClasses)
Add new option element
|
Element |
Element.addOrderedList(CharSequence... cssClasses)
Add new ordered list element
|
Element |
Element.addParagraph(CharSequence... cssClasses)
Add new paragram element
|
Element |
Element.addPasswordInput(CharSequence... cssClasses)
Add new input element type of password
|
Element |
Element.addPreformatted(CharSequence... cssClasses)
Add new pre element
|
Element |
Element.addRawText(Object... data) |
Element |
HtmlElement.addRawText(Object value) |
Element |
Element.addRawText(Object data) |
Element |
Element.addRawTexts(CharSequence separator,
Object... data)
Add many words separated by a delimeter
|
Element |
Element.addScript(CharSequence... cssClasses)
Add new script element
|
Element |
Element.addSelect(CharSequence... cssClasses)
Add new select element
|
Element |
Element.addSelectOptions(Object value,
Map<?,?> options,
CharSequence... cssClasses)
Add options from map to current select element
|
Element |
Element.addSpan(CharSequence... cssClasses)
Add new span element
|
Element |
Element.addStyle(CharSequence... cssClasses)
Add new style element
|
Element |
Element.addSubmitButton(CharSequence... cssClasses)
Add a submit button
|
Element |
Element.addTable(Collection<Object[]> data,
CharSequence... cssClass)
Create a HTML table according to data
|
Element |
Element.addTable(CharSequence... cssClasses)
Add new Table
|
Element |
Element.addTable(Object[][] data,
CharSequence... cssClass)
Create a HTML table according to data
|
<D,V> Element |
Element.addTable(Stream<D> domains,
CharSequence[] cssClass,
Object[] headers,
Function<D,V>... attributes)
Create a HTML table according to data
Usage
element.addTable(getCars(), cssClasses, titles,
Car::getId,
Car::getName,
Car::getEnabled);
|
Element |
Element.addTableDetail(CharSequence... cssClasses)
Add new detail of table element
|
Element |
Element.addTableHead(CharSequence... cssClasses)
Add new head of table element
|
Element |
Element.addTableNoSpaces(CharSequence... cssClasses)
Deprecated.
Use a CSS style rather.
|
Element |
Element.addTableRow(CharSequence... cssClasses)
Add new table row element
|
Element |
Element.addTemplate(String template,
Object... data)
Deprecated.
|
Element |
Element.addText(Object... data)
Add many texts with no separator
|
Element |
HtmlElement.addText(Object value) |
Element |
Element.addText(Object data)
Add simple text
|
Element |
Element.addTextArea(CharSequence... cssClasses)
Add new text area element
|
<V> Element |
Element.addTextInp(HttpParameter param,
V value,
CharSequence title,
CharSequence... cssClasses)
Add new input element type of text including attributes: name, value, placeholder and title
|
Element |
Element.addTextInput(javax.servlet.http.HttpServletRequest req,
HttpParameter param,
CharSequence title,
CharSequence... cssClasses)
Deprecated.
Use the method of the same name with an explicit value.
|
Element |
Element.addTextInput(CharSequence... cssClasses)
Add new input element type of text
|
Element |
Element.addTexts(CharSequence separator,
Object... data)
Add many words separated by a delimeter
|
Element |
Element.addTextSeparted(CharSequence separator,
Object... data)
Deprecated.
|
Element |
HtmlElement.addTextTemplated(CharSequence template,
Object... values) |
Element |
Element.addTextTemplated(CharSequence template,
Object... values)
Add a template based text with parameters with hight performance.
|
Element |
Element.addTitle(CharSequence... cssClasses)
Add new title element
|
Element |
Element.addUnorderedlist(CharSequence... cssClasses)
Add new unordered list element
|
static Element |
Element.createHtmlRoot(Object title,
CharSequence... cssLinks)
Crate a root element
|
static Element |
Element.createHtmlRoot(Object title,
Charset charset,
CharSequence... cssLinks)
Crate a root element
|
Element |
HtmlElement.getBody()
Returns a body element
|
Element |
HtmlElement.getHead()
Returns a head element
|
static Element |
Element.of(ApiElement original)
New element for an API element
|
Element |
HtmlElement.original()
Get an original root element
|
Element |
Element.setAction(Object value)
Set an action type of from
|
Element |
Element.setAttr(String name,
Object value)
A shortcut for the method
setAttribute(java.lang.String, java.lang.Object) . |
Element |
Element.setAttrib(String name,
Object value)
Deprecated.
|
Element |
Element.setAttribute(String name)
Set an attribute with no value
|
Element |
HtmlElement.setAttribute(String name,
Object value) |
Element |
Element.setAttribute(String name,
Object value)
Set an attribute
|
Element |
Element.setAttributes(String name,
CharSequence separator,
Object... value)
Set an attribute
|
Element |
Element.setCellPadding(int value)
Deprecated.
|
Element |
Element.setCellSpacing(int value)
Deprecated.
|
Element |
Element.setClass(CharSequence... cssClasses)
Set a CSS class attribute optionally, the empty attribute is ignored.
|
Element |
Element.setCols(Object value)
Column count of a text area
|
Element |
Element.setColSpan(int value)
Column span inside the table
|
Element |
Element.setFor(CharSequence value)
Set an value of input element
|
Element |
Element.setHref(CharSequence value)
Set hyperlink reference
|
Element |
Element.setId(CharSequence value)
Set an identifier of the element
|
Element |
Element.setMethod(Object value)
Set a method of form
|
Element |
Element.setName(CharSequence value)
Set an name of input element
|
Element |
Element.setRows(int value)
Row count of a text area
|
Element |
Element.setRowSpan(int value)
Row span inside the table
|
Element |
Element.setType(Object value)
Set a type of input element
|
Element |
Element.setValue(Object value)
Set an value of input element
|
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptWriter.write(Element parent)
Generate a Javascript
|
void |
JQueryWriter.write(Element parent)
Deprecated.
Generate a Javascript
|
Modifier and Type | Method and Description |
---|---|
void |
Injector.write(Element element)
Performs this operation on the given argument.
|
void |
Column.write(Element parent,
T value)
Write a custom content of the table cell
|
Modifier and Type | Method and Description |
---|---|
void |
ValueProvider.accept(Element element)
Write a HTML code to the element
|
Modifier and Type | Method and Description |
---|---|
BiConsumer<Element,Boolean> |
ReportBuilderConfig.getCssWriter()
Inline CSS writer where the first method is an Element and the seconnd one is a sortable
|
BiConsumer<Element,Boolean> |
ReportBuilderConfigImpl.getCssWriter()
Inline CSS writer where a default value is generated from the
ReportBuilderConfigImpl.inlineCssWriter() method.
} |
protected BiConsumer<Element,Boolean> |
ReportBuilderConfigImpl.inlineCssWriter()
Default header CSS style printer
|
Modifier and Type | Method and Description |
---|---|
protected void |
ReportBuilder.printTableBody(Element table,
javax.servlet.http.HttpServletRequest input,
Function<GridBuilder<D>,Stream<D>> resource) |
Modifier and Type | Method and Description |
---|---|
ReportBuilderConfigImpl<D> |
ReportBuilderConfigImpl.setCssWriter(BiConsumer<Element,Boolean> cssWriter)
Inline CSS writer
|
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
BiConsumer<Element,Boolean> |
GridBuilderConfig.getCssWriter()
Inline CSS writer where the first method is an Element and the seconnd one is a sortable
|
Modifier and Type | Method and Description |
---|---|
protected void |
GridBuilder.printTable(Element parent,
Function<GridBuilder<D>,Stream<D>> resource)
Print table
|
protected void |
GridBuilderOld.printTable(Element table,
Function<GridBuilder<D>,Stream<D>> resource)
Deprecated.
Print table body
|
Copyright 2019-2022, Pavel Ponec