public class LiveGridView<M> extends GridView<M> implements LiveGridViewUpdateEvent.HasLiveGridViewUpdateHandlers
GridView.GridAppearance, GridView.GridStateStyles, GridView.GridStyles, GridView.GridTemplates
Constructor and Description |
---|
LiveGridView()
Creates a new live grid view.
|
LiveGridView(GridView.GridAppearance appearance)
Creates a new live grid view instance with the given appearance.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addLiveGridViewUpdateHandler(LiveGridViewUpdateEvent.LiveGridViewUpdateHandler handler)
Adds a
LiveGridViewUpdateEvent.LiveGridViewUpdateHandler handler for LiveGridViewUpdateEvent events. |
int |
getCacheSize()
Returns the numbers of rows that should be cached.
|
int |
getLoadDelay()
Returns the amount of time before loading is done.
|
double |
getPrefetchFactor()
Returns the prefetchFactor.
|
int |
getRowHeight()
Returns the height of one row.
|
int |
getVisibleRowCount()
Returns the total number of rows that are visible given the current grid height.
|
void |
refresh()
Refreshed the view.
|
void |
refresh(boolean headerToo)
Rebuilds the grid using its current configuration and data.
|
void |
scrollToTop()
Scrolls the grid to the top.
|
void |
setCacheSize(int cacheSize)
Sets the amount of rows that should be cached (default to 200).
|
void |
setLoadDelay(int loadDelay)
Sets the amount of time before loading is done (defaults to 200).
|
void |
setPrefetchFactor(double prefetchFactor)
Sets the pre-fetch factor (defaults to .2).
|
addHandler, ensureVisible, ensureVisible, findCell, findCellIndex, findRow, findRowIndex, fireEvent, focus, focusCell, focusRow, getAppearance, getAutoExpandColumn, getAutoExpandMax, getAutoExpandMin, getBody, getCell, getEditorParent, getEmptyText, getHeader, getRow, getRow, getRowBody, getRowBodyRowSpan, getScroller, getScrollState, getSortState, getStateStyles, getViewConfig, isAdjustForHScroll, isAutoFill, isColumnLines, isDeferUpdates, isEnableRowBody, isForceFit, isSelectableTarget, isShowDirtyCells, isSortingEnabled, isStripeRows, isTrackMouseOver, layout, scrollToTop, setAdjustForHScroll, setAutoExpandColumn, setAutoExpandMax, setAutoExpandMin, setAutoFill, setColumnHeader, setColumnLines, setDeferUpdates, setEmptyText, setEnableRowBody, setForceFit, setRowBodyRowSpan, setShowDirtyCells, setSortingEnabled, setStripeRows, setTrackMouseOver, setViewConfig
public LiveGridView()
public LiveGridView(GridView.GridAppearance appearance)
appearance
- the appearance to use when rendering the grid viewpublic HandlerRegistration addLiveGridViewUpdateHandler(LiveGridViewUpdateEvent.LiveGridViewUpdateHandler handler)
LiveGridViewUpdateEvent.HasLiveGridViewUpdateHandlers
LiveGridViewUpdateEvent.LiveGridViewUpdateHandler
handler for LiveGridViewUpdateEvent
events.addLiveGridViewUpdateHandler
in interface LiveGridViewUpdateEvent.HasLiveGridViewUpdateHandlers
handler
- the handlerpublic int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- the new cache sizepublic int getLoadDelay()
public void setLoadDelay(int loadDelay)
loadDelay
- the new load delay in millisecondspublic double getPrefetchFactor()
public void setPrefetchFactor(double prefetchFactor)
prefetchFactor
- the pre-fetch factorpublic int getRowHeight()
public int getVisibleRowCount()
public void refresh()
public void refresh(boolean headerToo)
GridView
public void scrollToTop()
GridView
scrollToTop
in class GridView<M>
Copyright © 2015. All rights reserved.