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