}
}
});
//verticalPanel.add(slide);
} else if (b instanceof ListBehavior) {
final ListBehavior lb = (ListBehavior) b;
final ListBox comboBox = new ListBox();
comboBox.setStyleName("gwt-BehaviorsPopupPanel");
comboBox.addStyleName("widget");
for (String listValue : lb.getList()) {
comboBox.addItem(listValue);
}
verticalPanel.add(comboBox);
comboBox.setSelectedIndex(lb.indexOfSelection());
comboBox.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
//lb.setSelected(lb.get(comboBox.getSelectedIndex()).toString());
if (lb.indexOfSelection() != comboBox.getSelectedIndex()) {
EnvironmentsController.changeBehavior(obj.getName(), b.getName(), lb.get(comboBox.getSelectedIndex()).toString());
}
}
});