Class: $.StringPicker

Inherits:
WatchUi.Picker show all

Overview

Picker that allows the user to choose a string

Constant Summary

Constant Variables

Type Name Value Since Description
Type _characterSet "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _curString as Lang.String

var _factory as $.CharacterFactory

var _title as WatchUi.Text

Instance Method Details

addCharacter(character as Lang.String) as Void

Add a character to the end of the title

Parameters:

  • character —

    Character to add

getTitle() as Lang.String

Get the title

Returns:

  • Title string

getTitleLength() as Lang.Number

Get how long the title is

Returns:

  • Length of title

initialize()

Constructor

isDone(value as Lang.String or Lang.Number) as Lang.Boolean

Get whether the user is done picking

Parameters:

  • value —

    Value user selected

Returns:

  • true if user is done, false otherwise

onUpdate(dc as Graphics.Dc) as Void

Update the view

Parameters:

  • dc —

    Device Context

removeCharacter() as Void

Remove the last character from the title


Generated Oct 20, 2026, 8:20:54 AM