public int getSelectedIndex() {
        if (type != MULTIPLE) {
/*
			if (type == IMPLICIT) {
				for (int i = 0; i < size(); i++)
					if (getLabel(i).hasFocus()){
						setSelectedIndex(i, true);
						return i;
					}
			}*/

            for (int i = 0; i < size(); i++)
                if (isSelected(i))
                    return i;
        }
        return -1;
    }