public class GridView extends AbstractItemView implements UIGridView
AbstractItemView.LoadImage| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_GRIDVIEW_CONF |
protected Checkbox |
focusComponent |
protected boolean |
initialized |
static java.lang.String |
ITEM_BOX_SIZE |
protected Div |
mainDiv |
protected MutableListModel |
model |
loadingProgressContainer, ON_CONTINUE_LOADING| Constructor and Description |
|---|
GridView() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGridViewListener(GridViewListener listener) |
protected void |
appendScrollIntoViewComponent(HtmlBasedComponent cell) |
protected void |
continueRenderItems(Component parent,
int index) |
protected void |
continueRenderItems(Component parent,
int index,
int numberOfItemsToRender) |
protected HtmlBasedComponent |
createItemBox(TypedObject item,
GridViewConfiguration config) |
protected void |
doUserEvent(java.lang.Object[] data) |
protected void |
fireChangeSelection(int selectedIndex) |
protected void |
fireChangeSelection(java.util.List<java.lang.Integer> selectedIndexes) |
protected void |
fireRemove(java.util.Collection<java.lang.Integer> indexes) |
protected void |
focusFocusComponent() |
java.lang.String |
getConfigContextCode() |
GridItemRenderer |
getGridItemRenderer() |
protected TypedObject |
getItemAt(int index) |
MutableListModel |
getModel() |
TypeService |
getTypeService() |
protected UIConfigurationService |
getUIConfigurationService() |
boolean |
initialize()
Initializes this view component.
|
protected void |
rangeSelect(int index) |
void |
removeGridViewListener(GridViewListener listener) |
protected void |
removeSelectedItems() |
protected void |
renderActivation(boolean selected) |
protected void |
renderItemAsActive(HtmlBasedComponent comp,
boolean active) |
protected void |
renderItemAsSelected(HtmlBasedComponent comp,
boolean selected) |
protected void |
renderItems(Component parent) |
protected void |
renderSelection(boolean selected) |
protected void |
rerenderItem(TypedObject item) |
void |
setConfigContextCode(java.lang.String code) |
void |
setGridItemRenderer(GridItemRenderer gridItemRenderer) |
void |
setModel(MutableListModel model) |
void |
setRootType(ObjectTemplate template) |
boolean |
update()
Updates this view component completely.
|
void |
updateActivation()
Called whenever the activation needs to be updated i.e.
|
void |
updateActiveItems()
Called whenever the currently active items need to be re-rendered.
|
int |
updateItem(TypedObject item,
java.util.Set<PropertyDescriptor> propertyDescriptors)
try to update rows containing the specified items
|
void |
updateItems()
Called whenever the items have changed in some way e.g.
|
void |
updateSelection()
Called whenever the selection is changed in some way and the view needs to update itself accordingly.
|
delayLazyload, getDDContext, getInitialPackageSize, getLazyloadPackageSize, isSimpleSelectionMode, setDDContext, setSimpleSelectionMode, setupLazyLoadingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDDContextpublic static final java.lang.String DEFAULT_GRIDVIEW_CONF
public static final java.lang.String ITEM_BOX_SIZE
protected MutableListModel model
protected boolean initialized
protected Div mainDiv
protected Checkbox focusComponent
public java.lang.String getConfigContextCode()
public void setConfigContextCode(java.lang.String code)
setConfigContextCode in interface UIGridViewpublic void addGridViewListener(GridViewListener listener)
addGridViewListener in interface UIGridViewpublic void removeGridViewListener(GridViewListener listener)
removeGridViewListener in interface UIGridViewpublic void setRootType(ObjectTemplate template)
setRootType in interface UIGridViewpublic MutableListModel getModel()
getModel in interface UIGridViewpublic void setModel(MutableListModel model)
setModel in interface UIGridViewpublic void updateActivation()
UIItemViewUIItemView.updateActiveItems().updateActivation in interface UIItemViewpublic void updateActiveItems()
UIItemViewUIItemView.updateActivation().updateActiveItems in interface UIItemViewUIItemView.updateActivation()protected void rerenderItem(TypedObject item)
public int updateItem(TypedObject item, java.util.Set<PropertyDescriptor> propertyDescriptors)
UIItemViewupdateItem in interface UIItemViewitem - the itempropertyDescriptors - modified propertiesprotected void renderItemAsSelected(HtmlBasedComponent comp,
boolean selected)
protected void renderItemAsActive(HtmlBasedComponent comp,
boolean active)
protected void renderSelection(boolean selected)
protected void renderActivation(boolean selected)
protected void appendScrollIntoViewComponent(HtmlBasedComponent cell)
public void updateSelection()
UIItemViewupdateSelection in interface UIItemViewpublic boolean initialize()
UIViewComponentinitialize in interface UIViewComponenttrue if initialize was successful, false otherwisepublic boolean update()
UIViewComponentupdate in interface UIViewComponenttrue if update was successful, false otherwisepublic void updateItems()
UIItemViewupdateItems in interface UIItemViewprotected void focusFocusComponent()
protected void renderItems(Component parent)
protected void continueRenderItems(Component parent,
int index)
protected void continueRenderItems(Component parent,
int index,
int numberOfItemsToRender)
protected void rangeSelect(int index)
protected HtmlBasedComponent createItemBox(TypedObject item, GridViewConfiguration config)
protected TypedObject getItemAt(int index)
protected void removeSelectedItems()
protected void fireRemove(java.util.Collection<java.lang.Integer> indexes)
protected void fireChangeSelection(java.util.List<java.lang.Integer> selectedIndexes)
protected void fireChangeSelection(int selectedIndex)
protected void doUserEvent(java.lang.Object[] data)
protected UIConfigurationService getUIConfigurationService()
public void setGridItemRenderer(GridItemRenderer gridItemRenderer)
setGridItemRenderer in interface UIGridViewpublic GridItemRenderer getGridItemRenderer()
public TypeService getTypeService()
Copyright © 2018 SAP SE. All Rights Reserved.