public void setSelectedIndex(int selectedIndex) {
int previousSelectedIndex = this.selectedIndex;
if (previousSelectedIndex != selectedIndex) {
Vote vote = tabPaneSelectionListeners.previewSelectedIndexChange(this, selectedIndex);
if (vote == Vote.APPROVE) {
this.selectedIndex = selectedIndex;
tabPaneSelectionListeners.selectedIndexChanged(this, previousSelectedIndex);
} else {