Add a setCurrentIndex(Integer) method