|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.grid.ColumnModel
public class ColumnModel
This is the default implementation of a ColumnModel.
| Constructor Summary | |
|---|---|
ColumnModel(java.util.List<ColumnConfig> columns)
|
|
| Method Summary | |
|---|---|
int |
findColumnIndex(java.lang.String dataIndex)
Finds the index of the first matching column for the given dataIndex. |
ColumnConfig |
getColumn(int colIndex)
|
Style.HorizontalAlignment |
getColumnAlignment(int colIndex)
Returns the column's alignment. |
ColumnConfig |
getColumnById(java.lang.String id)
Returns the column for a specified id. |
int |
getColumnCount()
Returns the column count. |
int |
getColumnCount(boolean visibleOnly)
Returns the number of visible columns. |
java.lang.String |
getColumnHeader(int colIndex)
Returns the header for the specified column. |
java.lang.String |
getColumnId(int colIndex)
Returns the id of the column at the specified index. |
java.lang.String |
getColumnStyle(int colIndex)
Returns the column's style. |
java.lang.String |
getColumnToolTip(int colIndex)
Returns the tooltip for the specified column. |
int |
getColumnWidth(int colIndex)
Returns the column width. |
java.lang.String |
getDataIndex(int colIndex)
Returns the data index for the specified column. |
CellEditor |
getEditor(int colIndex)
Returns the column's editor. |
int |
getIndexById(java.lang.String id)
Returns the index for a specified column id. |
GridCellRenderer |
getRenderer(int colIndex)
Returns the cell renderer. |
int |
getTotalWidth()
Returns the total width of all columns. |
int |
getTotalWidth(boolean includeHidden)
Returns the total width of all columns. |
boolean |
isCellEditble(int colIndex)
Returns true if the cell is editable. |
boolean |
isFixed(int colIndex)
Returns true if the column can be resized. |
boolean |
isGroupable(int colIndex)
|
boolean |
isHidden(int colIndex)
Returns true if the column is hidden. |
boolean |
isMenuDisabled(int colIndex)
Returns true if the specified column menu is disabled. |
boolean |
isResizable(int colIndex)
Returns true if the column can be resized. |
boolean |
isSortable(int colIndex)
Returns true if the specified column is sortable. |
void |
setColumnHeader(int colIndex,
java.lang.String header)
Sets the header for a column. |
void |
setColumnWidth(int colIndex,
int width)
Sets the column's width. |
void |
setColumnWidth(int colIndex,
int width,
boolean supressEvent)
Sets the column's width. |
void |
setDataIndex(int colIndex,
java.lang.String dataIndex)
Sets the dataIndex for a column. |
void |
setEditor(int colIndex,
CellEditor editor)
Sets the editor for the column. |
void |
setHidden(int colIndex,
boolean hidden)
Sets if a column is hidden. |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnModel(java.util.List<ColumnConfig> columns)
| Method Detail |
|---|
public int findColumnIndex(java.lang.String dataIndex)
dataIndex - the data index
public ColumnConfig getColumn(int colIndex)
public Style.HorizontalAlignment getColumnAlignment(int colIndex)
colIndex - the column index
public ColumnConfig getColumnById(java.lang.String id)
id - the column id
public int getColumnCount()
public int getColumnCount(boolean visibleOnly)
public boolean isGroupable(int colIndex)
public java.lang.String getColumnHeader(int colIndex)
colIndex - the column index
public java.lang.String getColumnId(int colIndex)
colIndex - the column index
public java.lang.String getColumnStyle(int colIndex)
colIndex - the column index
public java.lang.String getColumnToolTip(int colIndex)
colIndex - the column index
public int getColumnWidth(int colIndex)
colIndex - the column index
public java.lang.String getDataIndex(int colIndex)
colIndex - the column index
public CellEditor getEditor(int colIndex)
colIndex - the column index
public int getIndexById(java.lang.String id)
id - the column id
public GridCellRenderer getRenderer(int colIndex)
colIndex - the column index
public int getTotalWidth()
public int getTotalWidth(boolean includeHidden)
includeHidden - true to include hidden column widths
public boolean isCellEditble(int colIndex)
colIndex - the column index
public boolean isFixed(int colIndex)
colIndex - the column index
public boolean isHidden(int colIndex)
colIndex - the column index
public boolean isMenuDisabled(int colIndex)
colIndex - the column index
public boolean isResizable(int colIndex)
colIndex - the column index
public boolean isSortable(int colIndex)
colIndex - the column index
public void setColumnHeader(int colIndex,
java.lang.String header)
colIndex - the column indexheader - the header
public void setColumnWidth(int colIndex,
int width)
colIndex - the column indexwidth - the width
public void setColumnWidth(int colIndex,
int width,
boolean supressEvent)
colIndex - the column indexwidth - the widthsupressEvent - true to supress width change event
public void setDataIndex(int colIndex,
java.lang.String dataIndex)
colIndex - the column indexdataIndex - the data index
public void setEditor(int colIndex,
CellEditor editor)
colIndex - the column indexeditor - the editor
public void setHidden(int colIndex,
boolean hidden)
colIndex - the column indexhidden - true to hide the column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||