public class PageableListController
extends DefaultWidgetController
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COMP_ID_GRIDLIST |
protected static String |
SETTING_LIST |
protected static String |
SETTING_PAGE_SIZE |
static String |
SOCKET_IN_PAGEABLE |
static String |
SOCKET_IN_PAGEABLELIST |
static 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 Object> pageable,
Component parent)
Creates a 'show more' button that is appended as last element of the grid/list.
|
protected Boolean |
getAvailableInEnterprise(ProductData product)
Computes global enterprise availability flag for the current
ProductData |
protected Boolean |
getAvailableInStoreFlag(ProductData product)
Computes in store availability flag for the current
ProductData |
protected String |
getThumbnalImageUrl(Collection<ImageData> images)
Resolves product thumbnail url for the product list entries.
|
void |
initialize(Component comp) |
void |
inputList(List<? extends Object> genericObjectList)
Renders a list of product items based on the
List. |
void |
inputPageable(Pageable<? extends Object> pageable)
Renders a list of product items based on the
Pageable. |
protected void |
renderGrid(Pageable<? extends 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 String SOCKET_IN_PAGEABLELIST
public static final String SOCKET_IN_PAGEABLE
public static final String SOCKET_OUT_SELECTEDITEM
protected static final String COMP_ID_GRIDLIST
protected static final String SETTING_LIST
protected static final String SETTING_PAGE_SIZE
public void initialize(Component comp)
public void inputPageable(Pageable<? extends Object> pageable)
Pageable.pageable - public void inputList(List<? extends Object> genericObjectList)
List.genericObjectList - protected void renderGrid(Pageable<? extends Object> pageable)
Pageable:
pageable - protected Component resolveAggregateComponent()
Listbox - if "list" widget setting is set to trueComponent for grid elements, otherwiseComponentprotected Button createShowMoreButton(Pageable<? extends Object> pageable, Component parent)
Pageable.pageable - parent - Buttonprotected Component createProductEntry(ProductData product)
ProductData.protected Boolean getAvailableInEnterprise(ProductData product)
ProductDataproduct - protected Boolean getAvailableInStoreFlag(ProductData product)
ProductDataproduct - public void selectProduct(<any> event)
event - protected String getThumbnalImageUrl(Collection<ImageData> images)
images - - available imagesCopyright © 2017 SAP SE. All Rights Reserved.