Are there anyway to do that in the current API?
class MenuItem
{
hidden var label;
hidden var value;
hidden var symbol;
function initialize(label, symbol);
function getValue();
function setValue(value);
}
class Menu extends Ui.View
{
// returns a MenuItem
function addItem(label, symbol);
// access the value of the given item
function getValue(symbol);
function setValue(symbol, value);
}
class MenuInputDelegate extends Ui.InputDelegate
{
}