ListBox* NodeFactory::CreateStringListBox(const List<WHeapString>& strItems, bool isSingleLine/*=true*/) { ListBox* listBox = new ListBox(); listBox->SetDataSource(new StringListDataSource(strItems, isSingleLine)); listBox->Initialize(); return listBox; }
ListBox* NodeFactory::CreateEmptyListBox() { ListBox* listBox = new ListBox(); listBox->Initialize(); return listBox; }
ListBox* NodeFactory::CreateListBox() { ListBox* listBox = new ListBox(StringRef::Empty, ScrollDirection::VerticalFromTop); listBox->Initialize(); return listBox; }