Package com.persequor.extension.frontend
Interface IPage
This is used to compose a page or a Vertical Container component with a series of sub-components like forms, tables, graphs, etc.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accordion
(Consumer<IAccordion> consumer) Add an accordion element displaying components in foldable panelsvoid
Add an alert message on the pagevoid
Add an alert message on the pagevoid
Add an alert message on the pagevoid
Add an alert message on the pagevoid
eventsTable
(EventList events) Will add an event table like the one used on core SAGA UI pages.void
eventsTable
(EventList events, boolean withExtensions, boolean withListExtensions, boolean skipRefetchOnOpen) Will add an event table like the one used on core SAGA UI pages.void
eventsTable
(IInputData inputData, Consumer<IEventsTable> consumer) Will add an event table like the one used on core SAGA UI pages, with the possibility to enable server side pagination.void
eventsTable
(List<UUID> sagaEventIds) Will add an event table like the one used on core SAGA UI pages.void
form
(IInputData inputData, Consumer<IForm> consumer) Add a form to the page or Vertical Container.void
form
(Props props, IInputData inputData, Consumer<IForm> consumer) Add a form to the page or Vertical Container.void
Add a form to the page or Vertical Container.Deprecated.void
Will redirect the user to another URL.void
redirect
(RedirectableLink to, int delay) void
Add a visible section containing other elementsvoid
Add a visible section containing other elementsvoid
table
(IInputData inputData, Consumer<ITable> consumer) Add a table to the page or Vertical Container.void
Add a table to the page or Vertical Container.void
void
Add a message toast that will pop up on the screen after it gets refreshed by specifying the message and the variant (success, error, warning, info)void
Add a message toast that will pop up on the screen after it gets refreshed by specifying the message and the variant (success, error, warning, info)Methods inherited from interface com.persequor.extension.frontend.IContent
button, button, copyButton, copyButton, dateTime, divider, header, header, icon, iconButton, iconButton, image, image, itemList, number, number, paragraph, paragraph, text, text, text, text, title, title, tree
-
Method Details
-
form
Add a form to the page or Vertical Container.Forms can contain fields of different types and the form will be posted to the
IFrontendComponent.handle(IPage, IInputData)
method.- Parameters:
consumer
- to populate the form
-
form
Add a form to the page or Vertical Container.Forms can contain fields of different types and the form will be posted to the
IFrontendComponent.handle(IPage, IInputData)
method.- Parameters:
inputData
- data to populate form fields withconsumer
- to populate the form
-
form
Add a form to the page or Vertical Container.Forms can contain fields of different types and the form will be posted to the
IFrontendComponent.handle(IPage, IInputData)
method.- Parameters:
props
- the layout properties for the forminputData
- data to populate form fields withconsumer
- to populate the form
-
table
Add a table to the page or Vertical Container.Tables are defined by adding rows to the
consumer
, and columns to the nestedconsumers
.- Parameters:
consumer
- to populate the table
-
table
Add a table to the page or Vertical Container.Tables are defined by adding rows to the
consumer
, and columns to the nestedconsumers
.- Parameters:
consumer
- to populate the tableinputData
- to update the current state of the table
-
eventsTable
Will add an event table like the one used on core SAGA UI pages, with the possibility to enable server side pagination.- Parameters:
inputData
- to update the current state of the tableconsumer
- to populate the table
-
eventsTable
Will add an event table like the one used on core SAGA UI pages.- Parameters:
events
- to populate the table with
-
eventsTable
void eventsTable(EventList events, boolean withExtensions, boolean withListExtensions, boolean skipRefetchOnOpen) Will add an event table like the one used on core SAGA UI pages.- Parameters:
events
- to populate the table withwithExtensions
- enrich events with event extensions, EPC enrichment and revert status. This defaults to false and is normally only done when fetching an individual event.withListExtensions
- enrich events with list extensionsskipRefetchOnOpen
- skip refetching event when viewing details
-
eventsTable
Will add an event table like the one used on core SAGA UI pages. Providing Event IDs will make the UI fetch the events from the backend.- Parameters:
sagaEventIds
- to populate the table with
-
timeline
- Parameters:
consumer
- to add components to the timeline
-
redirect
Will redirect the user to another URL.- Parameters:
to
- target
-
redirect
-
toast
Add a message toast that will pop up on the screen after it gets refreshed by specifying the message and the variant (success, error, warning, info)- Parameters:
variant
- Type of toastmessage
- Message in toast
-
toast
Add a message toast that will pop up on the screen after it gets refreshed by specifying the message and the variant (success, error, warning, info)- Parameters:
variant
- Type of toastmessage
- Message in toast
-
alert
Add an alert message on the page- Parameters:
severity
- Type of messagetitle
- Title of messagemessage
- Message text
-
alert
Add an alert message on the page- Parameters:
severity
- Type of messagemessage
- Message text
-
alert
Add an alert message on the page- Parameters:
severity
- Type of messagetitle
- Title of messagemessage
- Message text
-
alert
Add an alert message on the page- Parameters:
severity
- Type of messagemessage
- Message text
-
section
Add a visible section containing other elements -
section
Add a visible section containing other elements -
accordion
Add an accordion element displaying components in foldable panels- Parameters:
consumer
- The content
-
getOnLoad
Deprecated.Client side scripting when page is loaded.- Returns:
- the list of client side actions to be carried out when the page is loaded.
-