|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.grid.GridView
com.extjs.gxt.ui.client.widget.grid.BufferView
public class BufferView
Renders the rows as they scroll into view. This GridView is fast for displaying many rows at once, but it does not support all features the normal {link @GridView} supports, such has expanding rows.
Only works with constant row heights that can be specified usingsetRowHeight(int)
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.GridView |
---|
GridView.GridViewImages |
Field Summary |
---|
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.GridView |
---|
activeHdIndex, autoFill, borderWidth, cm, columnListener, deferEmptyText, ds, el, emptyText, enableHdMenu, enableRowBody, focusEl, focusEnabled, footer, forceFit, grid, header, headerColumnIndex, headerDisabled, images, innerHd, lastViewWidth, listener, mainBody, mainHd, mainWrap, overRow, preventScrollToTopOnRefresh, scroller, scrollOffset, selectable, sortState, splitterWidth, templates, userResized, vbar, viewConfig, widgetList |
Constructor Summary | |
---|---|
BufferView()
|
Method Summary | |
---|---|
protected void |
clean()
|
protected void |
cleanModel(ModelData at)
|
protected void |
doAttach()
|
protected void |
doClean()
|
protected java.lang.String |
doRender(java.util.List<ColumnData> cs,
java.util.List<ModelData> rows,
int startRow,
int colCount,
boolean stripe)
|
protected java.lang.String |
doRender(java.util.List<ColumnData> cs,
java.util.List<ModelData> rows,
int startRow,
int colCount,
boolean stripe,
boolean onlyBody)
|
protected void |
doUpdate()
|
int |
getCacheSize()
Returns the amount of rows that should be cached. |
protected int |
getCalculatedRowHeight()
|
int |
getCleanDelay()
Returns the amount of time before cleaning is done. |
int |
getRowHeight()
Returns the height of one row. |
int |
getScrollDelay()
Returns the amount of time before new rows are displayed after scrolling |
protected int |
getStyleRowHeight()
|
protected int |
getVisibleRowCount()
|
protected int[] |
getVisibleRows(int count)
|
boolean |
isBufferEnabled()
Returns true if buffering is enabled. |
protected boolean |
isRowRendered(int index)
|
protected void |
layout(boolean skipResize)
|
protected void |
notifyShow()
|
protected void |
onAdd(ListStore<ModelData> store,
java.util.List<ModelData> models,
int index)
|
protected void |
onRemove(ListStore<ModelData> ds,
ModelData m,
int index,
boolean isUpdate)
|
void |
setBufferEnabled(boolean bufferEnabled)
True to enabled buffered functionality (defaults to true). |
void |
setCacheSize(int cacheSize)
Sets the amount of rows that should be cached (default to 20). |
void |
setCleanDelay(int cleanDelay)
Sets the amount of time before cleaning is done (defaults to 500). |
void |
setRowHeight(int rowHeight)
Sets the height of one row (defaults to 19). |
void |
setScrollDelay(int scrollDelay)
Sets the amount of time before new rows are displayed after scrolling (defaults to 0). |
protected void |
syncScroll()
|
protected void |
update()
|
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferView()
Method Detail |
---|
public int getCacheSize()
public int getCleanDelay()
public int getRowHeight()
public int getScrollDelay()
public boolean isBufferEnabled()
public void setBufferEnabled(boolean bufferEnabled)
bufferEnabled
- true to buffer, otherwise falsepublic void setCacheSize(int cacheSize)
cacheSize
- the new cache sizepublic void setCleanDelay(int cleanDelay)
cleanDelay
- the new clean delaypublic void setRowHeight(int rowHeight)
rowHeight
- the new row height.public void setScrollDelay(int scrollDelay)
scrollDelay
- the new scroll delay.protected void clean()
protected void cleanModel(ModelData at)
protected void doAttach()
doAttach
in class GridView
protected void doClean()
protected java.lang.String doRender(java.util.List<ColumnData> cs, java.util.List<ModelData> rows, int startRow, int colCount, boolean stripe)
doRender
in class GridView
protected java.lang.String doRender(java.util.List<ColumnData> cs, java.util.List<ModelData> rows, int startRow, int colCount, boolean stripe, boolean onlyBody)
protected void doUpdate()
protected int getCalculatedRowHeight()
protected int getStyleRowHeight()
protected int getVisibleRowCount()
protected int[] getVisibleRows(int count)
protected boolean isRowRendered(int index)
protected void layout(boolean skipResize)
layout
in class GridView
protected void notifyShow()
notifyShow
in class GridView
protected void onAdd(ListStore<ModelData> store, java.util.List<ModelData> models, int index)
onAdd
in class GridView
protected void onRemove(ListStore<ModelData> ds, ModelData m, int index, boolean isUpdate)
onRemove
in class GridView
protected void syncScroll()
syncScroll
in class GridView
protected void update()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |