Packageqnx.ui.buttons
Classpublic class LabelPlacement
InheritanceLabelPlacement Inheritance Object

The LabelPlacement class contains constants that define how a label is placed next to a skin or icon. The LabelPlacement class is used by the CheckNox class to position the label text relative to the check box.

The following listing places the text label above the check box control:

     myCheckBox.label = "Disable login";
     myCheckBox.labelPadding = 5;
     myCheckBox.labelPlacement = LabelPlacement.TOP;
     
A check box.

See also

CheckBox


Public Constants
 ConstantDefined By
  BOTTOM : String = labelPlacementBottom
[static] Position the label below the skin or icon.
LabelPlacement
  LEFT : String = labelPlacementLeft
[static] Position the label to the left side of the skin or icon.
LabelPlacement
  RIGHT : String = labelPlacementRight
[static] Position the label to the right side of the skin or icon.
LabelPlacement
  TOP : String = labelPlacementTop
[static] Position the label above the skin or icon.
LabelPlacement
Constant Detail
BOTTOMConstant
public static const BOTTOM:String = labelPlacementBottom

Position the label below the skin or icon.

LEFTConstant 
public static const LEFT:String = labelPlacementLeft

Position the label to the left side of the skin or icon.

RIGHTConstant 
public static const RIGHT:String = labelPlacementRight

Position the label to the right side of the skin or icon.

TOPConstant 
public static const TOP:String = labelPlacementTop

Position the label above the skin or icon.