up: ZWT     index Zimbu documentation

CLASS ZWT.TableRow EXTENDS ZWT.UIObject @public

summary

     

A row in the table.

The number of entries is flexible, each row can have a different size.

NEW() @file  Create a new, empty table row.
$ToString() string @file  Return "Row(item, item, ...)"
$Size() int @file  Return the size of the row, the number of entries.
$resize(len) @file  Resize the row to be len entries long.
$addCell() @file  Add an empty cell to the row.
$deleteCell(idx) @file  Delete cell idx from the row.
$setWidget(idx, widget) @file  Set the widget at position idx. Resizes the row as needed.
$getWidget(colIdx) ZWT.Widget @file  Get the Widget at column colIdx.
$setColStyle(colIdx, style) @file  Set the style for the widget at column colIdx
 
Inherited from ZWT.UIObject:
ZWT.Element  $elem @public  The HTML element for this Item.
 
$setStyle(style) @public  Set the main Style for this UIObject to style.
$setStyleList(styles) @public  Set the list of Styles for this UIObject to styles.
$addStyle(style) @public  Add style to this UIObject, keeping previously set ones.
$removeStyle(style) @public  Remove style from this UIObject.
$getStyle() ZWT.Style @public  Return the main Style for this UIObject.
$getStyleList() list<ZWT.Style> @public  Return the list of Styles for this UIObject.
$getWidth() int @public  Return the width of the Element.
$getHeight() int @public  Return the height of the Element.
$getTop() int @public  Return the vertical position of the Element in the page
$getTop(container) int @public  Return the vertical position of the Element within container
$getLeft() int @public  Return the horizontal position of the Element in the page
$getLeft(container) int @public  Return the horizontal position of the Element within container
$setHidden(hidden) @public  Set the item to be hidden or displayed.
 

members (alphabetically)

     

PROC NEW() @file

     

Create a new, empty table row.

FUNC $Size() int @file

     

Return the size of the row, the number of entries.

FUNC $ToString() string @file

     

Return "Row(item, item, ...)"

PROC $addCell() @file

     

Add an empty cell to the row.

PROC $deleteCell(int idx) @file

     

Delete cell idx from the row.

FUNC $getWidget(int colIdx) ZWT.Widget @file

     

Get the Widget at column colIdx.

Returns NIL when not found

PROC $resize(int len) @file

     

Resize the row to be len entries long.

PROC $setColStyle(int colIdx, ZWT.Style style) @file

     

Set the style for the widget at column colIdx

Doesn't work well.

PROC $setWidget(int idx, ZWT.Widget widget) @file

     

Set the widget at position idx. Resizes the row as needed.

credits

      The Class hierarchy, generated Javascript and a few other things are based on the Google Web Toolkit. http://code.google.com/webtoolkit/overview.html

license

      Copyright 2009 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0