Packageqnx.ui.core
Classpublic class ContainerAlign
InheritanceContainerAlign Inheritance Object

The ContainerAlign class defines the align options for children within a Container.

The align property determines the position, or alignment, of each subcomponent in the direction opposite to the flow of the container. In a container with a vertical flow, this specifies the horizontal position (or x coordinate) of the subcomponent, relative to the left edge of the container. Conversely, in a container with a horizontal flow, the alignment specifies the vertical position (or y coordinate) of the component relative to the top edge of the container.

The align property has three values: ContainerAlign.NEAR, ContainerAlign.MID,and ContainerAlign.FAR, where each value represents a position relative to the initial edge of the container. ContainerAlign.NEAR is the closest, ContainerAlign.FAR is the furthest. ContainerAlign.MID is the default.

The following image attempts to show all three alignment positions in a container with a vertical flow:

Opposite direction

See also

Container align property


Public Constants
 ConstantDefined By
  FAR : String = far
[static] A constant used to align the child component to the far side of the container area.
ContainerAlign
  MID : String = mid
[static] A constant used to align the child component to the center of the container area.
ContainerAlign
  NEAR : String = near
[static] A constant used to align the child component to the near side of the container area.
ContainerAlign
Constant Detail
FARConstant
public static const FAR:String = far

A constant used to align the child component to the far side of the container area.

MIDConstant 
public static const MID:String = mid

A constant used to align the child component to the center of the container area.

NEARConstant 
public static const NEAR:String = near

A constant used to align the child component to the near side of the container area.