up: ZWT     index Zimbu documentation

CLASS ZWT.TableCell EXTENDS ZWT.UIObject @public

summary

     

A cell in a Table.

It may occupy multiple rows and columns, but we still keep one cell at each table position. The ones that are covered by previous cells have their elem not as a child in the row.

NEW(widget) @file  Create a new cell that contains widget.
$ToString() string @file  Return the result of ToString() on the widget in the cell.
$setWidget(widget) @file  Set the widget in this cell to widget.
 
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(ZWT.Widget widget) @file

     

Create a new cell that contains widget.

FUNC $ToString() string @file

     

Return the result of ToString() on the widget in the cell.

Return NIL if there is no widget in the cell.

PROC $setWidget(ZWT.Widget widget) @file

     

Set the widget in this cell to widget.

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