|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.grid.ColumnModel<M>
public class ColumnModel<M>
This is the default implementation of a ColumnModel.
| Constructor Summary | |
|---|---|
ColumnModel(java.util.List<ColumnConfig<M,?>> list)
Creates a new column model. |
|
| Method Summary | ||
|---|---|---|
void |
addAggregationRow(AggregationRowConfig<M> row)
Adds an aggregation row config to the column model. |
|
HandlerRegistration |
addColumnHeaderChangeHandler(ColumnHeaderChangeEvent.ColumnHeaderChangeHandler handler)
|
|
HandlerRegistration |
addColumnHiddenChangeHandler(ColumnHiddenChangeEvent.ColumnHiddenChangeHandler handler)
|
|
HandlerRegistration |
addColumnModelHandlers(ColumnModelHandlers handlers)
|
|
HandlerRegistration |
addColumnMoveHandler(ColumnMoveEvent.ColumnMoveHandler handler)
|
|
HandlerRegistration |
addColumnWidthChangeHandler(ColumnWidthChangeEvent.ColumnWidthChangeHandler handler)
|
|
void |
addHeaderGroup(int row,
int column,
HeaderGroupConfig config)
Adds a group to the column model. |
|
ColumnConfig<M,?> |
findColumnConfig(java.lang.String path)
Returns the matching column based on value provider path. |
|
void |
fireEvent(GwtEvent<?> event)
|
|
AggregationRowConfig<M> |
getAggregationRow(int rowIndex)
Returns the aggregation row. |
|
java.util.List<AggregationRowConfig<M>> |
getAggregationRows()
Returns the aggregation rows. |
|
|
getCell(int colIndex)
Returns the cell renderer. |
|
|
getColumn(int colIndex)
Returns the column at the given index. |
|
HasHorizontalAlignment.HorizontalAlignmentConstant |
getColumnAlignment(int colIndex)
Returns the column's alignment. |
|
int |
getColumnCount()
Returns the column count. |
|
int |
getColumnCount(boolean visibleOnly)
Returns the number of visible columns. |
|
SafeHtml |
getColumnHeader(int colIndex)
Returns the header for the specified column. |
|
java.util.List<ColumnConfig<M,?>> |
getColumns()
Returns the column configs. |
|
SafeStyles |
getColumnStyles(int colIndex)
Returns the column's styles. |
|
SafeHtml |
getColumnToolTip(int colIndex)
Returns the tooltip for the specified column. |
|
int |
getColumnWidth(int colIndex)
Returns the column width. |
|
java.util.List<HeaderGroupConfig> |
getHeaderGroups()
Returns the header groups. |
|
int |
getTotalWidth()
Returns the total width of all columns. |
|
int |
getTotalWidth(boolean includeHidden)
Returns the total width of all columns. |
|
|
getValueProvider(int colIndex)
Returns the cell value provider. |
|
int |
indexOf(ColumnConfig<M,?> column)
Returns the index of the column. |
|
boolean |
isFixed(int colIndex)
Returns true if the column can be resized. |
|
boolean |
isGroupable(int colIndex)
Returns true if the column is groupable. |
|
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 |
moveColumn(int oldIndex,
int newIndex)
Moves a column. |
|
void |
setColumnHeader(int colIndex,
SafeHtml 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 suppressEvent)
Sets the column's width. |
|
void |
setHidden(int colIndex,
boolean hidden)
Sets if a column is hidden. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnModel(java.util.List<ColumnConfig<M,?>> list)
list - the columns| Method Detail |
|---|
public void addAggregationRow(AggregationRowConfig<M> row)
row - the aggregation rowpublic HandlerRegistration addColumnHeaderChangeHandler(ColumnHeaderChangeEvent.ColumnHeaderChangeHandler handler)
addColumnHeaderChangeHandler in interface ColumnHeaderChangeEvent.HasColumnHeaderChangeHandlerspublic HandlerRegistration addColumnHiddenChangeHandler(ColumnHiddenChangeEvent.ColumnHiddenChangeHandler handler)
addColumnHiddenChangeHandler in interface ColumnHiddenChangeEvent.HasColumnHiddenChangeHandlerspublic HandlerRegistration addColumnModelHandlers(ColumnModelHandlers handlers)
addColumnModelHandlers in interface ColumnModelHandlers.HasColumnModelHandlerspublic HandlerRegistration addColumnMoveHandler(ColumnMoveEvent.ColumnMoveHandler handler)
addColumnMoveHandler in interface ColumnMoveEvent.HasColumnMoveHandlerspublic HandlerRegistration addColumnWidthChangeHandler(ColumnWidthChangeEvent.ColumnWidthChangeHandler handler)
addColumnWidthChangeHandler in interface ColumnWidthChangeEvent.HasColumnWidthChangeHandlers
public void addHeaderGroup(int row,
int column,
HeaderGroupConfig config)
row - the rowcolumn - the columnconfig - the header group configpublic ColumnConfig<M,?> findColumnConfig(java.lang.String path)
path - the path
public void fireEvent(GwtEvent<?> event)
fireEvent in interface HasHandlerspublic AggregationRowConfig<M> getAggregationRow(int rowIndex)
rowIndex - the row index
public java.util.List<AggregationRowConfig<M>> getAggregationRows()
public <N> Cell<N> getCell(int colIndex)
colIndex - the column index
public <N> ColumnConfig<M,N> getColumn(int colIndex)
colIndex - the column index
public HasHorizontalAlignment.HorizontalAlignmentConstant getColumnAlignment(int colIndex)
colIndex - the column index
public int getColumnCount()
public int getColumnCount(boolean visibleOnly)
public SafeHtml getColumnHeader(int colIndex)
colIndex - the column index
public java.util.List<ColumnConfig<M,?>> getColumns()
public SafeStyles getColumnStyles(int colIndex)
colIndex - the column index
public SafeHtml getColumnToolTip(int colIndex)
colIndex - the column index
public int getColumnWidth(int colIndex)
colIndex - the column index
public java.util.List<HeaderGroupConfig> getHeaderGroups()
public int getTotalWidth()
public int getTotalWidth(boolean includeHidden)
includeHidden - true to include hidden column widths
public <N> ValueProvider<? super M,N> getValueProvider(int colIndex)
colIndex - the column index
public int indexOf(ColumnConfig<M,?> column)
column - the column
public boolean isFixed(int colIndex)
colIndex - the column index
public boolean isGroupable(int colIndex)
GroupingView.
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 moveColumn(int oldIndex,
int newIndex)
oldIndex - the column indexnewIndex - the new column index
public void setColumnHeader(int colIndex,
SafeHtml 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 suppressEvent)
colIndex - the column indexwidth - the widthsuppressEvent - true to suppress width change event
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 | |||||||||