|
||||||||||
| 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.ColumnConfig<M,N>
public class ColumnConfig<M,N>
A column config for a column in a column model.
The column config is a configuration object that should only be used when creating a column model. After the column model is created, any changes should be made to the column model, not the column config.
| Constructor Summary | |
|---|---|
ColumnConfig(ValueProvider<? super M,N> valueProvider)
Creates a new column config. |
|
ColumnConfig(ValueProvider<? super M,N> valueProvider,
int width)
Creates a new column config. |
|
ColumnConfig(ValueProvider<? super M,N> valueProvider,
int width,
SafeHtml header)
Creates a new column config. |
|
ColumnConfig(ValueProvider<? super M,N> valueProvider,
int width,
java.lang.String header)
Creates a new column config. |
|
| Method Summary | |
|---|---|
HasHorizontalAlignment.HorizontalAlignmentConstant |
getAlignment()
Returns the column's horizontal alignment. |
Cell<N> |
getCell()
Returns the column's cell renderer. |
java.lang.String |
getColumnClassSuffix()
Returns the columns class name. |
java.lang.String |
getColumnHeaderClassName()
Returns the column class names(s). |
SafeStyles |
getColumnStyle()
Returns the column cells styles. |
java.lang.String |
getColumnTextClassName()
Returns the column text class name(s). |
SafeStyles |
getColumnTextStyle()
Returns the column text styles. |
java.util.Comparator<N> |
getComparator()
Returns the comparator used to compare the items in this column when grouping or sorting. |
SafeHtml |
getHeader()
Returns the column's header text. |
java.lang.String |
getPath()
Returns the value provider path. |
SafeHtml |
getToolTip()
Returns the column's tool tip. |
ValueProvider<? super M,N> |
getValueProvider()
Returns the column's valueProvider. |
Widget |
getWidget()
Returns the column's widget. |
int |
getWidth()
Returns the column's width. |
boolean |
isFixed()
Returns true if the column width cannot be changed. |
boolean |
isGroupable()
Returns true if the column can be grouped. |
boolean |
isHidden()
Returns true if the column is hidden. |
boolean |
isHideable()
Returns true if the column can be hidden. |
boolean |
isMenuDisabled()
Returns true if the column's menu is disabled. |
boolean |
isResizable()
Returns true if the column is resizable. |
boolean |
isRowHeader()
Returns true if the column is marked as the row header. |
boolean |
isSortable()
Returns true if the column is sortable (pre-render). |
void |
setAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant alignment)
Sets the column's horizontal alignment. |
void |
setCell(Cell<N> cell)
Sets the column's cell renderer (pre-render). |
void |
setColumnClassSuffix(java.lang.String columnClassSuffix)
If provided, this value will be appended to 'x-grid3-td-' and be added to all table cells for the column. |
void |
setColumnHeaderClassName(java.lang.String classNames)
Sets the CSS class name(s) to be applied to the header element (defaults to null). |
void |
setColumnStyle(SafeStyles columnStyles)
Sets the CSS class name(s) to be applied to the cell in the column (defaults to null). |
void |
setColumnTextClassName(java.lang.String columnTextClassName)
Sets the CSS class name(s) to be applied to the text element of each cell in the column (defaults to null). |
void |
setColumnTextStyle(SafeStyles textStyles)
Sets one to many CSS styles to be applied to the text element of each cell in the column (defaults to null). |
void |
setComparator(java.util.Comparator<N> comparator)
Sets the comparator used to compare the items in this column when grouping or sorting. |
void |
setFixed(boolean fixed)
True if the column width cannot be changed either by column model or user resizing (defaults to false, pre-render). |
void |
setGroupable(boolean groupable)
Sets if the column is groupable (defaults to true). |
void |
setHeader(SafeHtml header)
Sets the column's header text. |
void |
setHeader(java.lang.String header)
Sets the column's header text, to be displayed as escaped html. |
void |
setHidden(boolean hidden)
Sets whether the column is hidden. |
void |
setHideable(boolean hideable)
True to allow the column to be hidden via the context menu (defaults to true). |
void |
setMenuDisabled(boolean menuDisabled)
Sets whether the column's menu is disabled (pre-render). |
void |
setResizable(boolean resizable)
Specifies if the column may be resized (defaults to true, pre-render). |
void |
setRowHeader(boolean rowHeader)
True to mark this column as the row header. |
void |
setSortable(boolean sortable)
Sets if the column can be sorted (defaults to true, pre-render). |
void |
setToolTip(SafeHtml toolTip)
Sets the column's tool tip. |
void |
setWidget(Widget widget,
SafeHtml header)
Sets the column's widget. |
void |
setWidth(int width)
Sets the column's width in pixels. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnConfig(ValueProvider<? super M,N> valueProvider)
public ColumnConfig(ValueProvider<? super M,N> valueProvider,
int width)
valueProvider - the value providerwidth - the column width
public ColumnConfig(ValueProvider<? super M,N> valueProvider,
int width,
SafeHtml header)
valueProvider - the value providerwidth - the column widthheader - the column header content
public ColumnConfig(ValueProvider<? super M,N> valueProvider,
int width,
java.lang.String header)
valueProvider - thevalueProviderwidth - the column widthheader - the heading text| Method Detail |
|---|
public HasHorizontalAlignment.HorizontalAlignmentConstant getAlignment()
public Cell<N> getCell()
public java.lang.String getColumnClassSuffix()
public java.lang.String getColumnHeaderClassName()
public SafeStyles getColumnStyle()
public java.lang.String getColumnTextClassName()
public SafeStyles getColumnTextStyle()
public java.util.Comparator<N> getComparator()
N implements Comparable, this is
not required to sort or group.
public SafeHtml getHeader()
public java.lang.String getPath()
public SafeHtml getToolTip()
public ValueProvider<? super M,N> getValueProvider()
public Widget getWidget()
public int getWidth()
public boolean isFixed()
public boolean isGroupable()
public boolean isHidden()
public boolean isHideable()
public boolean isMenuDisabled()
public boolean isResizable()
public boolean isRowHeader()
public boolean isSortable()
true if the column is sortable (pre-render).
public void setAlignment(HasHorizontalAlignment.HorizontalAlignmentConstant alignment)
alignment - the alignmentpublic void setCell(Cell<N> cell)
cell - the cell rendererpublic void setColumnClassSuffix(java.lang.String columnClassSuffix)
columnClassSuffix - the column class namepublic void setColumnHeaderClassName(java.lang.String classNames)
classNames - the space separated list of class namespublic void setColumnStyle(SafeStyles columnStyles)
columnStyles - the column stylespublic void setColumnTextClassName(java.lang.String columnTextClassName)
columnTextClassName - the space separated list of class namespublic void setColumnTextStyle(SafeStyles textStyles)
textStyles - the stylespublic void setComparator(java.util.Comparator<N> comparator)
N implements Comparable, this is not
required to sort or group.
comparator - the Comparator to use when locally sorting or groupingpublic void setFixed(boolean fixed)
fixed - true for fixed column widthpublic void setGroupable(boolean groupable)
groupable - true to allow groupingpublic void setHeader(SafeHtml header)
header - the header textsetHeader(String)public void setHeader(java.lang.String header)
header - the header text to be displayed as escaped htmlsetHeader(SafeHtml)public void setHidden(boolean hidden)
hidden - true to hidepublic void setHideable(boolean hideable)
hideable - true to allow hidingpublic void setMenuDisabled(boolean menuDisabled)
menuDisabled - true to disable the menupublic void setResizable(boolean resizable)
resizable - the resizable statepublic void setRowHeader(boolean rowHeader)
rowHeader - true to mark the column as the row headerpublic void setSortable(boolean sortable)
sortable - the sortable statepublic void setToolTip(SafeHtml toolTip)
toolTip - the tool tip
public void setWidget(Widget widget,
SafeHtml header)
widget - the widgetheader - the text used for the column context menupublic void setWidth(int width)
width - the width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||