qnx.fuse.ui.text.Cursor

Cursor

Properties | Methods


Packageqnx.fuse.ui.text
Classpublic final class Cursor
InheritanceCursor Inheritance Object

The cursor object represents the location of a cursor in a text component.

This value represents the position of the selection handles as well as the input caret.



Class information:
BlackBerry 10 Version:   10.0.0

See also

TextBase



Public Properties

 PropertyDefined By
  beforeNextElement : Boolean
Returns true if the cursor is before an element in the text, or false if the cursor is placed after an element in the text.
Cursor
  position : int
The position of the cursor within the text.
Cursor

Public Methods

 MethodDefined By
  
Cursor(position:int, before:Boolean)
Creates a Cursor instance.
Cursor

Property Detail

beforeNextElement


public var beforeNextElement:Boolean

Returns true if the cursor is before an element in the text, or false if the cursor is placed after an element in the text.

position


public var position:int

The position of the cursor within the text.

Constructor Detail

Cursor()


public function Cursor(position:int, before:Boolean)

Creates a Cursor instance.

Parameters

position:int — The position of the cursor.
before:Boolean — Set to true to place the cursor before the element at the specified position. Set to false to place the cursor at the end of the element.





comments powered by Disqus