com.extjs.gxt.ui.client.widget.table
Class TableView

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.table.TableView

Deprecated. see Grid

public class TableView
extends java.lang.Object

This class encapsulates the user interface of a Table.

When using custom cell renderers or nested widgets within cells it may be necessary to increase the cell selector depth to account for the new nested elements within each cell. For example, if nesting a table structure in a cell, the selector depth should be increased to at least a value of 10 (@see setCellSelectorDepth(int).


Field Summary
protected  java.lang.String baseStyle
          Deprecated.  
protected  java.lang.String cellOverflowStyle
          Deprecated.  
protected  java.lang.String cellSelector
          Deprecated.  
protected  java.lang.String cellStyle
          Deprecated.  
protected  TableColumnModel cm
          Deprecated.  
protected  El dataEl
          Deprecated.  
protected  java.lang.String overStyle
          Deprecated.  
protected  java.lang.String rowSelector
          Deprecated.  
protected  int scrollBarWidth
          Deprecated.  
protected  El scrollEl
          Deprecated.  
protected  java.lang.String selStyle
          Deprecated.  
protected  Table table
          Deprecated.  
protected  java.lang.String textStyle
          Deprecated.  
protected  java.lang.String widgetStyle
          Deprecated.  
 
Constructor Summary
TableView()
          Deprecated.  
 
Method Summary
protected  void applyCellStyles(TableItem item)
          Deprecated.  
protected  void bulkRender()
          Deprecated.  
protected  void clearHoverStyles()
          Deprecated.  
protected  void doSort(int index, Style.SortDir direction)
          Deprecated.  
 com.google.gwt.user.client.Element findCell(com.google.gwt.user.client.Element elem)
          Deprecated. Returns the cell.
 int findCellIndex(com.google.gwt.user.client.Element elem)
          Deprecated. Returns the elements cell index.
 com.google.gwt.user.client.Element findRow(com.google.gwt.user.client.Element el)
          Deprecated. Returns the row element.
 int findRowIndex(com.google.gwt.user.client.Element elem)
          Deprecated. Reutrns the row index of the element.
protected  El fly(com.google.gwt.user.client.Element elem)
          Deprecated.  
protected  com.google.gwt.user.client.Element getCell(TableItem item, int cell)
          Deprecated.  
protected  int getCellIndex(com.google.gwt.user.client.Element elem)
          Deprecated.  
 int getCellSelectorDepth()
          Deprecated. Returns the cell selector depth.
 El getDataEl()
          Deprecated. Returns the data element.
 int getRowSelectorDepth()
          Deprecated. Returns the row selector depth.
 El getScrollEl()
          Deprecated. Returns the scroll element.
protected  com.google.gwt.user.client.Element getTextCellElement(TableItem item, int cell)
          Deprecated.  
protected  com.google.gwt.user.client.Element getTextCellInternal(com.google.gwt.user.client.Element elem, int column)
          Deprecated.  
protected  void init(Table table)
          Deprecated.  
protected static void markRendered(TableItem item)
          Deprecated.  
protected  void onHighlightRow(TableItem item, boolean highlight)
          Deprecated.  
protected  void onRemove(int index)
          Deprecated.  
protected  void onSelectItem(TableItem item, boolean select)
          Deprecated.  
protected  void processRows(int startIndex)
          Deprecated.  
protected  void render()
          Deprecated.  
protected  void renderItem(TableItem item, int index)
          Deprecated.  
protected  void renderItems()
          Deprecated.  
protected  void renderItemValue(TableItem item, int index, java.lang.Object value)
          Deprecated.  
protected  void reorderItems()
          Deprecated. Sorts the table items based on the current order.
 void resize()
          Deprecated. Adjusts the table to its current size.
protected  void resizeCells(int columnIndex)
          Deprecated.  
 void setCellSelectorDepth(int cellSelectorDepth)
          Deprecated. The number of levels to search for cells in event delegation (defaults to 10).
protected  void setCellStyle(TableItem item, int index, java.lang.String style)
          Deprecated.  
 void setRowSelectorDepth(int rowSelectorDepth)
          Deprecated. The number of levels to search for rows in event delegation (defaults to 10).
protected  void showColumn(com.google.gwt.user.client.Element elem, boolean show, int index)
          Deprecated.  
protected  void showColumn(int index, boolean show)
          Deprecated.  
protected  void sizeCell(com.google.gwt.user.client.Element elem, int index, int width)
          Deprecated.  
 void sort(int index, Style.SortDir direction)
          Deprecated. Sorts the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseStyle

protected java.lang.String baseStyle
Deprecated. 

overStyle

protected java.lang.String overStyle
Deprecated. 

selStyle

protected java.lang.String selStyle
Deprecated. 

cellStyle

protected java.lang.String cellStyle
Deprecated. 

cellOverflowStyle

protected java.lang.String cellOverflowStyle
Deprecated. 

textStyle

protected java.lang.String textStyle
Deprecated. 

widgetStyle

protected java.lang.String widgetStyle
Deprecated. 

rowSelector

protected java.lang.String rowSelector
Deprecated. 

cellSelector

protected java.lang.String cellSelector
Deprecated. 

cm

protected TableColumnModel cm
Deprecated. 

dataEl

protected El dataEl
Deprecated. 

scrollEl

protected El scrollEl
Deprecated. 

table

protected Table table
Deprecated. 

scrollBarWidth

protected int scrollBarWidth
Deprecated. 
Constructor Detail

TableView

public TableView()
Deprecated. 
Method Detail

markRendered

protected static void markRendered(TableItem item)
Deprecated. 

findCell

public com.google.gwt.user.client.Element findCell(com.google.gwt.user.client.Element elem)
Deprecated. 
Returns the cell.

Parameters:
elem - the cell element or any child element
Returns:
the cell or null if not match

findCellIndex

public int findCellIndex(com.google.gwt.user.client.Element elem)
Deprecated. 
Returns the elements cell index.

Parameters:
elem - the row element
Returns:
the cell index or -1 if not match

findRow

public com.google.gwt.user.client.Element findRow(com.google.gwt.user.client.Element el)
Deprecated. 
Returns the row element.

Parameters:
el - the row element or any child element
Returns:
the matching row or null if no match

findRowIndex

public int findRowIndex(com.google.gwt.user.client.Element elem)
Deprecated. 
Reutrns the row index of the element.

Parameters:
elem - the row element or any child element
Returns:
the row index or -1 if not found

getCellSelectorDepth

public int getCellSelectorDepth()
Deprecated. 
Returns the cell selector depth.

Returns:
the cell selector depth

getDataEl

public El getDataEl()
Deprecated. 
Returns the data element.

Returns:
the data element

getRowSelectorDepth

public int getRowSelectorDepth()
Deprecated. 
Returns the row selector depth.

Returns:
the row selector depth

getScrollEl

public El getScrollEl()
Deprecated. 
Returns the scroll element.

Returns:
the scroll element

resize

public void resize()
Deprecated. 
Adjusts the table to its current size.


setCellSelectorDepth

public void setCellSelectorDepth(int cellSelectorDepth)
Deprecated. 
The number of levels to search for cells in event delegation (defaults to 10).

Parameters:
cellSelectorDepth - the cell selector depth

setRowSelectorDepth

public void setRowSelectorDepth(int rowSelectorDepth)
Deprecated. 
The number of levels to search for rows in event delegation (defaults to 10).

Parameters:
rowSelectorDepth - the row selector depth

sort

public void sort(int index,
                 Style.SortDir direction)
Deprecated. 
Sorts the table.

Parameters:
index - the column to sort
direction - the sort direction

applyCellStyles

protected void applyCellStyles(TableItem item)
Deprecated. 

bulkRender

protected void bulkRender()
Deprecated. 

clearHoverStyles

protected void clearHoverStyles()
Deprecated. 

doSort

protected void doSort(int index,
                      Style.SortDir direction)
Deprecated. 

fly

protected El fly(com.google.gwt.user.client.Element elem)
Deprecated. 

getCell

protected com.google.gwt.user.client.Element getCell(TableItem item,
                                                     int cell)
Deprecated. 

getCellIndex

protected int getCellIndex(com.google.gwt.user.client.Element elem)
Deprecated. 

getTextCellElement

protected com.google.gwt.user.client.Element getTextCellElement(TableItem item,
                                                                int cell)
Deprecated. 

getTextCellInternal

protected com.google.gwt.user.client.Element getTextCellInternal(com.google.gwt.user.client.Element elem,
                                                                 int column)
Deprecated. 

init

protected void init(Table table)
Deprecated. 

onHighlightRow

protected void onHighlightRow(TableItem item,
                              boolean highlight)
Deprecated. 

onRemove

protected void onRemove(int index)
Deprecated. 

onSelectItem

protected void onSelectItem(TableItem item,
                            boolean select)
Deprecated. 

render

protected void render()
Deprecated. 

renderItem

protected void renderItem(TableItem item,
                          int index)
Deprecated. 

renderItems

protected void renderItems()
Deprecated. 

renderItemValue

protected void renderItemValue(TableItem item,
                               int index,
                               java.lang.Object value)
Deprecated. 

reorderItems

protected void reorderItems()
Deprecated. 
Sorts the table items based on the current order.


resizeCells

protected void resizeCells(int columnIndex)
Deprecated. 

setCellStyle

protected void setCellStyle(TableItem item,
                            int index,
                            java.lang.String style)
Deprecated. 

showColumn

protected void showColumn(com.google.gwt.user.client.Element elem,
                          boolean show,
                          int index)
Deprecated. 

showColumn

protected void showColumn(int index,
                          boolean show)
Deprecated. 

sizeCell

protected void sizeCell(com.google.gwt.user.client.Element elem,
                        int index,
                        int width)
Deprecated. 

processRows

protected void processRows(int startIndex)
Deprecated.