Method Summary |
|
native public void | addListener(ColumnModelListener listener) Add a ColumnModel listener. |
native public JavaScriptObject | create(JavaScriptObject configJS) |
public BaseColumnConfig[] | getColumnConfigs() |
native public int | getColumnCount() Returns the number of columns. |
public String | getColumnHeader(String colID) Returns the column header. |
native public String | getColumnHeader(int colIndex) Returns the header for the specified column. |
native public String | getColumnId(int colIndex) Returns the column ID.
Parameters: colIndex - column index the column id set by the user using com.gwtext.client.widgets.grid.ColumnConfig.setId(String). |
public String | getColumnTooltip(String colID) Returns the tooltip for the specified column. |
native public String | getColumnTooltip(int colIndex) Returns the tooltip for the specified column. |
public int | getColumnWidth(String colID) Returns the width for the specified column. |
native public int | getColumnWidth(int colIndex) Returns the width for the specified column. |
public String | getDataIndex(String colID) Returns the dataIndex for the specified column. |
native public String | getDataIndex(int colIndex) Returns the dataIndex for the specified column. |
native public int | getIndexById(String id) Returns the index for a specified column ID. |
native public int | getTotalWidth() |
native public int | getTotalWidth(boolean includeHidden) Returns the total width of all columns. |
public boolean | isCellEditable(String colID, int rowIndex) Returns true if the cell is editable. |
native public boolean | isCellEditable(int colIndex, int rowIndex) Returns true if the cell is editable. |
public boolean | isFixed(String colID) Returns true if the column width cannot be changed. |
native public boolean | isFixed(int colIndex) |
public boolean | isHidden(String colID) Returns true if the column is hidden. |
native public boolean | isHidden(int colIndex) Returns true if the column is hidden. |
public boolean | isLocked(String colID) Returns true if the column is locked. |
native public boolean | isLocked(int colIndex) Returns if the column is locked. |
public boolean | isResizable(String colID) Returns true if the column is resizable. |
native public boolean | isResizable(int colIndex) Returns true if the column is resizable. |
public boolean | isSortable(String colID) Returns true if the column is sortable. |
native public boolean | isSortable(int colIndex) Returns true if the column is sortable. |
public void | setColumnHeader(String colID, String header) Sets the header for a column. |
native public void | setColumnHeader(int colIndex, String header) Sets the header for a column. |
public void | setColumnWidth(String colID, int width) Sets the width for a column. |
native public void | setColumnWidth(int colIndex, int width) Sets the width for a column. |
public void | setDataIndex(String colID, int dataIndex) Sets the dataIndex for a column. |
native public void | setDataIndex(int colIndex, int dataIndex) Sets the dataIndex for a column. |
public void | setDataIndex(String colID, String dataIndex) Sets the dataIndex for a column. |
native public void | setDataIndex(int colIndex, String dataIndex) Sets the dataIndex for a column. |
native public void | setDefaultSortable(boolean defaultSortable) Default sortable of columns which have no sortable specified (defaults to false). |
native public void | setDefaultWidth(int defaultWidth) |
public void | setEditable(String colID, boolean editable) Sets if a column is editable. |
native public void | setEditable(int colIndex, boolean editable) Sets if a column is editable. |
public void | setEditor(String colID, GridEditor editor) Sets the editor for a column. |
native public void | setEditor(int colIndex, GridEditor editor) Sets the editor for a column. |
public void | setHidden(String colID, boolean hidden) Sets if a column is hidden. |
native public void | setHidden(int colIndex, boolean hidden) Sets if a column is hidden. |
public void | setRenderer(String colID, Renderer renderer) Sets the rendering (formatting) function for a column. |
native public void | setRenderer(int colIndex, Renderer renderer) Sets the rendering (formatting) function for a column. |