private KongaList createList() {
KongaListFactory listFactory = ComponentFactories.newKongaListFactory();
listFactory.setVisibleRowCount(4);
listFactory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
ListStyles.normal().makeOver(listFactory);
KongaList list = listFactory.newList();
list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
list.setDefaultAction(new AbstractSelectionAction() {
@Override
public void actionPerformed(ActionEvent e) {
fireActionEvent();
}
});
list.addSelectionListener(new SelectionListener() {
@Override
public void selectionChanged(SelectionChangedEvent evt) {
fireInputChanged();
}