Class InstanceListImpl
java.lang.Object
com.aquima.interactions.framework.container.list.ListImpl
com.aquima.interactions.framework.container.instance.list.InstanceListImpl
Improved Instance selector plus implementation which provides paging, sorting and searching on top of the existing
functionality.
- Since:
- 9.3
- Author:
- T. Middeldorp, G. der Kinderen
- See Also:
-
Field Summary
Fields inherited from class com.aquima.interactions.framework.container.list.ListImpl
context, MESSAGE_SEARCH, numberOfVisibleColumns, PAGINATION
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceListImpl
(InstanceListParameters parameters, IContainerContext context, ContainerDefinition definition) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBody
(Container container, IListRowData[] rows, ListState state, ListConfiguration configuration) protected void
addFooter
(Container container, ListState state, ListConfiguration configuration) protected void
addHeader
(Container container, ListState state, ListConfiguration configuration) Adds a container before the tabular content.protected void
addTableHeaders
(TableBuilder tableBuilder, ListState state, ListConfiguration configuration) protected void
addTableRows
(TableBuilder tableBuilder, IListRowData[] rows) protected ListRowDataComparator
createListRowDataComparator
(List<Sorting> sorting) protected Container
expand
(Container container, ContainerDefinition definition) protected String
getId()
Gets the identifier for this container implementation.protected IEntityInstance[]
getInstances
(IContainerContext context, InstanceListParameters parameters) protected boolean
isValidDataType
(IListColumn column, DataType dataType) Verifies that a data type corresponds with the column definition.protected void
postProcessTable
(Container container, IListRowData[] rows) protected IValue
processColumnValue
(IListColumn listColumn, IListRowData listRow) Retrieves the value at the intersection of a column and a row, for data that is to be used in search functionality.Methods inherited from class com.aquima.interactions.framework.container.list.ListImpl
createSortButton, createTable, createText, createText, createValue, formatValue, getProcessEngine, initialize, processRows
-
Constructor Details
-
InstanceListImpl
public InstanceListImpl(InstanceListParameters parameters, IContainerContext context, ContainerDefinition definition)
-
-
Method Details
-
getId
Description copied from class:ListImpl
Gets the identifier for this container implementation. -
expand
- Throws:
Exception
-
postProcessTable
- Overrides:
postProcessTable
in classListImpl
-
addBody
protected void addBody(Container container, IListRowData[] rows, ListState state, ListConfiguration configuration) throws Exception -
addHeader
Description copied from class:ListImpl
Adds a container before the tabular content. Includes search functionality. -
addTableHeaders
protected void addTableHeaders(TableBuilder tableBuilder, ListState state, ListConfiguration configuration) throws Exception - Overrides:
addTableHeaders
in classListImpl
- Throws:
Exception
-
addTableRows
- Specified by:
addTableRows
in classListImpl
- Throws:
Exception
-
isValidDataType
Description copied from class:ListImpl
Verifies that a data type corresponds with the column definition.- Specified by:
isValidDataType
in classListImpl
- Parameters:
column
- The column definition (cannot be null)dataType
- the type to verify (cannot be null)- Returns:
- true when the column definition corresponds with the data type, false otherwise.
-
processColumnValue
Description copied from class:ListImpl
Retrieves the value at the intersection of a column and a row, for data that is to be used in search functionality.- Specified by:
processColumnValue
in classListImpl
- Parameters:
listColumn
- The column from which to obtain a value (cannot be null)listRow
- The row from which to obtain a value (cannot be null)- Returns:
- a value, possibly null.
-
createListRowDataComparator
- Overrides:
createListRowDataComparator
in classListImpl
-
getInstances
protected IEntityInstance[] getInstances(IContainerContext context, InstanceListParameters parameters)
-