public interface ItsNatListCellRenderer
ItsNatComponentManager.createDefaultItsNatListCellRenderer(),
ItsNatList.getItsNatListCellRenderer(),
ItsNatList.setItsNatListCellRenderer(ItsNatListCellRenderer)| Modifier and Type | Method and Description |
|---|---|
void |
renderListCell(ItsNatList list,
int index,
Object value,
boolean isSelected,
boolean hasFocus,
Element cellContentElem,
boolean isNew)
Renders as markup the specified list item value into the specified element, usually
as a text node.
|
void |
unrenderListCell(ItsNatList list,
int index,
Element cellContentElem)
Unrenders the markup of the specified list item.
|
void renderListCell(ItsNatList list, int index, Object value, boolean isSelected, boolean hasFocus, Element cellContentElem, boolean isNew)
Default implementation delegates to the default ElementRenderer.
Default implementation ignores isSelected and hasFocus
(current implementation of ItsNat lists does not handle focus on list items, ever is false).
list - the list component, may be used to provide contextual information. Default implementation ignores it.index - the list item index.value - the value to render.isSelected - true if the list item is selected.hasFocus - true if the list item has the focus.cellContentElem - the list item content element to render the value into. Is a hint, if provided should be obtained by calling list.getItsNatListUI().getContentElementAt(index).isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter.void unrenderListCell(ItsNatList list, int index, Element cellContentElem)
Default implementation does nothing.
list - the list component, may be used to provide contextual information. Default implementation ignores it.index - the list item index.cellContentElem - the list item content element to render the value into. Is a hint, if provided should be obtained by calling list.getItsNatListUI().getContentElementAt(index).Copyright © Innowhere Software, Jose Maria Arranz Santamaria.