| com.gwtext.client.widgets.grid.BaseColumnConfig com.gwtext.client.widgets.grid.ColumnConfig
Constructor Summary | |
public | ColumnConfig() Create a new ColumnConfig. | public | ColumnConfig(String header, String dataIndex, int width) Create a new ColumnConfig. | public | ColumnConfig(String header, String dataIndex, int width, boolean sortable) Create a new ColumnConfig. | public | ColumnConfig(String header, String dataIndex, int width, boolean sortable, Renderer renderer) Create a new ColumnConfig. | public | ColumnConfig(String header, String dataIndex, int width, boolean sortable, Renderer renderer, String id) Create a new ColumnConfig. |
ColumnConfig | public ColumnConfig()(Code) | | Create a new ColumnConfig.
|
ColumnConfig | public ColumnConfig(String header, String dataIndex, int width)(Code) | | Create a new ColumnConfig.
Parameters: header - the column header Parameters: dataIndex - the data index (the field name pf the Store associated with the Grid) Parameters: width - the column width |
ColumnConfig | public ColumnConfig(String header, String dataIndex, int width, boolean sortable)(Code) | | Create a new ColumnConfig.
Parameters: header - the column header Parameters: dataIndex - the data index (the field name pf the Store associated with the Grid) Parameters: width - the column width Parameters: sortable - true for sortable |
ColumnConfig | public ColumnConfig(String header, String dataIndex, int width, boolean sortable, Renderer renderer)(Code) | | Create a new ColumnConfig.
Parameters: header - the column header Parameters: dataIndex - the data index (the field name pf the Store associated with the Grid) Parameters: width - the column width Parameters: sortable - true for sortable Parameters: renderer - a renderer to allow custom formating of cells of this column |
ColumnConfig | public ColumnConfig(String header, String dataIndex, int width, boolean sortable, Renderer renderer, String id)(Code) | | Create a new ColumnConfig.
Parameters: header - the column header Parameters: dataIndex - the data index (the field name pf the Store associated with the Grid) Parameters: width - the column width Parameters: sortable - true for sortable Parameters: renderer - a renderer to allow custom formating of cells of this column Parameters: id - the grid ID |
getFixed | public boolean getFixed()(Code) | | |
getHidden | public boolean getHidden()(Code) | | |
getResizable | public boolean getResizable()(Code) | | |
getSortable | public boolean getSortable()(Code) | | |
getWidth | public int getWidth()(Code) | | |
setAlign | public void setAlign(TextAlign align)(Code) | | Set the CSS text-align property of the column. Defaults to undefined.
Parameters: align - the text-align position |
setCss | public void setCss(String css)(Code) | | Sets teh CSS class for the column,
Parameters: css - the CSS class |
setEditor | public void setEditor(GridEditor editor)(Code) | | Sets the editor for a column.
Parameters: editor - the column editor |
setFixed | public void setFixed(boolean fixed)(Code) | | True to make the column width fixed.
Parameters: fixed - true for fixed width |
setHeader | public void setHeader(String header)(Code) | | The header text to display in the Grid view. You can use arbitrary html for the header.
Parameters: header - the column header |
setHidden | public void setHidden(boolean hidden)(Code) | | True to hide the column. Defaults to false.
Parameters: hidden - true to hide column |
setId | public void setId(String id)(Code) | | Assigning id to ColumnConfig results in the column dom element having that ID.
This is useful to apply custom css to the entire column. (e.g. .x-grid-col-topic b { color:#333 }) .
Parameters: id - the column ID |
setRenderer | native public void setRenderer(Renderer renderer)(Code) | | Sets the rendering (formatting) function for a column.
Parameters: renderer - the column renderer |
setResizable | public void setResizable(boolean resizable)(Code) | | False to disable column resizing. Defaults to true.
Parameters: resizable - false to disable column resizing |
setTooltip | public void setTooltip(String tooltip)(Code) | | A text string to use as the column header's tooltip. If Quicktips are enabled, this value will be used as the text
of the quick tip, otherwise it will be set as the header's HTML title attribute. Defaults to ''.
Parameters: tooltip - the tooltip |
setWidth | public void setWidth(int width)(Code) | | The initial width in pixels of the column.
Parameters: width - the column width |
|
|