Class InstanceListParameters
java.lang.Object
com.aquima.interactions.framework.container.instance.list.param.InstanceListParameters
This class parses the parameters needed for the instance selector plus container.
- Since:
- 5.0
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the value for the 'add-button-condition' parameter.getAddButtonEvent
(int buttonIndex) String[]
This method returns an array containing the add buttons.This method returns the name of the entity whose instances should be selected.This method returns an expression that should be used to check if an instance should be included in the list.This method returns the name of the container that should be used as header.static InstanceListParameters
getInstance
(IParameters parameters) This method converts the parameters object passed to the container to an instance-selector parameters object.This method returns the name of the container that should be used when no instances are available.An integer value to indicate the desired amount of items on a single page.This method returns the relation attribute that was used to refer to the container.This method returns the expression that should be used to sort the instances on.int
This method returns an integer indicating the sort order.boolean
This method returns a boolean indicating if the header container has been specified.boolean
This method returns a boolean indicating if the save action should directly update the instance.boolean
This method returns a boolean indicating if the the instances with a sort key that result in unknown must be sorted at the end of the instance list.
-
Method Details
-
getInstance
This method converts the parameters object passed to the container to an instance-selector parameters object.- Parameters:
parameters
- The parameters object that was passed to the container.- Returns:
- The parameters object for the instance selector.
-
getAddButtons
This method returns an array containing the add buttons.- Returns:
- an array containing the add buttons.
-
getAddButtonEvent
-
getAddButtonCondition
This method returns the value for the 'add-button-condition' parameter.- Returns:
- the value for the 'addbuttoncondition' parameter.
-
getHeaderContainer
This method returns the name of the container that should be used as header.- Returns:
- the name of the container that should be used as header.
-
hasHeaderContainer
public boolean hasHeaderContainer()This method returns a boolean indicating if the header container has been specified.- Returns:
- a boolean indicating if the header container has been specified.
-
getNoInstancesContainer
This method returns the name of the container that should be used when no instances are available.- Returns:
- the name of the container that should be used when no instances are available.
-
getEntityName
This method returns the name of the entity whose instances should be selected.- Returns:
- the name of the entity whose instances should be selected.
-
getSortExpression
This method returns the expression that should be used to sort the instances on.- Returns:
- the attribute name that should be used to sort the instances on.
-
getSortOrder
public int getSortOrder()This method returns an integer indicating the sort order.- Returns:
- an integer indicating the sort order.
-
getFilterExpression
This method returns an expression that should be used to check if an instance should be included in the list.- Returns:
- an expression that should be used to check if an instance should be included in the list.
-
isInstanceActionNowForSave
public boolean isInstanceActionNowForSave()This method returns a boolean indicating if the save action should directly update the instance.- Returns:
- a boolean indicating if the save action should directly update the instance.
-
getReferrerPath
This method returns the relation attribute that was used to refer to the container.- Returns:
- the relation attribute that was used to refer to the container.
-
isSortUnknownAsLast
public boolean isSortUnknownAsLast()This method returns a boolean indicating if the the instances with a sort key that result in unknown must be sorted at the end of the instance list.- Returns:
- a boolean indicating if unknowns must be sorted at the end of the instance list.
-
getPagingSize
An integer value to indicate the desired amount of items on a single page.- Returns:
- integer value to set the paging size (can be null).
-