Class TableColumn
Object
|
+--Widget
|
+--TableColumn
- class
TableColumn
- extends Widget
Defined in table_column.js
Field Summary |
<static> <final> int |
SORT_ASCENDING
Indicates that a column is sorted in ascending order. |
<static> <final> int |
SORT_DESCENDING
Indicates that a column is sorted in descending order. |
<static> <final> int |
SORT_NONE
Indicates that a column is not sorted. |
Constructor Summary |
TableColumn
(text)
Creates a table column.
|
Method Summary |
DOMNode
|
getText()
Returns the text currently displayed in this column header.
|
void
|
setSortDirection(<int> sortDir)
Sets the column's sort direction to sortDir .
|
void
|
setText(<Object> text)
Sets this column header's display.
|
Methods inherited from class Widget |
installContextMenu, installDefaultContextMenu, uninstallContextMenu, isDraggable, setDraggable, addEventListener, blur, createEventTable, dispose, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getBottom, getBounds, getClientHeight, getClientWidth, getCorner, getHeight, getLeft, getPixelsPerEm, getRight, getToolTip, getTop, getWidth, isDisposed, isEnabled, layout, moveToAbsolute, moveTo, raiseEvent, registerEventType, removeEventListener, setAbsoluteBottom, setAbsoluteLeft, setAbsoluteRight, setAbsoluteTop, setBottom, setBounds, setEnabled, setHeight, setLeft, setRight, setToolTip, setTop, setWidth, setParent, toString
|
SORT_ASCENDING
<static> <final> int SORT_ASCENDING
Indicates that a column is sorted in ascending order.
SORT_DESCENDING
<static> <final> int SORT_DESCENDING
Indicates that a column is sorted in descending order.
SORT_NONE
<static> <final> int SORT_NONE
Indicates that a column is not sorted.
TableColumn
function TableColumn(text)
Parameters:
text
- the initial text value to display
getText
DOMNode getText()
Returns the text currently displayed in this column header.
setSortDirection
void setSortDirection(<int> sortDir)
Sets the column's sort direction to sortDir
.
Parameters:
sortDir
- the sort direction. Must be one of TableColumn.SORT_NONE
, TableColumn.SORT_ASCENDING
, or TableColumn.SORT_DESCENDING
.
setText
void setText(<Object> text)
Sets this column header's display. text
can
be a string
, a Widget
, or
a DOMNode
.
Parameters:
text
- the text to display
