|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.widget.table.TableColumn
TreeGrid
public class TableColumn
A column in a Table
. Column sizes can be specified as either
pixels or percentages. Width values less than or equal to 1 are treated as
percentages.
Note: Public members should not be modified after the column is added to a column model.
Field Summary | |
---|---|
protected TableColumnModel |
cm
Deprecated. |
static java.util.Comparator<java.lang.Object> |
DEFAULT_COMPARATOR
Deprecated. |
protected int |
index
Deprecated. |
protected int |
lastWidth
Deprecated. |
protected Style.SortDir |
sortDir
Deprecated. |
Constructor Summary | |
---|---|
TableColumn(java.lang.String id,
float width)
Deprecated. Creates a new column instance. |
|
TableColumn(java.lang.String id,
java.lang.String text)
Deprecated. Creates a new column instance. |
|
TableColumn(java.lang.String id,
java.lang.String text,
float width)
Deprecated. Creates a new column instance. |
Method Summary | |
---|---|
Style.HorizontalAlignment |
getAlignment()
Deprecated. Returns the column's alignment. |
java.lang.String |
getColumnStyle()
Deprecated. Returns the columns style name to be applied to the column. |
java.util.Comparator<java.lang.Object> |
getComparator()
Deprecated. returns the table's comparator. |
java.lang.Object |
getData()
Deprecated. Returns the application defined data associated with the column, or null if it has not been set. |
java.lang.Object |
getData(java.lang.String key)
Deprecated. Returns the application defined property for the given name, or null if it has not been set. |
java.lang.String |
getId()
Deprecated. Returns the column's id. |
protected int |
getIndex()
Deprecated. |
int |
getMaxWidth()
Deprecated. Returns the column's maximum width. |
int |
getMinWidth()
Deprecated. Returns the column's minimum width. |
CellRenderer |
getRenderer()
Deprecated. Returns the column's cell rendered. |
Style.SortDir |
getSortDir()
Deprecated. Returns the column's current sort direction. |
java.lang.String |
getText()
Deprecated. Returns the column's text. |
float |
getWidth()
Deprecated. Returns the column's width. |
boolean |
isHidden()
Deprecated. Returns true if hidden, false otherwise. |
boolean |
isResizable()
Deprecated. Returns true if the column is resizable. |
boolean |
isSortable()
Deprecated. Returns true if the column is sortable. |
void |
setAlignment(Style.HorizontalAlignment align)
Deprecated. Sets the column's alignment. |
void |
setColumnStyle(java.lang.String columnStyle)
Deprecated. Sets the columns style name. |
void |
setComparator(java.util.Comparator<java.lang.Object> comparator)
Deprecated. Sets the column's comparator. |
void |
setData(java.lang.Object data)
Deprecated. Sets the application defined column data. |
void |
setData(java.lang.String key,
java.lang.Object data)
Deprecated. Sets the application defined property with the given name. |
void |
setHidden(boolean hidden)
Deprecated. Sets the column's hidden state. |
protected void |
setIndex(int index)
Deprecated. |
void |
setMaxWidth(int maxWidth)
Deprecated. Sets the column's maximum width. |
void |
setMinWidth(int minWidth)
Deprecated. Sets the column's minimum width. |
void |
setRenderer(CellRenderer renderer)
Deprecated. Sets the column's cell renderer. |
void |
setResizable(boolean resizable)
Deprecated. Specifies if the column may be resized. |
void |
setSortable(boolean sortable)
Deprecated. Sets the sortable state. |
void |
setText(java.lang.String text)
Deprecated. Sets the column's text. |
void |
setWidth(float width)
Deprecated. Sets the column's width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<java.lang.Object> DEFAULT_COMPARATOR
protected Style.SortDir sortDir
protected int index
protected int lastWidth
protected TableColumnModel cm
Constructor Detail |
---|
public TableColumn(java.lang.String id, float width)
id
- the column idwidth
- the column width, widths that are 1 or less are treated as
percentagespublic TableColumn(java.lang.String id, java.lang.String text)
id
- the column idtext
- the column textpublic TableColumn(java.lang.String id, java.lang.String text, float width)
id
- the column idtext
- the column textwidth
- the widthMethod Detail |
---|
public Style.HorizontalAlignment getAlignment()
public java.lang.String getColumnStyle()
public java.util.Comparator<java.lang.Object> getComparator()
public java.lang.Object getData()
null
if it has not been set.
public java.lang.Object getData(java.lang.String key)
null
if it has not been set.
key
- the name of the property
null
if it has not been setpublic java.lang.String getId()
public int getMaxWidth()
public int getMinWidth()
public CellRenderer getRenderer()
public Style.SortDir getSortDir()
Style.SortDir
public java.lang.String getText()
public float getWidth()
public boolean isHidden()
true
if hidden, false
otherwise.
public boolean isResizable()
true
if the column is resizable.
public boolean isSortable()
true
if the column is sortable.
public void setAlignment(Style.HorizontalAlignment align)
align
- the alignmentpublic void setColumnStyle(java.lang.String columnStyle)
columnStyle
- the style namepublic void setComparator(java.util.Comparator<java.lang.Object> comparator)
comparator
- the comparatorpublic void setData(java.lang.Object data)
data
- the widget datapublic void setData(java.lang.String key, java.lang.Object data)
key
- the name of the propertydata
- the new value for the propertypublic void setHidden(boolean hidden)
hidden
- true
to hide, false
otherwisepublic void setMaxWidth(int maxWidth)
maxWidth
- the max widthpublic void setMinWidth(int minWidth)
minWidth
- the min widthpublic void setRenderer(CellRenderer renderer)
renderer
- the cell rendererpublic void setResizable(boolean resizable)
true
.
resizable
- the resizeable statepublic void setSortable(boolean sortable)
sortable
- true
to enable sortingpublic void setText(java.lang.String text)
text
- the textpublic void setWidth(float width)
width
- the widthprotected int getIndex()
protected void setIndex(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |