#getSelectedItem
or #getSelectedIndex
method.
Use this class as the base for components like color palettes or emoticon
pickers. Use #setContent
to set/change the items in the palette
after construction. See palette.html demo for example usage.