Class: $.WordFactory
- Inherits:
-
WatchUi.PickerFactory
-
WatchUi.PickerFactory
-
Overview
Factory that controls which words can be picked
Instance Member Summary collapse
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 or Lang.Symbol) as Lang.Number
Get the index of an 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(words as Lang.Array<Lang.ResourceId>, options as { :font as Graphics.FontDefinition })
Constructor.
Instance Attribute Details
var _font as Graphics.FontDefinition
var _words as Lang.Array<Lang.ResourceId>
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 or Lang.Symbol) as Lang.Number
Get the index of an 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(words as Lang.Array<Lang.ResourceId>, options as { :font as Graphics.FontDefinition })
Constructor