public class PageableListController
extends DefaultWidgetController
pageablelist widget. It renders product items in two modes :
List and Pageable
types.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COMP_ID_GRIDLIST |
protected static java.lang.String |
SETTING_LIST |
protected static java.lang.String |
SETTING_PAGE_SIZE |
static java.lang.String |
SOCKET_IN_PAGEABLE |
static java.lang.String |
SOCKET_IN_PAGEABLELIST |
static java.lang.String |
SOCKET_OUT_SELECTEDITEM |
| Constructor and Description |
|---|
PageableListController() |
| Modifier and Type | Method and Description |
|---|---|
protected Component |
createProductEntry(ProductData product)
Draws a product grid entry component for the given
ProductData. |
protected Button |
createShowMoreButton(Pageable<? extends java.lang.Object> pageable,
Component parent)
Creates a 'show more' button that is appended as last element of the grid/list.
|
protected java.lang.Boolean |
getAvailableInEnterprise(ProductData product)
Computes global enterprise availability flag for the current
ProductData |
protected java.lang.Boolean |
getAvailableInStoreFlag(ProductData product)
Computes in store availability flag for the current
ProductData |
protected java.lang.String |
getThumbnalImageUrl(java.util.Collection<ImageData> images)
Resolves product thumbnail url for the product list entries.
|
void |
initialize(Component comp) |
void |
inputList(java.util.List<? extends java.lang.Object> genericObjectList)
Renders a list of product items based on the
List. |
void |
inputPageable(Pageable<? extends java.lang.Object> pageable)
Renders a list of product items based on the
Pageable. |
protected void |
renderGrid(Pageable<? extends java.lang.Object> pageable)
Renders elements of
Pageable:
as list - if "list" widget setting is set to true
as grid otherwise
|
protected Component |
resolveAggregateComponent()
Returns a parent component for product items
Listbox - if "list" widget setting is set to true
Component for grid elements, otherwise
|
void |
selectProduct(<any> event)
On select handler for the selected list item
|
public static final java.lang.String SOCKET_IN_PAGEABLELIST
public static final java.lang.String SOCKET_IN_PAGEABLE
public static final java.lang.String SOCKET_OUT_SELECTEDITEM
protected static final java.lang.String COMP_ID_GRIDLIST
protected static final java.lang.String SETTING_LIST
protected static final java.lang.String SETTING_PAGE_SIZE
public void initialize(Component comp)
public void inputPageable(Pageable<? extends java.lang.Object> pageable)
Pageable.pageable - public void inputList(java.util.List<? extends java.lang.Object> genericObjectList)
List.genericObjectList - protected void renderGrid(Pageable<? extends java.lang.Object> pageable)
Pageable:
pageable - protected Component resolveAggregateComponent()
Listbox - if "list" widget setting is set to trueComponent for grid elements, otherwiseComponentprotected Button createShowMoreButton(Pageable<? extends java.lang.Object> pageable, Component parent)
Pageable.pageable - parent - Buttonprotected Component createProductEntry(ProductData product)
ProductData.protected java.lang.Boolean getAvailableInEnterprise(ProductData product)
ProductDataproduct - protected java.lang.Boolean getAvailableInStoreFlag(ProductData product)
ProductDataproduct - public void selectProduct(<any> event)
event - protected java.lang.String getThumbnalImageUrl(java.util.Collection<ImageData> images)
images - - available imagesCopyright © 2018 SAP SE. All Rights Reserved.