com.sencha.gxt.widget.core.client
Interface ListView.ListViewAppearance<M>

Type Parameters:
M - the model type
All Known Implementing Classes:
ListViewCustomAppearance, ListViewDefaultAppearance
Enclosing class:
ListView<M,N>

public static interface ListView.ListViewAppearance<M>

The appearance of a list view.


Method Summary
 Element findCellParent(XElement item)
          Returns the cell's parent element if it exists.
 Element findElement(XElement child)
          Returns the matching element.
 java.util.List<Element> findElements(XElement parent)
          Returns the child elements.
 void onOver(XElement item, boolean over)
          Handles a cursor over event.
 void onSelect(XElement item, boolean select)
          Handles a select event.
 void render(SafeHtmlBuilder builder)
          Renders the container.
 void renderEnd(SafeHtmlBuilder builder)
          Optionally renders extra markup at the end of the the list.
 void renderItem(SafeHtmlBuilder builder, SafeHtml content)
          Renders a single item.
 

Method Detail

findCellParent

Element findCellParent(XElement item)
Returns the cell's parent element if it exists. Default implementation returns the cell's root element.

Parameters:
item - the cell whose parent is to be returned
Returns:
the root from which other elements can be found

findElement

Element findElement(XElement child)
Returns the matching element.

Parameters:
child - the element or any child element
Returns:
the parent element

findElements

java.util.List<Element> findElements(XElement parent)
Returns the child elements.

Parameters:
parent - the parent element
Returns:
the child elements

onOver

void onOver(XElement item,
            boolean over)
Handles a cursor over event.

Parameters:
item - the item affected by the cursor
over - true if the cursor is over the item

onSelect

void onSelect(XElement item,
              boolean select)
Handles a select event.

Parameters:
item - the item affected by the select
select - true if the item is selected

render

void render(SafeHtmlBuilder builder)
Renders the container.

Parameters:
builder - the builder

renderEnd

void renderEnd(SafeHtmlBuilder builder)
Optionally renders extra markup at the end of the the list.

Parameters:
builder - the builder

renderItem

void renderItem(SafeHtmlBuilder builder,
                SafeHtml content)
Renders a single item.

Parameters:
builder - the builder
content - the item content


Copyright © 2012. All Rights Reserved.