Class: $.CharacterFactory
- Inherits:
-
WatchUi.PickerFactory
-
WatchUi.PickerFactory
-
Overview
Factory that controls which characters can be picked
Constant Summary
Constant Variables
| Type | Name | Value | Since | Description |
|---|---|---|---|---|
| Type | DONE | -1 |
Instance Member Summary collapse
- _addOk as Lang.Boolean
- _characterSet as Lang.String
Instance Method Summary collapse
-
getDrawable(index as Lang.Number, selected as Lang.Boolean) as WatchUi.Drawable or Null
Generate a Drawable instance for an item.
-
getIndex(value as Lang.String) as Lang.Number or Null
Get the index of a character item.
-
getSize() as Lang.Number
Get the number of picker items.
-
getValue(index as Lang.Number) as Lang.Object or Null
Get the value of the item at the given index.
-
initialize(characterSet as Lang.String, addOk as Lang.Boolean)
Constructor.
-
isDone(value as Lang.String or Lang.Number) as Lang.Boolean
Get whether the user selected OK and is done picking.
Instance Attribute Details
var _addOk as Lang.Boolean
var _characterSet as Lang.String
Instance Method Details
getDrawable(index as Lang.Number, selected as Lang.Boolean) as WatchUi.Drawable or Null
Generate a Drawable instance for an item
getIndex(value as Lang.String) as Lang.Number or Null
Get the index of a character item
getSize() as Lang.Number
Get the number of picker items
getValue(index as Lang.Number) as Lang.Object or Null
Get the value of the item at the given index
initialize(characterSet as Lang.String, addOk as Lang.Boolean)
Constructor
isDone(value as Lang.String or Lang.Number) as Lang.Boolean
Get whether the user selected OK and is done picking