up: ZWT     index Zimbu documentation

CLASS ZWT.UIObject @abstract @public

summary

     

Lowest level ZWT object. Wraps an HTML Element. Cannot handle events.

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.
 
Known subclasses:
     
 

members (alphabetically)

     

ZWT.Element $elem @public

     

The HTML element for this Item.

PROC $addStyle(ZWT.Style style) @default @public

     

Add style to this UIObject, keeping previously set ones.

When style was already present it is not added again.

FUNC $getHeight() int @default @public

     

Return the height of the Element.

Only works when the Widget is visible.

FUNC $getLeft() int @public

     

Return the horizontal position of the Element in the page

FUNC $getLeft(UIObject container) int @public

     

Return the horizontal position of the Element within container

If the Element is not inside container return -1. If container is NIL this works like getLeft().

FUNC $getStyle() ZWT.Style @public

     

Return the main Style for this UIObject.

When there are multiple styles only the first one is returned. Returns NIL when no style is set.

FUNC $getStyleList() list<ZWT.Style> @public

     

Return the list of Styles for this UIObject.

Returns NIL when no style is set.

FUNC $getTop() int @public

     

Return the vertical position of the Element in the page

FUNC $getTop(UIObject container) int @public

     

Return the vertical position of the Element within container

If the Element is not inside container return -1. If container is NIL this works like getTop().

FUNC $getWidth() int @default @public

     

Return the width of the Element.

Only works when the Widget is visible.

PROC $removeStyle(ZWT.Style style) @default @public

     

Remove style from this UIObject.

When style is not present nothing happens.

PROC $setHidden(bool hidden) @public

     

Set the item to be hidden or displayed.

PROC $setStyle(ZWT.Style style) @default @public

     

Set the main Style for this UIObject to style.

Removes previously set styles. When style is NIL this clears the style.

PROC $setStyleList(list<ZWT.Style> styles) @default @public

     

Set the list of Styles for this UIObject to styles.

Removes any previously set styles. When styles is NIL this clears the style.

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