qnx.fuse.ui.buttons.LabelPlacement

LabelPlacement

Constants | Examples


Packageqnx.fuse.ui.buttons
Classpublic final 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 CheckBox class to position the label text relative to the check box.

Class information:
BlackBerry 10 Version:   10.0.0
Found in:  qnxui.swc

View the examples

See also

CheckBox



Public Constants

 ConstantDefined By
  BOTTOM : String = labelPlacementBottom
[static] Position the label below the skin or icon.
LabelPlacement
  CENTERED : String = labelPlacementCentered
[static] Position the label centered on top of 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

BOTTOM


public static const BOTTOM:String = labelPlacementBottom

Position the label below the skin or icon.

label placed on the bottom

CENTERED


public static const CENTERED:String = labelPlacementCentered

Position the label centered on top of the skin or icon.

LEFT


public static const LEFT:String = labelPlacementLeft

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

label placed on the left

RIGHT


public static const RIGHT:String = labelPlacementRight

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

label placed on the right

TOP


public static const TOP:String = labelPlacementTop

Position the label above the skin or icon.

label placed on the top

Examples

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

myCheckBox.label = "Disable login";
myCheckBox.labelPlacement = LabelPlacement.TOP;
     




comments powered by Disqus