public abstract class AbstractConfigurableCsMasterDetailListboxWidgetRenderer<T extends ListboxWidget<? extends MasterDetailListWidgetModel<E>,? extends WidgetController>,E,D,C> extends AbstractConfigurableCsListboxWidgetRenderer<T>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractConfigurableCsMasterDetailListboxWidgetRenderer.ExpandDetailEventListener |
protected static class |
AbstractConfigurableCsMasterDetailListboxWidgetRenderer.HideAndExpandEventListener |
protected class |
AbstractConfigurableCsMasterDetailListboxWidgetRenderer.HideDetailEventListener |
AbstractCsWidgetRenderer.ConfirmBeforeCompletingRequestEventListenerCSS_LISTBOX_CONTAINER, CSS_WIDGET_LISTBOXCSS_WIDGET_CAPTION, CSS_WIDGET_CONTENT| Constructor and Description |
|---|
AbstractConfigurableCsMasterDetailListboxWidgetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendMasterRow(E item,
T widget,
Listitem masterRow,
Object context) |
protected EventListener |
createExpandDetailEventListener(T widget,
E item,
Listbox listbox) |
protected EventListener |
createHideAndExpandEventListener(EventListener eventListener) |
protected EventListener |
createHideDetailEventListener(T widget,
E item,
Listbox listbox) |
protected Object |
getDetailContext(D item) |
protected D |
getDetailItem(E item) |
protected WidgetDetailRenderer<D,T> |
getDetailRenderer(D detailItem) |
protected WidgetDetailRenderer<D,T> |
getDetailRenderer(ObjectType objectType) |
protected WidgetDetailRenderer<D,T> |
getDetailRenderer(String key) |
protected Map<String,WidgetDetailRenderer<D,T>> |
getDetailRenderers() |
protected List<E> |
getItems(T widget) |
protected List<? extends ColumnGroupConfiguration> |
getMasterColumns() |
protected abstract C |
populateHeaderRow(T widget,
Listhead row)
Populates the header row with the required column headers and returns the row context object
|
protected abstract void |
populateMasterRow(T widget,
Listitem row,
C context,
E item)
Populates the master row for the item.
|
protected void |
prependDetailRow(E item,
D detailItem,
T widget,
Listitem masterRow,
Object context) |
protected void |
prependHeaderRow(T widget,
Listhead headRow) |
protected void |
prependMasterRow(E item,
T widget,
Listitem masterRow,
Object context) |
protected void |
renderDetailRow(T widget,
Listbox masterListbox,
C rowContext,
Object detailContext,
E item,
int cellSpan,
boolean oddRow,
EventListener hideDetailEventListener) |
protected void |
renderDetailRow(T widget,
Listbox masterListbox,
C rowContext,
Object detailContext,
E item,
int cellSpan,
boolean oddRow,
EventListener hideDetailEventListener,
String cssClass) |
protected void |
renderDetailRow(T widget,
Listitem row,
Listcell cell,
C rowContext,
Object detailContext,
E item,
D detailItem) |
protected void |
renderListbox(Listbox listBox,
T widget,
HtmlBasedComponent rootContainer) |
void |
setDetailRenderer(WidgetDetailRenderer<D,T> detailRenderer) |
void |
setDetailRenderers(Map<String,WidgetDetailRenderer<D,T>> detailRenderers) |
getColumnConfigurations, getListConfigurationCode, getListConfigurationType, getValueContainer, populateDataRow, populateHeaderRow, setListConfigurationCode, setListConfigurationTypecreateContentInternal, isLazyLoadingEnabled, setLazyLoadingEnabledcreateCaption, createConfirmBeforeCompletingRequestEventListener, createContent, getCockpitTypeService, getLabelService, getPropertyEditorHelper, getPropertyRendererHelper, getSystemService, handleConfirmBeforeCompletingRequestEvent, setCockpitTypeService, setLabelService, setPropertyEditorHelper, setPropertyRendererHelper, setSystemServiceprotected static final String DETAIL_RENDERER_DEFAULT
protected static final String CSS_WIDGET_MASTER_DETAIL_LISTBOX
protected static final String CSS_LIST_ITEM_ODD
protected static final String CSS_LIST_ITEM_EVEN
protected static final String CSS_LIST_ITEM
protected static final String CSS_WIDGET_MASTER_DETAIL_LISTBOX_TOGGLE
protected static final String CSS_TOGGLE_EXPANDED
protected static final String CSS_TOGGLE_COLLAPSED
protected static final String CSS_LIST_ITEM_DETAIL
protected static final String CSS_LIST_ITEM_DETAIL_ODD
protected static final String CSS_LIST_ITEM_DETAIL_EVEN
protected static final String CSS_LIST_ITEM_DETAIL_CONTAINER
protected static final String CSS_CART_FOOTER
protected static final String CSS_CHECKOUT_BTN_CONTAINER
protected static final String CSS_BTNRED
protected static final String CSS_CHECKOUT_BUTTON
protected static final String CSS_TOOLBAR
protected static final String CSS_TOOLBAR_LEFT
protected static final String CSS_TOOLBAR_LEFT_BUTTONS
protected static final String CSS_CART_FOOTER2
protected static final String CSS_POTENTIAL_PROMOTION_INFO
protected static final String CSS_CART_SUMMARY
protected static final String CSS_CART_PRICE_ROW
protected static final String CSS_CART_PRICE_ROW_VALUE
protected static final String CSS_CLEAR_BUTTON
protected static final String CSS_MASTER_CONTENT_CELL
protected static final String CSS_BTNGREEN
protected static final String CSS_PRICE
protected static final String CSS_PREVIOUS_PRICE
protected static final String CSS_CURRENT_PRICE
protected static final String CSS_PROMOTION_INDICATOR
protected static final String CSS_HAS_PROMOTIONS
protected static final String CSS_APPLIED_PROMOTION
protected static final String CSS_POTENTIAL_PROMOTION
protected static final String CSS_PROMOTION_ROW_EVEN
protected static final String CSS_PROMOTION_ROW_ODD
protected static final String CSS_IS_PROMOTION_RESULT
protected static final String CSS_PICKUP_CART_BUTTON
protected static final String CSS_PICKUP_CART_POPUP
protected static final String CSS_PICKUP_CART_FORM
protected static final String CSS_CART_ENTRY_MESSAGE
protected static final String CSS_BASKETCART_CAPTION_LABEL
protected static final String CSS_CUSTOMER_ICON
protected static final String CSS_GUEST_CUSTOMER_ICON
protected static final String COCKPIT_ID_CART_CLEAR_BUTTON
protected static final String COCKPIT_ID_CART_UPDATE_BUTTON
protected static final String COCKPIT_ID_CART_CHECKOUT_BUTTON
protected static final String COCKPIT_ID_CART_QUANTITY
protected static final String COCKPIT_ID_CART_BUTTON
protected static final String COCKPIT_ID_CART_CODE
protected static final String COCKPIT_ID_PICKUP_CART_BUTTON
protected static final String HOTKEY_CMD_FOCUS_QUANTITY
protected static final String CTRL_KEY_ALT_U
protected static final String CTRL_KEY_ALT_C
protected static final String CTRL_KEY_ALT_O
public AbstractConfigurableCsMasterDetailListboxWidgetRenderer()
protected Map<String,WidgetDetailRenderer<D,T>> getDetailRenderers()
public void setDetailRenderers(Map<String,WidgetDetailRenderer<D,T>> detailRenderers)
public void setDetailRenderer(WidgetDetailRenderer<D,T> detailRenderer)
protected WidgetDetailRenderer<D,T> getDetailRenderer(String key)
protected WidgetDetailRenderer<D,T> getDetailRenderer(ObjectType objectType)
protected WidgetDetailRenderer<D,T> getDetailRenderer(D detailItem)
protected List<? extends ColumnGroupConfiguration> getMasterColumns()
protected void renderListbox(Listbox listBox,
T widget,
HtmlBasedComponent rootContainer)
renderListbox in class AbstractCsListboxWidgetRenderer<T extends ListboxWidget<? extends MasterDetailListWidgetModel<E>,? extends WidgetController>>protected void renderDetailRow(T widget, Listbox masterListbox, C rowContext, Object detailContext, E item, int cellSpan, boolean oddRow, EventListener hideDetailEventListener)
protected void renderDetailRow(T widget, Listbox masterListbox, C rowContext, Object detailContext, E item, int cellSpan, boolean oddRow, EventListener hideDetailEventListener, String cssClass)
protected void renderDetailRow(T widget, Listitem row, Listcell cell, C rowContext, Object detailContext, E item, D detailItem)
protected EventListener createHideAndExpandEventListener(EventListener eventListener)
protected EventListener createExpandDetailEventListener(T widget, E item, Listbox listbox)
protected EventListener createHideDetailEventListener(T widget, E item, Listbox listbox)
protected abstract C populateHeaderRow(T widget, Listhead row)
widget - The widgetrow - The header row to add column headers toprotected abstract void populateMasterRow(T widget, Listitem row, C context, E item)
widget - The widgetrow - The row to add column data tocontext - The row context object created by populateHeaderRow (you can modify this)item - The item being renderedprotected void prependHeaderRow(T widget, Listhead headRow)
protected void prependMasterRow(E item, T widget, Listitem masterRow, Object context)
protected void prependDetailRow(E item, D detailItem, T widget, Listitem masterRow, Object context)
Copyright © 2017 SAP SE. All Rights Reserved.