|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.ListView<M,N>
M - the model typeN - the cell data typepublic class ListView<M,N>
Displays a list of data.
| Nested Class Summary | |
|---|---|
static interface |
ListView.ListViewAppearance<M>
The appearance of a list view. |
static interface |
ListView.ListViewDefaultResources
The default resources for the list view. |
static interface |
ListView.ListViewDefaultStyle
The default styles for the list view. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ListView(ListStore<M> store,
ValueProvider<? super M,N> valueProvider)
Creates a new list view. |
|
ListView(ListStore<M> store,
ValueProvider<? super M,N> valueProvider,
Cell<N> cell)
Creates a new list view. |
|
ListView(ListStore<M> store,
ValueProvider<? super M,N> valueProvider,
ListView.ListViewAppearance<M> appearance)
Creates a new list view. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addRefreshHandler(RefreshEvent.RefreshHandler handler)
Adds a RefreshEvent.RefreshHandler handler for
RefreshEvent events. |
Element |
findElement(Element element)
Returns the matching element. |
int |
findElementIndex(Element element)
Returns the element's index. |
Cell<N> |
getCell()
Returns the view's cell. |
XElement |
getElement(int index)
Returns the element at the given index. |
List<Element> |
getElements()
Returns all of the child elements. |
int |
getItemCount()
Returns the number of models in the view. |
String |
getLoadingText()
Returns the view's loading text. |
QuickTip |
getQuickTip()
Returns the view's quick tip instance. |
ListViewSelectionModel<M> |
getSelectionModel()
Returns the view's selection model. |
boolean |
getSelectOnOver()
Returns true if select on hover is enabled. |
static ListView.ListViewDefaultResources |
getStandardResources()
Returns the default resources for the list view. |
ListStore<M> |
getStore()
Returns the combo's store. |
int |
indexOf(Element element)
Returns the index of the element. |
boolean |
isEnableQuickTips()
Returns true if quicktips are enabled. |
void |
moveSelectedDown()
Moves the current selections down one level. |
void |
moveSelectedUp()
Moves the current selections up one level. |
void |
onBrowserEvent(Event event)
|
void |
refresh()
Refreshes the view by reloading the data from the store and re-rendering the template. |
void |
refreshNode(int index)
Refreshes an individual node's data from the store. |
void |
setCell(Cell<N> cell)
Optionally sets the view's cell. |
void |
setEnableQuickTips(boolean enableQuickTip)
True to enable quicktips (defaults to true, pre-render). |
void |
setLoadingText(String loadingText)
Sets the text loading text to be displayed during a load request. |
void |
setSelectionModel(ListViewSelectionModel<M> sm)
Sets the selection model. |
void |
setSelectOnOver(boolean selectOnHover)
True to select the item when mousing over a element (defaults to false). |
void |
setStore(ListStore<M> store)
Changes the data store bound to this view and refreshes it. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListView(ListStore<M> store,
ValueProvider<? super M,N> valueProvider)
store - the storevalueProvider - the value provider
public ListView(ListStore<M> store,
ValueProvider<? super M,N> valueProvider,
Cell<N> cell)
store - the storevalueProvider - the value providercell - the cell
public ListView(ListStore<M> store,
ValueProvider<? super M,N> valueProvider,
ListView.ListViewAppearance<M> appearance)
store - the storevalueProvider - the value providerappearance - the appearance| Method Detail |
|---|
public static ListView.ListViewDefaultResources getStandardResources()
public HandlerRegistration addRefreshHandler(RefreshEvent.RefreshHandler handler)
RefreshEvent.HasRefreshHandlersRefreshEvent.RefreshHandler handler for
RefreshEvent events.
addRefreshHandler in interface RefreshEvent.HasRefreshHandlershandler - the handler
public Element findElement(Element element)
element - the element or any child element
public int findElementIndex(Element element)
element - the element or any child element
public Cell<N> getCell()
public XElement getElement(int index)
index - the index
public List<Element> getElements()
public int getItemCount()
public String getLoadingText()
public QuickTip getQuickTip()
public ListViewSelectionModel<M> getSelectionModel()
public boolean getSelectOnOver()
public ListStore<M> getStore()
public int indexOf(Element element)
element - the element
public boolean isEnableQuickTips()
public void moveSelectedDown()
public void moveSelectedUp()
public void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class Componentpublic void refresh()
public void refreshNode(int index)
index - the items data index in the storepublic void setCell(Cell<N> cell)
cell - the cellpublic void setEnableQuickTips(boolean enableQuickTip)
enableQuickTip - true to enable quicktipspublic void setLoadingText(String loadingText)
loadingText - the loading textpublic void setSelectionModel(ListViewSelectionModel<M> sm)
sm - the selection modelpublic void setSelectOnOver(boolean selectOnHover)
selectOnHover - true to select on mouse overpublic void setStore(ListStore<M> store)
store - the store to bind this view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||