
public class ListViewDefaultAppearance<M> extends Object implements ListView.ListViewAppearance<M>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListViewDefaultAppearance.ListViewDefaultResources
The default resources for the list view.
|
static interface |
ListViewDefaultAppearance.ListViewDefaultStyle
The default styles for the list view.
|
| Modifier and Type | Field and Description |
|---|---|
protected ListViewDefaultAppearance.ListViewDefaultResources |
resources |
protected ListViewDefaultAppearance.ListViewDefaultStyle |
style |
| Constructor and Description |
|---|
ListViewDefaultAppearance() |
ListViewDefaultAppearance(ListViewDefaultAppearance.ListViewDefaultResources resources) |
| Modifier and Type | Method and Description |
|---|---|
Element |
findCellParent(XElement item)
Returns the cell's parent element if it exists.
|
Element |
findElement(XElement child)
Returns the matching element.
|
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 sb,
SafeHtml content)
Renders a single item.
|
protected ListViewDefaultAppearance.ListViewDefaultResources resources
protected ListViewDefaultAppearance.ListViewDefaultStyle style
public ListViewDefaultAppearance()
public ListViewDefaultAppearance(ListViewDefaultAppearance.ListViewDefaultResources resources)
public Element findCellParent(XElement item)
ListView.ListViewAppearancefindCellParent in interface ListView.ListViewAppearance<M>item - the cell whose parent is to be returnedpublic Element findElement(XElement child)
ListView.ListViewAppearancefindElement in interface ListView.ListViewAppearance<M>child - the element or any child elementpublic List<Element> findElements(XElement parent)
ListView.ListViewAppearancefindElements in interface ListView.ListViewAppearance<M>parent - the parent elementpublic void onOver(XElement item, boolean over)
ListView.ListViewAppearanceonOver in interface ListView.ListViewAppearance<M>item - the item affected by the cursorover - true if the cursor is over the itempublic void onSelect(XElement item, boolean select)
ListView.ListViewAppearanceonSelect in interface ListView.ListViewAppearance<M>item - the item affected by the selectselect - true if the item is selectedpublic void render(SafeHtmlBuilder builder)
ListView.ListViewAppearancerender in interface ListView.ListViewAppearance<M>builder - the builderpublic void renderEnd(SafeHtmlBuilder builder)
ListView.ListViewAppearancerenderEnd in interface ListView.ListViewAppearance<M>builder - the builderpublic void renderItem(SafeHtmlBuilder sb,
SafeHtml content)
ListView.ListViewAppearancerenderItem in interface ListView.ListViewAppearance<M>sb - the buildercontent - the item contentCopyright © 2018. All rights reserved.