|
||||||||||
| 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.google.gwt.user.cellview.client.CellList<T>
T - the data type of list itemspublic class CellList<T>
A single column list of cells.
| Nested Class Summary | |
|---|---|
static interface |
CellList.Resources
A ClientBundle that provides images for this widget. |
static interface |
CellList.Style
Styles used by this widget. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.view.client.PagingListView |
|---|
PagingListView.Pager<T> |
| Nested classes/interfaces inherited from interface com.google.gwt.view.client.ListView |
|---|
ListView.Delegate<T> |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
CellList(Cell<T> cell)
Construct a new CellList. |
|
CellList(Cell<T> cell,
CellList.Resources resources)
Construct a new CellList with the specified CellList.Resources. |
|
| Method Summary | |
|---|---|
int |
getDataSize()
Get the total data size. |
T |
getDisplayedItem(int indexOnPage)
Get the value of a displayed item. |
java.util.List<T> |
getDisplayedItems()
|
java.lang.String |
getEmptyListMessage()
Get the message that is displayed when there is no data. |
int |
getPageSize()
|
int |
getPageStart()
|
Range |
getRange()
Get the range that this view is displaying. |
Element |
getRowElement(int indexOnPage)
Get the Element for the specified index. |
boolean |
isDataSizeExact()
Returns the value of the 'isExact' parameter of the most recent call to ListView.setDataSize(int, boolean). |
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received. |
void |
redraw()
Redraw the list using the existing data. |
void |
setData(int start,
int length,
java.util.List<T> values)
Set a range of data in the view. |
void |
setDataSize(int size,
boolean isExact)
Set the total data size of the underlying data. |
void |
setDelegate(ListView.Delegate<T> delegate)
Set the ListView.Delegate that responds to changes in the range. |
void |
setEmptyListMessage(java.lang.String html)
Set the message to display when there is no data. |
void |
setPager(PagingListView.Pager<T> pager)
Set the PagingListView.Pager that allows the user to change the range. |
void |
setPageSize(int pageSize)
Set the page size. |
void |
setPageStart(int pageStart)
Set the page start index. |
void |
setRange(int start,
int length)
Set a new range. |
void |
setSelectionModel(SelectionModel<? super T> selectionModel)
Set the SelectionModel used by this ListView. |
void |
setValueUpdater(ValueUpdater<T> valueUpdater)
Set the value updater to use when cells modify items. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CellList(Cell<T> cell)
CellList.
cell - the cell used to render each item
public CellList(Cell<T> cell,
CellList.Resources resources)
CellList with the specified CellList.Resources.
cell - the cell used to render each itemresources - the resources used for this widget| Method Detail |
|---|
public int getDataSize()
PagingListView
getDataSize in interface PagingListView<T>public T getDisplayedItem(int indexOnPage)
indexOnPage - the index on the page
public java.util.List<T> getDisplayedItems()
public java.lang.String getEmptyListMessage()
public final int getPageSize()
public final int getPageStart()
public Range getRange()
ListView
getRange in interface ListView<T>public Element getRowElement(int indexOnPage)
Element for the specified index. If the element has not
been created, null is returned.
indexOnPage - the index on the page
java.lang.IndexOutOfBoundsException - if the index is outside of the current
pagepublic boolean isDataSizeExact()
ListViewListView.setDataSize(int, boolean).
isDataSizeExact in interface ListView<T>public void onBrowserEvent(Event event)
EventListener
onBrowserEvent in interface EventListeneronBrowserEvent in class Widgetevent - the event receivedpublic void redraw()
public void setData(int start,
int length,
java.util.List<T> values)
ListView
setData in interface ListView<T>start - the start index of the datalength - the length of the datavalues - the values within the range
public void setDataSize(int size,
boolean isExact)
ListView
setDataSize in interface ListView<T>size - the total data sizeisExact - true if the size is exact, false if it is an estimatepublic void setDelegate(ListView.Delegate<T> delegate)
ListViewListView.Delegate that responds to changes in the range.
setDelegate in interface ListView<T>delegate - the ListView.Delegatepublic void setEmptyListMessage(java.lang.String html)
html - the message to display when there are no resultspublic void setPager(PagingListView.Pager<T> pager)
PagingListViewPagingListView.Pager that allows the user to change the range.
setPager in interface PagingListView<T>pager - the PagingListView.Pagerpublic final void setPageSize(int pageSize)
pageSize - the new page sizepublic final void setPageStart(int pageStart)
pageStart - the new page start
public void setRange(int start,
int length)
PagingListView
setRange in interface PagingListView<T>start - the new start indexlength - the new page sizepublic void setSelectionModel(SelectionModel<? super T> selectionModel)
ListViewSelectionModel used by this ListView.
setSelectionModel in interface ListView<T>selectionModel - the SelectionModelpublic void setValueUpdater(ValueUpdater<T> valueUpdater)
valueUpdater - the ValueUpdater
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||