private void selectUser(final String userEmail) { if (userEmail != null) { for (int i = 0; i < users.getItemCount(); i++) { if (users.getValue(i).equalsIgnoreCase(userEmail)) { users.setSelectedIndex(i); break; } } } userChanged(); }
private boolean isConfigListEmpty() { return configList.getItemCount() == 0; }
private void selectLastConfig() { int lastIndex = configList.getItemCount() - 1; configList.setSelectedIndex(lastIndex); }