|
WT Toolkit 0.3.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--wtObject | +--wtWidget | +--wtDisplay
A tabular display with an optional caption. Available signals:
Constructor Summary | |
wtDisplay(<wtWidget|DOM_Node> _parent, <String> _width)
Constructs a tabular display with an optional caption |
Method Summary | |
{wtWidget}
|
addWidget(<wtDisplayRow> widget)
Adds a display row to this display table |
Object
|
base(<wtWidget> _parent, <String> _tagName)
Constructs a widget based on a DOM node |
void
|
delDisplayRow(<Integer> rowIdx)
Deletes one of the child display rows |
Array
|
getValueArray()
Tells the data values of all display cells in the display table |
wtDisplayRow
|
setDisplayRow(<Array> displayrow)
Adds a row with a list of widgets |
wtWidget
|
setSimpleRow(<String|wtWidget> label, <wtWidget|String> widget)
Adds a row with a label at the left and a widget at the right |
void
|
setSortEnabled(<Array> colList)
Sets which columns to enable display table sorting. |
wtDisplayRow
|
setStatusRow(<wtWidget|String> widget)
Adds a status row |
wtDisplayRow
|
setSubtitleRow(<Array> displayrow)
Adds a subtitle row that indicates the type of objects displayed in each of the columns of display table, and can be used for sorting |
void
|
setTitle(<String|wtWidget> title)
Sets the title, the title is usually a string, but it can also be a wtWidget |
void
|
sort(<Integer> colIndex)
Sorts the table according to the data value order of rows on the colIndex column |
void
|
unsetStatusRow()
Removes the status row |
void
|
unsetSubtitleRow()
Removes the subtitle row |
void
|
unsetTitle()
Clears the title |
Methods inherited from class wtWidget |
setStaticPosition, setRelativePosition, setAbsolutePosition, getAbsolutePosition, getScreenPosition, setPosition, setSize, setVisible, setDisplay, setAlpha, setDraggable, setDragArea, unsetDragArea, setSelectable, setEnabled, isEnabled, isInside, removeSelf, clearAll, setLevel, linkSignal, isAncestorOf, getStyle, setStyle
|
Methods inherited from class wtObject |
startProxy, endProxy, toString, connect, disconnect, emit, setSlot, removeSlot, setSignal, removeSignal, get, set, addDependency, clearLapsedListeners
|
Constructor Detail |
wtDisplay(<wtWidget|DOM_Node> _parent, <String> _width)
_parent
- The parent container for adding this widget to. Can also be a DOM node or null.
_width
- The widget's width as a CSS length quantity.
Method Detail |
{wtWidget} addWidget(<wtDisplayRow> widget)
widget
- The display row to be added
Object base(<wtWidget> _parent, <String> _tagName)
_parent
- The container widget to add this widget to. Can also be a DOM node like document.body. Fill in null if you don't want to immediately add this widget to a container.
_tagName
- The new DOM node's HTML tag
void delDisplayRow(<Integer> rowIdx)
rowIdx
- The row index
Array getValueArray()
wtDisplayRow setDisplayRow(<Array> displayrow)
displayrow
- Array of widgets to be added
wtWidget setSimpleRow(<String|wtWidget> label, <wtWidget|String> widget)
label
- The left side label
widget
- The right side widget
void setSortEnabled(<Array> colList)
colList
- Array for selecting which columns are sortable
wtDisplayRow setStatusRow(<wtWidget|String> widget)
widget
- The widget to be displayed on the status row
wtDisplayRow setSubtitleRow(<Array> displayrow)
displayrow
- List of widgets to be added as the subtitle row
void setTitle(<String|wtWidget> title)
title
- The title
void sort(<Integer> colIndex)
colIndex
- The column index at which row data values are retrieved and compared for sorting
void unsetStatusRow()
void unsetSubtitleRow()
void unsetTitle()
|
WT Toolkit 0.3.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |