com.sencha.gxt.widget.core.client
Class ListViewCustomAppearance<M>

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.ListViewCustomAppearance<M>
All Implemented Interfaces:
ListView.ListViewAppearance<M>

public abstract class ListViewCustomAppearance<M>
extends java.lang.Object
implements ListView.ListViewAppearance<M>


Constructor Summary
ListViewCustomAppearance(java.lang.String itemSelector)
           
ListViewCustomAppearance(java.lang.String itemSelector, java.lang.String overStyle, java.lang.String selStyle)
           
 
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.
abstract  void renderItem(SafeHtmlBuilder builder, SafeHtml content)
          Renders a single item.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListViewCustomAppearance

public ListViewCustomAppearance(java.lang.String itemSelector)

ListViewCustomAppearance

public ListViewCustomAppearance(java.lang.String itemSelector,
                                java.lang.String overStyle,
                                java.lang.String selStyle)
Method Detail

findCellParent

public Element findCellParent(XElement item)
Description copied from interface: ListView.ListViewAppearance
Returns the cell's parent element if it exists. Default implementation returns the cell's root element.

Specified by:
findCellParent in interface ListView.ListViewAppearance<M>
Parameters:
item - the cell whose parent is to be returned
Returns:
the root from which other elements can be found

findElement

public Element findElement(XElement child)
Description copied from interface: ListView.ListViewAppearance
Returns the matching element.

Specified by:
findElement in interface ListView.ListViewAppearance<M>
Parameters:
child - the element or any child element
Returns:
the parent element

findElements

public java.util.List<Element> findElements(XElement parent)
Description copied from interface: ListView.ListViewAppearance
Returns the child elements.

Specified by:
findElements in interface ListView.ListViewAppearance<M>
Parameters:
parent - the parent element
Returns:
the child elements

onOver

public void onOver(XElement item,
                   boolean over)
Description copied from interface: ListView.ListViewAppearance
Handles a cursor over event.

Specified by:
onOver in interface ListView.ListViewAppearance<M>
Parameters:
item - the item affected by the cursor
over - true if the cursor is over the item

onSelect

public void onSelect(XElement item,
                     boolean select)
Description copied from interface: ListView.ListViewAppearance
Handles a select event.

Specified by:
onSelect in interface ListView.ListViewAppearance<M>
Parameters:
item - the item affected by the select
select - true if the item is selected

render

public void render(SafeHtmlBuilder builder)
Description copied from interface: ListView.ListViewAppearance
Renders the container.

Specified by:
render in interface ListView.ListViewAppearance<M>
Parameters:
builder - the builder

renderEnd

public void renderEnd(SafeHtmlBuilder builder)
Description copied from interface: ListView.ListViewAppearance
Optionally renders extra markup at the end of the the list.

Specified by:
renderEnd in interface ListView.ListViewAppearance<M>
Parameters:
builder - the builder

renderItem

public abstract void renderItem(SafeHtmlBuilder builder,
                                SafeHtml content)
Description copied from interface: ListView.ListViewAppearance
Renders a single item.

Specified by:
renderItem in interface ListView.ListViewAppearance<M>
Parameters:
builder - the builder
content - the item content


Copyright © 2012. All Rights Reserved.