Package de.esoco.process.ui
Klasse UiBuilder<C extends UiContainer<C>>
java.lang.Object
de.esoco.process.ui.UiBuilder<C>
Provides factory methods that build UI components in a container.
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T,
V extends UiComponent<T, V>>
VAdds an arbitrary component to this container by applying a factory function to this builder's container.Adds a clickable button.addCalendar
(Date date) Adds a date selector.addCard
(UiImageDefinition<?> titleImage) Adds a card panel with a title image.addCard
(UiImageDefinition<?> titleImage, String title) Adds a card panel with a title image and title text inside the image.addCard
(String title, UiIconSupplier icon) Adds a card panel.addCheckBox
(String label) Adds a single check boxes that represents a boolean value.<E extends Enum<E>>
UiCheckBoxes<E> addCheckBoxes
(Class<E> enumType) Adds a group of check boxes with labels derived from an enum.addCheckBoxes
(String... labels) Adds a group of check boxes with string labels.addComboBox
(String text) Adds a single-line text input field with a drop-down list of value suggestions.<E extends Entity>
UiDataTableaddDataTable
(Collection<HierarchicalDataObject> data, Collection<de.esoco.lib.model.ColumnDefinition> columns) Adds a table that displays static data.addDateField
(Date date) Adds a date input field with a pop-up date selector.addDecimalField
(BigDecimal value) Adds an input field for decimal values.Adds a deck panel.addDockPanel
(de.esoco.lib.property.Orientation orientation) Adds a dock panel.<T> UiDropDown
<T> addDropDown
(Class<T> datatype) Adds a single-line field with a list of selectable elements.addFileSelect
(String label) Adds a file upload component.addFragment
(InteractionFragment fragment, UiLayout layout) Adds an arbitrary process interaction fragment to this container.addIcon
(UiIconSupplier iconSupplier) Adds a non-interactive icon.addIconButton
(UiIconSupplier icon) Adds a clickable icon button.addImage
(UiImageDefinition<?> image) Adds an image.addIntegerField
(int value) Adds an integer input field.Adds a non-interactive label.Adds a clickable link.addList()
Adds a list of selectable strings.Adds a list of selectable enum values.Adds a list of selectable strings.Adds a list of strings that allows to select multiple values.<E extends Enum<E>>
UiMultiSelectionList<E> addMultiSelectionList
(Class<E> enumType) Adds a list of enums that allows to select multiple values.Adds a panel with a certain layout.addPasswordField
(String text) Adds a single-line text input field that hides the input.addPhoneNumberField
(String phoneNumber) Adds a single-line text input field for the input of international phone numbers.Adds a progress bar.<E extends Enum<E>>
UiPushButtons<E> addPushButtons
(Class<E> enumType) Adds a group of push buttons with labels derived from an enum.addPushButtons
(String... buttonLabels) Adds a group of push buttons with string labels.<E extends Entity>
UiQueryTable<E> addQueryTable
(Class<E> entityType) Adds a table that performs an entity query.<E extends Enum<E>>
UiRadioButtons<E> addRadioButtons
(Class<E> enumType) Adds a group of radio buttons with labels derived from an enum.addRadioButtons
(String... buttonLabels) Adds a group of radio buttons with string labels.addSplitPanel
(de.esoco.lib.property.Orientation orientation) Adds a split panel.Adds a stack panel.addSubProcess
(Class<? extends ProcessDefinition> subProcessClass, UiLayout layout) Adds an interactive sub-process to be rendered in a sub-fragment of this container.Adds a tab panel.addTextArea
(String text) Adds a multi-line text input field.addTextField
(String text) Adds a single-line text input field.addThumbnail
(UiImageDefinition<?> image) Adds an image thumbnail that opens a larger image in a popup view when clicked.addThumbnail
(UiImageDefinition<?> thumbImage, UiImageDefinition<?> fullImage) Adds an image thumbnail that opens a larger image in a popup view when clicked.Adds a non-interactive title label.<E extends Enum<E>>
UiToggleButtons<E> addToggleButtons
(Class<E> enumType) Adds a group of radio buttons with labels derived from an enum.addToggleButtons
(String... buttonLabels) Adds a group of radio buttons with string labels.addWebView
(String url) Adds a web page display.final C
Returns the container that is built by container instance.nextRow()
InvokesUiLayout.nextRow()
and returns this instance to allow fluent invocations likenextRow().addButton(...)
.
-
Konstruktordetails
-
UiBuilder
Creates a new instance.- Parameter:
container
- The container to build the UI in
-
-
Methodendetails
-
add
Adds an arbitrary component to this container by applying a factory function to this builder's container. This allows to add components which don't have an explicit factory method in the builder API.It is recommended to create custom components as subclasses of generic types like
UiComposite
because otherwise the Java type system may not be able to resolve the correct generic type when using this method.- Parameter:
create
- The factory function- Gibt zurück:
- The new component
-
addButton
Adds a clickable button.- Parameter:
label
- The button label- Gibt zurück:
- The new component
-
addCalendar
Adds a date selector. By default it only provides a calendar date input but an additional time of day selector can be enabled with the methodUiDateInputField.withTimeInput()
.- Parameter:
date
- The initial date value or NULL for the current date- Gibt zurück:
- The new component
-
addCard
Adds a card panel with a title image.- Parameter:
titleImage
- The card title image- Gibt zurück:
- The new card
-
addCard
Adds a card panel with a title image and title text inside the image.- Parameter:
titleImage
- The title imagetitle
- The title text- Gibt zurück:
- The new card
-
addCard
Adds a card panel.- Parameter:
title
- The card title (NULL for none)icon
- The title icon (NULL for none)- Gibt zurück:
- The new card
-
addCheckBox
Adds a single check boxes that represents a boolean value.- Parameter:
label
- The check box label- Gibt zurück:
- The new component
-
addCheckBoxes
Adds a group of check boxes with string labels.- Parameter:
labels
- The initial check box labels (may be empty)- Gibt zurück:
- The new component
-
addCheckBoxes
Adds a group of check boxes with labels derived from an enum. All enum values of the given type will be pre-set as check boxes.- Parameter:
enumType
- The enum class for the check box labels- Gibt zurück:
- The new component
-
addComboBox
Adds a single-line text input field with a drop-down list of value suggestions.- Parameter:
text
- The text to edit- Gibt zurück:
- The new component
-
addDataTable
public <E extends Entity> UiDataTable addDataTable(Collection<HierarchicalDataObject> data, Collection<de.esoco.lib.model.ColumnDefinition> columns) Adds a table that displays static data.- Parameter:
data
- The data objects to displaycolumns
- The data columns to display- Gibt zurück:
- The new component
-
addDateField
Adds a date input field with a pop-up date selector. By default it accepts only date input but additional time input can be enabled withUiDateInputField.withTimeInput()
.- Parameter:
date
- The initial value or NULL for the current date- Gibt zurück:
- The new component
-
addDecimalField
Adds an input field for decimal values.- Parameter:
value
- The initial value- Gibt zurück:
- The new component
-
addDeckPanel
Adds a deck panel.- Gibt zurück:
- The new panel
-
addDockPanel
Adds a dock panel.- Parameter:
orientation
- The panel orientation- Gibt zurück:
- The new panel
-
addDropDown
Adds a single-line field with a list of selectable elements. If the datatype is an enum all enum values will be pre-set as the list values.- Parameter:
datatype
- The datatype of the list elements- Gibt zurück:
- The new component
-
addFileSelect
Adds a file upload component.- Parameter:
label
- The label text- Gibt zurück:
- The new component
-
addFragment
Adds an arbitrary process interaction fragment to this container. This allows to use fragments in conjunction with process UIs.- Parameter:
fragment
- iconSupplier The icon supplierlayout
- The layout to embed the fragment in- Gibt zurück:
- The new component
-
addIcon
Adds a non-interactive icon.- Parameter:
iconSupplier
- The icon supplier- Gibt zurück:
- The new component
-
addIconButton
Adds a clickable icon button.- Parameter:
icon
- The button icon- Gibt zurück:
- The new component
-
addImage
Adds an image.- Parameter:
image
- The image definition- Gibt zurück:
- The new component
-
addIntegerField
Adds an integer input field. To allow only the input of a certain value range with spinner controlsUiIntegerField.withBounds(int, int)
can be invoked on it.- Parameter:
value
- The initial value- Gibt zurück:
- The new component
-
addLabel
Adds a non-interactive label.- Parameter:
text
- The label text- Gibt zurück:
- The new component
-
addLink
Adds a clickable link.- Parameter:
label
- The link label- Gibt zurück:
- The new component
-
addList
Adds a list of selectable strings.- Gibt zurück:
- The new component
-
addList
Adds a list of selectable enum values. All enum values of the given type will be pre-set as the list values.- Parameter:
enumType
- enumClass The enum class of the list values- Gibt zurück:
- The new component
-
addListPanel
Adds a list of selectable strings.- Gibt zurück:
- The new component
-
addMultiSelectionList
Adds a list of strings that allows to select multiple values.- Gibt zurück:
- The new component
-
addMultiSelectionList
Adds a list of enums that allows to select multiple values. All enum values of the given type will be pre-set as the list values.- Parameter:
enumType
- enumClass The enum for the list values- Gibt zurück:
- The new component
-
addPanel
Adds a panel with a certain layout.- Parameter:
layout
- The panel layout- Gibt zurück:
- The new panel
-
addPasswordField
Adds a single-line text input field that hides the input.- Parameter:
text
- The text to edit- Gibt zurück:
- The new component
-
addPhoneNumberField
Adds a single-line text input field for the input of international phone numbers.- Parameter:
phoneNumber
- The phone number to edit- Gibt zurück:
- The new component
-
addProgressBar
Adds a progress bar. The integer value of the bar defines the current progress in relation to the progress bar bounds. These default to 0 and 100 and can be changed withUiProgressBar.withBounds(int, int)
.- Gibt zurück:
- The new component
-
addPushButtons
Adds a group of push buttons with string labels.- Parameter:
buttonLabels
- The initial button labels (may be empty)- Gibt zurück:
- The new component
-
addPushButtons
Adds a group of push buttons with labels derived from an enum. All enum values of the given type will be pre-set as buttons.- Parameter:
enumType
- The enum class for the button labels- Gibt zurück:
- The new component
-
addQueryTable
Adds a table that performs an entity query.- Parameter:
entityType
- The entity type to display- Gibt zurück:
- The new component
-
addRadioButtons
Adds a group of radio buttons with string labels.- Parameter:
buttonLabels
- The initial button labels (may be empty)- Gibt zurück:
- The new component
-
addRadioButtons
Adds a group of radio buttons with labels derived from an enum. All enum values of the given type will be pre-set as buttons.- Parameter:
enumType
- The enum class for the button labels- Gibt zurück:
- The new component
-
addSplitPanel
Adds a split panel.- Parameter:
orientation
- The panel orientation- Gibt zurück:
- The new panel
-
addStackPanel
Adds a stack panel.- Gibt zurück:
- The new panel
-
addSubProcess
public UiSubFragment addSubProcess(Class<? extends ProcessDefinition> subProcessClass, UiLayout layout) Adds an interactive sub-process to be rendered in a sub-fragment of this container.- Parameter:
subProcessClass
- The sub-process definition classlayout
- The layout of the sub-process fragment- Gibt zurück:
- The new component
-
addTabPanel
Adds a tab panel.- Gibt zurück:
- The new panel
-
addTextArea
Adds a multi-line text input field.- Parameter:
text
- The text to edit- Gibt zurück:
- The new component
-
addTextField
Adds a single-line text input field.- Parameter:
text
- The text to edit- Gibt zurück:
- The new component
-
addThumbnail
Adds an image thumbnail that opens a larger image in a popup view when clicked.- Parameter:
image
- The image definition- Gibt zurück:
- The new component
-
addThumbnail
Adds an image thumbnail that opens a larger image in a popup view when clicked.- Parameter:
thumbImage
- The thumbnail imagefullImage
- The larger image- Gibt zurück:
- The new component
-
addTitle
Adds a non-interactive title label.- Parameter:
text
- The title text- Gibt zurück:
- The new component
-
addToggleButtons
Adds a group of radio buttons with labels derived from an enum. All enum values of the given type will be pre-set as buttons.- Parameter:
enumType
- The enum class for the button labels- Gibt zurück:
- The new component
-
addToggleButtons
Adds a group of radio buttons with string labels.- Parameter:
buttonLabels
- The initial button labels (may be empty)- Gibt zurück:
- The new component
-
addWebView
Adds a web page display.- Parameter:
url
- The URL of the page to display- Gibt zurück:
- The new component
-
getContainer
Returns the container that is built by container instance.- Gibt zurück:
- The container
-
nextRow
InvokesUiLayout.nextRow()
and returns this instance to allow fluent invocations likenextRow().addButton(...)
.- Gibt zurück:
- This instance for fluent invocations
-