|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.widgets.grid.GridView
public class GridView
A Grid's View class.
| Field Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
configJS
|
| Fields inherited from class com.gwtext.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
GridView()
Constructs a new GridView. |
|
GridView(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
int |
findRowIndex(EventObject evtObj)
To find a row index for a specific target for drag and drop |
int |
findRowIndex(com.google.gwt.core.client.JavaScriptObject t)
To find a row index for a specific target for drag and drop |
void |
fitColumns(boolean reserveScrollSpace)
Autofits all columns to the grid's width proportionate with their current size. |
void |
focusCell(int rowIndex,
int colIndex,
boolean hscroll)
Focuses the specified cell. |
void |
focusRow(int rowIndex)
Focusses the specified row. |
com.google.gwt.user.client.Element |
getCell(int rowIndex,
int colIndex)
Returns a cells element. |
java.lang.String |
getEmptyText()
Returns the default text to display in the grid body when no rows are available (defaults to ''). |
com.google.gwt.user.client.Element |
getHeaderCell(int index)
Return the header cell. |
com.google.gwt.core.client.JavaScriptObject |
getJsObj()
|
com.google.gwt.user.client.Element |
getRow(int index)
Returns the row element. |
java.lang.String |
getRowClass(Record record,
int index,
RowParams rowParams,
Store store)
Override this function to apply custom css classes to rows during rendering. |
void |
refresh()
Refreshes the grid. |
void |
refresh(boolean headersToo)
Refreshes the grid. |
void |
refreshRow(int index)
Refresh a row. |
void |
refreshRow(Record record)
The record to refresh. |
void |
scrollToPosition(int scrollLeft,
int scrollTop)
Scrolls the grid to the horizontal and vertical positions passed as parameters |
void |
scrollToTop()
Scrolls the grid to the top. |
void |
setAutoFill(boolean autoFill)
True to auto expand the columns to fit the grid when the grid is created. |
void |
setEmptyText(java.lang.String emptyText)
Default text to display in the grid body when no rows are available (defaults to ''). |
void |
setEnableRowBody(boolean enableRowBody)
True to add a second TR element per row that can be used to provide a row body that spans beneath the data row. |
void |
setForceFit(boolean forceFit)
True to auto expand/contract the size of the columns to fit the grid width and prevent horizontal scrolling. |
void |
setScrollOffset(int scrollOffset)
The amount of space to reserve for the scrollbar (defaults to 19 pixels). |
void |
updateHeaderSortState()
Update the headers sort state. |
| Methods inherited from class com.gwtext.client.core.JsObject |
|---|
getProperties, isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject configJS
| Constructor Detail |
|---|
public GridView(com.google.gwt.core.client.JavaScriptObject jsObj)
public GridView()
| Method Detail |
|---|
public com.google.gwt.core.client.JavaScriptObject getJsObj()
getJsObj in class JsObjectprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
public void refresh()
public void refresh(boolean headersToo)
headersToo - true to refresh the headers too
public java.lang.String getRowClass(Record record,
int index,
RowParams rowParams,
Store store)
record - the record for the rowindex - the row indexrowParams - row class passed to the method to support custom row renderingstore - the grids store
public void refreshRow(int index)
index - the row to refreshpublic void refreshRow(Record record)
record - the recordpublic void scrollToTop()
public void scrollToPosition(int scrollLeft,
int scrollTop)
scrollLeft - horizontal scroll position. Pass a -ve int to leave the current horizontal scroll position unchanged.scrollTop - vertical scroll position. Pass a -ve int to leave the current vertical scroll value unchanged.public com.google.gwt.user.client.Element getHeaderCell(int index)
index - header index
public com.google.gwt.user.client.Element getRow(int index)
index - row index
public com.google.gwt.user.client.Element getCell(int rowIndex,
int colIndex)
rowIndex - the row indexcolIndex - the column index
public void focusRow(int rowIndex)
rowIndex - the row index
public void focusCell(int rowIndex,
int colIndex,
boolean hscroll)
rowIndex - the row indexcolIndex - the column indexhscroll - false to disable horizontal scrollingpublic void fitColumns(boolean reserveScrollSpace)
reserveScrollSpace - reserve space for a scrollbarpublic void updateHeaderSortState()
public int findRowIndex(com.google.gwt.core.client.JavaScriptObject t)
t - the target grid object
public int findRowIndex(EventObject evtObj)
evtObj - the event object
public void setAutoFill(boolean autoFill)
autoFill - true to auto expand the columns to fit the grid when the grid is created.public void setEmptyText(java.lang.String emptyText)
emptyText - default text to display in the grid body when no rows are available (defaults to '').public java.lang.String getEmptyText()
public void setEnableRowBody(boolean enableRowBody)
enableRowBody - true to add a second TR element per row that can be used to provide a row body that spans beneath the data row.public void setForceFit(boolean forceFit)
forceFit - true to force fitpublic void setScrollOffset(int scrollOffset)
scrollOffset - the scroll offset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||