com.extjs.gxt.ui.client.widget.grid
Class BufferView

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.grid.GridView
          extended by com.extjs.gxt.ui.client.widget.grid.BufferView
All Implemented Interfaces:
Observable
Direct Known Subclasses:
TreeGridView

public class BufferView
extends GridView

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 using setRowHeight(int).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.GridView
GridView.GridViewImages
 
Constructor Summary
BufferView()
           
 
Method Summary
 int getCacheSize()
          Returns the amount of rows that should be cached.
 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
 boolean isBufferEnabled()
          Returns true if buffering is enabled.
 void layout()
           
 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 10).
 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 100).
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.GridView
ensureVisible, findCell, findCellIndex, findRow, findRowIndex, focusCell, focusRow, getBody, getCell, getCellSelectorDepth, getEditorParent, getEmptyText, getHeader, getHeaderCell, getImages, getRow, getRow, getRowSelectorDepth, getScrollState, getViewConfig, getWidget, isAutoFill, isForceFit, isShowDirtyCells, isSortingEnabled, refresh, scrollToTop, setAutoFill, setCellSelectorDepth, setEmptyText, setForceFit, setRowSelectorDepth, setShowDirtyCells, setSortingEnabled, setViewConfig
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferView

public BufferView()
Method Detail

getCacheSize

public int getCacheSize()
Returns the amount of rows that should be cached.

Returns:
the cache size

getCleanDelay

public int getCleanDelay()
Returns the amount of time before cleaning is done.

Returns:
the clean delay

getRowHeight

public int getRowHeight()
Returns the height of one row.

Returns:
the height of one row

getScrollDelay

public int getScrollDelay()
Returns the amount of time before new rows are displayed after scrolling

Returns:
the scroll delay

isBufferEnabled

public boolean isBufferEnabled()
Returns true if buffering is enabled.

Returns:
true for buffering

layout

public void layout()
Overrides:
layout in class GridView

setBufferEnabled

public void setBufferEnabled(boolean bufferEnabled)
True to enabled buffered functionality (defaults to true).

Parameters:
bufferEnabled - true to buffer, otherwise false

setCacheSize

public void setCacheSize(int cacheSize)
Sets the amount of rows that should be cached (default to 10).

Parameters:
cacheSize - the new cache size

setCleanDelay

public void setCleanDelay(int cleanDelay)
Sets the amount of time before cleaning is done (defaults to 500).

Parameters:
cleanDelay - the new clean delay

setRowHeight

public void setRowHeight(int rowHeight)
Sets the height of one row (defaults to 19).

Parameters:
rowHeight - the new row height.

setScrollDelay

public void setScrollDelay(int scrollDelay)
Sets the amount of time before new rows are displayed after scrolling (defaults to 100).

Parameters:
scrollDelay - the new scroll delay.