Packageqnx.ui.core
Interfacepublic interface IContainable extends ISizeable
Implementors Spacer, UIComponent

The IContainable interface provides the methods and properties that enable definitions for container layout.

See also

Container
Containment


Public Properties
 PropertyDefined By
  containment : String
Specifies how a component is contained within a parent container.
IContainable
  size : Number
Gets or sets the size for this component (as a percentage of the container's size, or in pixels).
IContainable
  sizeMode : String
Gets or sets the size mode for this component.
IContainable
  sizeUnit : String
Gets or sets the unit of measurement for the size property.
IContainable
Public Methods
 MethodDefined By
  
setPosition(x:Number, y:Number):void
Called by the container to set the position of the component relative to the position of the container.
IContainable
 Inherited
setSize(w:Number, h:Number):void
Sets the width and height of the component.
ISizeable
Property Detail
containmentproperty
containment:String

Specifies how a component is contained within a parent container. Possible values are:


Implementation
    public function get containment():String
    public function set containment(value:String):void

See also

sizeproperty 
size:Number

Gets or sets the size for this component (as a percentage of the container's size, or in pixels). This property is used by containers to layout this component in the appropriate direction.

If size is 0, the component is not resized during container layout (it is positioned like any other MovieClip, Sprite or DisplayObject).


Implementation
    public function get size():Number
    public function set size(value:Number):void

See also

sizeModeproperty 
sizeMode:String

Gets or sets the size mode for this component. This property is used by containers when laying out the component. Possible values are:

Note that this property is ignored when size is 0.


Implementation
    public function get sizeMode():String
    public function set sizeMode(value:String):void

See also

sizeUnitproperty 
sizeUnit:String

Gets or sets the unit of measurement for the size property. Possible values are:


Implementation
    public function get sizeUnit():String
    public function set sizeUnit(value:String):void

See also

Method Detail
setPosition()method
public function setPosition(x:Number, y:Number):void

Called by the container to set the position of the component relative to the position of the container.

Parameters

x:Number — The x position in pixels for the component.
 
y:Number — The y position in pixels for the component.