| org.itsnat.comp.ItsNatListCellRenderer
All known Subclasses: org.itsnat.impl.comp.ItsNatListCellRendererDefaultImpl, org.itsnat.feashow.features.components.lists.PersonRenderer, org.itsnat.feashow.features.components.xmlcomp.SongListRenderer, org.itsnat.feashow.features.components.lists.CircleListCellRenderer, org.itsnat.feashow.features.components.xmlcomp.CDListRenderer,
Method Summary | |
public 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.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementRenderer .
Default implementation ignores isSelected and hasFocus
(current implementation of ItsNat lists does not handle focus on list items, ever is false).
Parameters: list - the list component, may be used to provide contextual information. | public void | unrenderListCell(ItsNatList list, int index, Element cellContentElem) Unrenders the markup of the specified list item. |
renderListCell | public void renderListCell(ItsNatList list, int index, Object value, boolean isSelected, boolean hasFocus, Element cellContentElem, boolean isNew)(Code) | | Renders as markup the specified list item value into the specified element, usually
as a text node.
Default implementation delegates to the default
org.itsnat.core.domutil.ElementRenderer .
Default implementation ignores isSelected and hasFocus
(current implementation of ItsNat lists does not handle focus on list items, ever is false).
Parameters: list - the list component, may be used to provide contextual information. Default implementation ignores it. Parameters: index - the list item index. Parameters: value - the value to render. Parameters: isSelected - true if the list item is selected. Parameters: hasFocus - true if the list item has the focus. Parameters: 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) . Parameters: isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter. |
unrenderListCell | public void unrenderListCell(ItsNatList list, int index, Element cellContentElem)(Code) | | Unrenders the markup of the specified list item. This method is called before the markup
is removed.
Default implementation does nothing.
Parameters: list - the list component, may be used to provide contextual information. Default implementation ignores it. Parameters: index - the list item index. Parameters: 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) . |
|
|