qnx.ui.core.IContainable

IContainable

Properties | Methods


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.

Class information:
PlayBook Tablet OS Version:   1.0.6

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

containment


containment:String

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

  • Containment.BACKGROUND
  • Containment.UNCONTAINED
  • Containment.CONTAINED
  • Containment.DOCK_LEFT
  • Containment.DOCK_TOP
  • Containment.DOCK_RIGHT
  • Containment.DOCK_BOTTOM


Implementation

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

See also

Containment

size


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

sizeUnit
Container.layout()

sizeMode


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:

  • SizeMode.FLOW
  • SizeMode.BOTH

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

SizeMode

sizeUnit


sizeUnit:String

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

  • SizeUnit.PERCENT
  • SizeUnit.PIXELS


Implementation

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

See also

SizeUnit

Method Detail

setPosition()


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.