|
|||||||||
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.core.BaseConfig
com.gwtext.client.widgets.grid.BaseColumnConfig
com.gwtext.client.widgets.grid.ColumnConfig
public class ColumnConfig
The Grid Column configuration.
ColumnModel
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
ColumnConfig()
Create a new ColumnConfig. |
|
ColumnConfig(java.lang.String header,
java.lang.String dataIndex)
Create a new ColumnConfig. |
|
ColumnConfig(java.lang.String header,
java.lang.String dataIndex,
int width)
Create a new ColumnConfig. |
|
ColumnConfig(java.lang.String header,
java.lang.String dataIndex,
int width,
boolean sortable)
Create a new ColumnConfig. |
|
ColumnConfig(java.lang.String header,
java.lang.String dataIndex,
int width,
boolean sortable,
Renderer renderer)
Create a new ColumnConfig. |
|
ColumnConfig(java.lang.String header,
java.lang.String dataIndex,
int width,
boolean sortable,
Renderer renderer,
java.lang.String id)
Create a new ColumnConfig. |
Method Summary | |
---|---|
java.lang.String |
getCss()
|
java.lang.String |
getDataIndex()
|
boolean |
getFixed()
|
java.lang.String |
getHeader()
|
boolean |
getHidden()
|
java.lang.String |
getId()
|
boolean |
getResizable()
|
boolean |
getSortable()
|
java.lang.String |
getTextAlign()
|
java.lang.String |
getTooltip()
|
int |
getWidth()
|
void |
setAlign(TextAlign align)
Set the CSS text-align property of the column. |
void |
setCss(java.lang.String css)
Sets teh CSS class for the column, |
void |
setDataIndex(java.lang.String dataIndex)
The name of the field in the grid's Store 's Record definition
from which to draw the column's value. |
void |
setEditor(GridEditor editor)
Sets the editor for a column. |
void |
setFixed(boolean fixed)
True to make the column width fixed. |
void |
setHeader(java.lang.String header)
The header text to display in the Grid view. |
void |
setHidden(boolean hidden)
True to hide the column. |
void |
setId(java.lang.String id)
Assigning id to ColumnConfig results in the column dom element having that ID. |
void |
setRenderer(Renderer renderer)
Sets the rendering (formatting) function for a column. |
void |
setRenderer(java.lang.String renderer)
|
void |
setResizable(boolean resizable)
False to disable column resizing. |
void |
setSortable(boolean sortable)
True if sorting is to be allowed on this column. |
void |
setTooltip(java.lang.String tooltip)
A text string to use as the column header's tooltip. |
void |
setWidth(int width)
The initial width in pixels of the column. |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnConfig()
public ColumnConfig(java.lang.String header, java.lang.String dataIndex)
header
- the column headerdataIndex
- the data index (the field name pf the Store associated with the Grid)public ColumnConfig(java.lang.String header, java.lang.String dataIndex, int width)
header
- the column headerdataIndex
- the data index (the field name pf the Store associated with the Grid)width
- the column widthpublic ColumnConfig(java.lang.String header, java.lang.String dataIndex, int width, boolean sortable)
header
- the column headerdataIndex
- the data index (the field name pf the Store associated with the Grid)width
- the column widthsortable
- true for sortablepublic ColumnConfig(java.lang.String header, java.lang.String dataIndex, int width, boolean sortable, Renderer renderer)
header
- the column headerdataIndex
- the data index (the field name pf the Store associated with the Grid)width
- the column widthsortable
- true for sortablerenderer
- a renderer to allow custom formating of cells of this columnpublic ColumnConfig(java.lang.String header, java.lang.String dataIndex, int width, boolean sortable, Renderer renderer, java.lang.String id)
header
- the column headerdataIndex
- the data index (the field name pf the Store associated with the Grid)width
- the column widthsortable
- true for sortablerenderer
- a renderer to allow custom formating of cells of this columnid
- the grid IDMethod Detail |
---|
public void setAlign(TextAlign align)
align
- the text-align positionpublic java.lang.String getTextAlign()
public void setId(java.lang.String id)
id
- the column IDpublic java.lang.String getId()
public void setDataIndex(java.lang.String dataIndex)
Store
's Record
definition
from which to draw the column's value. If not specified, the column's index is used as an index into the Record's data array.
dataIndex
- the data indexpublic java.lang.String getDataIndex()
public void setTooltip(java.lang.String tooltip)
tooltip
- the tooltippublic java.lang.String getTooltip()
public void setCss(java.lang.String css)
css
- the CSS classpublic java.lang.String getCss()
public void setHeader(java.lang.String header)
header
- the column headerpublic java.lang.String getHeader()
public void setHidden(boolean hidden)
hidden
- true to hide columnpublic boolean getHidden()
public void setFixed(boolean fixed)
fixed
- true for fixed widthpublic boolean getFixed()
public void setRenderer(Renderer renderer)
renderer
- the column rendererpublic void setResizable(boolean resizable)
resizable
- false to disable column resizingpublic boolean getResizable()
public void setRenderer(java.lang.String renderer)
public void setSortable(boolean sortable)
ColumnModel.setDefaultSortable(boolean)
.
Whether local/remote sorting is used is specified in Store.Store(com.gwtext.client.data.DataProxy, com.gwtext.client.data.Reader, boolean)
sortable
- false to disable sortingpublic boolean getSortable()
public void setWidth(int width)
width
- the column widthpublic int getWidth()
public void setEditor(GridEditor editor)
editor
- the column editor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |