@Override
    protected void afterEnteredFocus(FocusChangeDirection direction) {
        if(items.isEmpty())
            return;
        
        if(direction == FocusChangeDirection.DOWN)
            selectedIndex = 0;
        else if(direction == FocusChangeDirection.UP)
            selectedIndex = items.size() - 1;
    }