Package org.apache.ofbiz.widget.renderer
Class Paginator
java.lang.Object
org.apache.ofbiz.widget.renderer.Paginator
Utility methods for handling list pagination.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getActualPageSize
(Map<String, Object> context) static int
getHighIndex
(Map<String, Object> context) static void
static int
getListSize
(Map<String, Object> context) static int
getLowIndex
(Map<String, Object> context) static Integer
getViewIndex
(Map<String, ? extends Object> context, String viewIndexName) static Integer
getViewIndex
(Map<String, ? extends Object> context, String viewIndexName, int defaultValue) static int
getViewIndex
(ModelForm modelForm, Map<String, Object> context) static Integer
getViewSize
(Map<String, ? extends Object> context, String viewSizeName) static int
getViewSize
(ModelForm modelForm, Map<String, Object> context) static void
preparePager
(ModelForm modelForm, Map<String, Object> context)
-
Constructor Details
-
Paginator
public Paginator()
-
-
Method Details
-
getActualPageSize
-
getHighIndex
-
getListLimits
-
getListSize
-
getLowIndex
-
getViewIndex
-
getViewSize
-
preparePager
-
getViewIndex
- Parameters:
context
- MapviewIndexName
-- Returns:
- value of viewIndexName in context map (as an int) or return 0 as default
-
getViewIndex
public static Integer getViewIndex(Map<String, ? extends Object> context, String viewIndexName, int defaultValue) - Parameters:
context
-viewIndexName
-defaultValue
-- Returns:
- value of viewIndexName in context map (as an int) or return defaultValue
-
getViewSize
- Parameters:
context
-viewSizeName
-- Returns:
- value of viewSizeName in context map (as an int) or return default value from widget.properties
-