test_class.declarator: beanManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanManager beanManager;
test_class.type: SyncBeanManager
test_class.var_name: beanManager
test_class.declarator: dropDownItemBean
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanDef<SelectorDropDownItem> dropDownItemBean;
test_class.type: SyncBeanDef<SelectorDropDownItem>
test_class.var_name: dropDownItemBean
test_class.declarator: dropDownItem
test_class.modifier: @Mock
test_class.original_string: @Mock
      SelectorDropDownItem dropDownItem;
test_class.type: SelectorDropDownItem
test_class.var_name: dropDownItem
test_class.file: dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/test/java/org/dashbuilder/renderer/client/selector/SelectorDropDownDisplayerTest.java
test_class.identifier: SelectorDropDownDisplayerTest
test_class.superclass: extends AbstractDisplayerTest
test_case.body: @Test
      public void testFormatItemList() {
          DisplayerSettings departmentList = DisplayerSettingsFactory.newSelectorSettings()
                  .dataset(EXPENSES)
                  .group(COLUMN_DEPARTMENT)
                  .column(COLUMN_DEPARTMENT)
                  .column(COLUMN_ID, AggregateFunctionType.COUNT)
                  .filterOn(false, true, true)
                  .multiple(true)
                  .width(90)
                  .buildSettings();
  
          SelectorDropDownDisplayer presenter = createSelectorDisplayer(departmentList);
  
          String result = presenter.formatItemList(Arrays.asList("Sales", "Management", "IT"), 200);
          assertEquals(result, "Sales, Management, IT ");
  
          result = presenter.formatItemList(Arrays.asList("Sales", "Management", "IT"));
          assertEquals(result, "Sales, Management, IT ");
  
          result = presenter.formatItemList(Arrays.asList("Sales", "Management", "IT"), 150);
          assertEquals(result, "Sales, Managemen...");
  
          result = presenter.formatItemList(Arrays.asList("Sales", "Management", "IT"), 130);
          assertEquals(result, "Sales, Managem...");
  
          result = presenter.formatItemList(Arrays.asList("Sales", "Management", "IT"), 60);
          assertEquals(result, "Sales ...");
  
          result = presenter.formatItemList(Arrays.asList("Sales", "Management", "IT"), 10);
          assertEquals(result, "S...");
      }
test_case.class_method_signature: SelectorDropDownDisplayerTest.testFormatItemList()
test_case.full_signature: @Test public void testFormatItemList()
test_case.identifier: testFormatItemList
test_case.invocations: buildSettings width multiple filterOn column column group dataset newSelectorSettings createSelectorDisplayer formatItemList asList assertEquals formatItemList asList assertEquals formatItemList asList assertEquals formatItemList asList assertEquals formatItemList asList assertEquals formatItemList asList assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFormatItemList()
focal_class.declarator: view
focal_class.modifier: protected
focal_class.original_string: protected View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: filterOn = false
focal_class.modifier: protected
focal_class.original_string: protected boolean filterOn = false;
focal_class.type: boolean
focal_class.var_name: filterOn
focal_class.declarator: multipleSelections = false
focal_class.modifier: protected
focal_class.original_string: protected boolean multipleSelections = false;
focal_class.type: boolean
focal_class.var_name: multipleSelections
focal_class.declarator: beanManager
focal_class.modifier: protected
focal_class.original_string: protected SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.declarator: itemCollection = new HashSet<>()
focal_class.modifier: protected
focal_class.original_string: protected Set<SelectorDropDownItem> itemCollection = new HashSet<>();
focal_class.type: Set<SelectorDropDownItem>
focal_class.var_name: itemCollection
focal_class.file: dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/selector/SelectorDropDownDisplayer.java
focal_class.identifier: SelectorDropDownDisplayer
focal_class.class_method_signature: SelectorDropDownDisplayer.SelectorDropDownDisplayer(View view, SyncBeanManager beanManager)
focal_class.full_signature: @Inject public  SelectorDropDownDisplayer(View view, SyncBeanManager beanManager)
focal_class.identifier: SelectorDropDownDisplayer
focal_class.modifiers: @Inject public
focal_class.parameters: (View view, SyncBeanManager beanManager)
focal_class.signature:  SelectorDropDownDisplayer(View view, SyncBeanManager beanManager)
focal_class.class_method_signature: SelectorDropDownDisplayer.getView()
focal_class.full_signature: @Override public View getView()
focal_class.identifier: getView
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: View
focal_class.signature: View getView()
focal_class.class_method_signature: SelectorDropDownDisplayer.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: SelectorDropDownDisplayer.clearItems()
focal_class.full_signature: protected void clearItems()
focal_class.identifier: clearItems
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearItems()
focal_class.class_method_signature: SelectorDropDownDisplayer.resetItems()
focal_class.full_signature: protected void resetItems()
focal_class.identifier: resetItems
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetItems()
focal_class.class_method_signature: SelectorDropDownDisplayer.createDisplayerConstraints()
focal_class.full_signature: @Override public DisplayerConstraints createDisplayerConstraints()
focal_class.identifier: createDisplayerConstraints
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DisplayerConstraints
focal_class.signature: DisplayerConstraints createDisplayerConstraints()
focal_class.class_method_signature: SelectorDropDownDisplayer.beforeDataSetLookup()
focal_class.full_signature: @Override protected void beforeDataSetLookup()
focal_class.identifier: beforeDataSetLookup
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void beforeDataSetLookup()
focal_class.class_method_signature: SelectorDropDownDisplayer.createVisualization()
focal_class.full_signature: @Override protected void createVisualization()
focal_class.identifier: createVisualization
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createVisualization()
focal_class.class_method_signature: SelectorDropDownDisplayer.updateVisualization()
focal_class.full_signature: @Override protected void updateVisualization()
focal_class.identifier: updateVisualization
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateVisualization()
focal_class.class_method_signature: SelectorDropDownDisplayer.getFirstColumnId()
focal_class.full_signature: public String getFirstColumnId()
focal_class.identifier: getFirstColumnId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFirstColumnId()
focal_class.class_method_signature: SelectorDropDownDisplayer.getFirstColumnName()
focal_class.full_signature: public String getFirstColumnName()
focal_class.identifier: getFirstColumnName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFirstColumnName()
focal_class.class_method_signature: SelectorDropDownDisplayer.onItemSelected(SelectorDropDownItem item)
focal_class.full_signature: protected void onItemSelected(SelectorDropDownItem item)
focal_class.identifier: onItemSelected
focal_class.modifiers: protected
focal_class.parameters: (SelectorDropDownItem item)
focal_class.return: void
focal_class.signature: void onItemSelected(SelectorDropDownItem item)
focal_class.class_method_signature: SelectorDropDownDisplayer.onItemReset(SelectorDropDownItem item)
focal_class.full_signature: protected void onItemReset(SelectorDropDownItem item)
focal_class.identifier: onItemReset
focal_class.modifiers: protected
focal_class.parameters: (SelectorDropDownItem item)
focal_class.return: void
focal_class.signature: void onItemReset(SelectorDropDownItem item)
focal_class.class_method_signature: SelectorDropDownDisplayer.showSelectedItems(List<Integer> currentFilter)
focal_class.full_signature: protected void showSelectedItems(List<Integer> currentFilter)
focal_class.identifier: showSelectedItems
focal_class.modifiers: protected
focal_class.parameters: (List<Integer> currentFilter)
focal_class.return: void
focal_class.signature: void showSelectedItems(List<Integer> currentFilter)
focal_class.class_method_signature: SelectorDropDownDisplayer.formatItemList(List<String> itemList)
focal_class.full_signature: public String formatItemList(List<String> itemList)
focal_class.identifier: formatItemList
focal_class.modifiers: public
focal_class.parameters: (List<String> itemList)
focal_class.return: String
focal_class.signature: String formatItemList(List<String> itemList)
focal_class.class_method_signature: SelectorDropDownDisplayer.formatItemList(List<String> itemList, int maxWidth)
focal_class.full_signature: public String formatItemList(List<String> itemList, int maxWidth)
focal_class.identifier: formatItemList
focal_class.modifiers: public
focal_class.parameters: (List<String> itemList, int maxWidth)
focal_class.return: String
focal_class.signature: String formatItemList(List<String> itemList, int maxWidth)
focal_class.class_method_signature: SelectorDropDownDisplayer.onResetSelections()
focal_class.full_signature:  void onResetSelections()
focal_class.identifier: onResetSelections
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onResetSelections()
focal_class.superclass: extends AbstractErraiDisplayer<SelectorDropDownDisplayer.View>
focal_method.body: public String formatItemList(List<String> itemList) {
          StringBuffer out = new StringBuffer();
          for (String item : itemList) {
              if (out.length() > 0) {
                  out.append(", ");
              }
              out.append(item);
          }
          return out.toString() + " ";
      }
focal_method.class_method_signature: SelectorDropDownDisplayer.formatItemList(List<String> itemList)
focal_method.full_signature: public String formatItemList(List<String> itemList)
focal_method.identifier: formatItemList
focal_method.invocations: length append append toString
focal_method.modifiers: public
focal_method.parameters: (List<String> itemList)
focal_method.return: String
focal_method.signature: String formatItemList(List<String> itemList)