ref #8242 Set max items for dropdown to 10 + sort items
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / descriptiveDataSet / matrix / categorical / CategoricalComboBoxDataProvider.java
index 4985a9a0fff6412069e061b7532777570f411d94..feb256ca93d200502fb754b52339022f5f534215 100644 (file)
@@ -25,7 +25,6 @@ import eu.etaxonomy.taxeditor.editor.descriptiveDataSet.matrix.CharacterMatrix;
 public class CategoricalComboBoxDataProvider implements IComboBoxDataProvider {
 
     private CharacterMatrix matrix;
-    private int maxVisibleItems;
 
     public CategoricalComboBoxDataProvider(CharacterMatrix matrix) {
         super();
@@ -36,11 +35,7 @@ public class CategoricalComboBoxDataProvider implements IComboBoxDataProvider {
     public List<?> getValues(int columnIndex, int rowIndex) {
         Feature feature = matrix.getIndexToCharacterMap().get(columnIndex);
         List<State> supportedStatesForCategoricalFeature = matrix.getSupportedStatesForCategoricalFeature(feature);
-        maxVisibleItems = Math.max(3, Math.min(supportedStatesForCategoricalFeature.size()-1, 10));
         return supportedStatesForCategoricalFeature;
     }
 
-    int getMaxVisibleItems(){
-        return maxVisibleItems;
-    }
 }