test_class.declarator: columnFilterEditor
test_class.modifier: @Mock
test_class.original_string: @Mock
      ColumnFilterEditor columnFilterEditor;
test_class.type: ColumnFilterEditor
test_class.var_name: columnFilterEditor
test_class.declarator: filterView
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetFilterEditor.View filterView;
test_class.type: DataSetFilterEditor.View
test_class.var_name: filterView
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: columnFilterEditorBeanDef
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanDef<ColumnFilterEditor> columnFilterEditorBeanDef;
test_class.type: SyncBeanDef<ColumnFilterEditor>
test_class.var_name: columnFilterEditorBeanDef
test_class.declarator: metadata
test_class.modifier: @Mock
test_class.original_string: @Mock
      DataSetMetadata metadata;
test_class.type: DataSetMetadata
test_class.var_name: metadata
test_class.declarator: changedEvent
test_class.modifier: @Mock
test_class.original_string: @Mock
      Event<DataSetFilterChangedEvent> changedEvent;
test_class.type: Event<DataSetFilterChangedEvent>
test_class.var_name: changedEvent
test_class.file: dashbuilder-client/dashbuilder-displayer-client/src/test/java/org/dashbuilder/displayer/client/widgets/filter/DataSetFilterEditorTest.java
test_class.identifier: DataSetFilterEditorTest
test_case.body: @Test
      public void testViewInitialization() {
          DataSetFilter filter = new DataSetFilter();
          ColumnFilter filter1 = FilterFactory.equalsTo("column1", "Test");
          filter.addFilterColumn(filter1);
  
          DataSetFilterEditor filterEditor = new DataSetFilterEditor(filterView, beanManager, changedEvent);
          filterEditor.init(filter, metadata);
  
          assertEquals(filterView, filterEditor.view);
          verify(filterView).showNewFilterHome();
          verify(filterView).addColumn("column1");
          verify(filterView).addColumn("column2");
          verify(filterView).addColumn("column3");
          verify(filterView, times(filter.getColumnFilterList().size())).addColumnFilterEditor(any(ColumnFilterEditor.class));
      }
test_case.class_method_signature: DataSetFilterEditorTest.testViewInitialization()
test_case.full_signature: @Test public void testViewInitialization()
test_case.identifier: testViewInitialization
test_case.invocations: equalsTo addFilterColumn init assertEquals showNewFilterHome verify addColumn verify addColumn verify addColumn verify addColumnFilterEditor verify times size getColumnFilterList any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testViewInitialization()
focal_class.declarator: view = null
focal_class.original_string: View view = null;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: filter = null
focal_class.original_string: DataSetFilter filter = null;
focal_class.type: DataSetFilter
focal_class.var_name: filter
focal_class.declarator: metadata = null
focal_class.original_string: DataSetMetadata metadata = null;
focal_class.type: DataSetMetadata
focal_class.var_name: metadata
focal_class.declarator: beanManager
focal_class.original_string: SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.declarator: changeEvent
focal_class.original_string: Event<DataSetFilterChangedEvent> changeEvent;
focal_class.type: Event<DataSetFilterChangedEvent>
focal_class.var_name: changeEvent
focal_class.file: dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/widgets/filter/DataSetFilterEditor.java
focal_class.identifier: DataSetFilterEditor
focal_class.interfaces: implements IsWidget
focal_class.class_method_signature: DataSetFilterEditor.DataSetFilterEditor(View view,
                                 SyncBeanManager beanManager,
                                 Event<DataSetFilterChangedEvent> changeEvent)
focal_class.full_signature: @Inject public  DataSetFilterEditor(View view,
                                 SyncBeanManager beanManager,
                                 Event<DataSetFilterChangedEvent> changeEvent)
focal_class.identifier: DataSetFilterEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (View view,
                                 SyncBeanManager beanManager,
                                 Event<DataSetFilterChangedEvent> changeEvent)
focal_class.signature:  DataSetFilterEditor(View view,
                                 SyncBeanManager beanManager,
                                 Event<DataSetFilterChangedEvent> changeEvent)
focal_class.class_method_signature: DataSetFilterEditor.asWidget()
focal_class.full_signature: @Override public Widget asWidget()
focal_class.identifier: asWidget
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Widget
focal_class.signature: Widget asWidget()
focal_class.class_method_signature: DataSetFilterEditor.getFilter()
focal_class.full_signature: public DataSetFilter getFilter()
focal_class.identifier: getFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetFilter
focal_class.signature: DataSetFilter getFilter()
focal_class.class_method_signature: DataSetFilterEditor.init(DataSetFilter filter, DataSetMetadata metadata)
focal_class.full_signature: public void init(DataSetFilter filter, DataSetMetadata metadata)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (DataSetFilter filter, DataSetMetadata metadata)
focal_class.return: void
focal_class.signature: void init(DataSetFilter filter, DataSetMetadata metadata)
focal_class.class_method_signature: DataSetFilterEditor.onNewFilterStart()
focal_class.full_signature: public void onNewFilterStart()
focal_class.identifier: onNewFilterStart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onNewFilterStart()
focal_class.class_method_signature: DataSetFilterEditor.onNewFilterCancel()
focal_class.full_signature: public void onNewFilterCancel()
focal_class.identifier: onNewFilterCancel
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onNewFilterCancel()
focal_class.class_method_signature: DataSetFilterEditor.onCreateFilter()
focal_class.full_signature: public void onCreateFilter()
focal_class.identifier: onCreateFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onCreateFilter()
focal_class.class_method_signature: DataSetFilterEditor.onColumnFilterChanged(@Observes ColumnFilterChangedEvent event)
focal_class.full_signature: protected void onColumnFilterChanged(@Observes ColumnFilterChangedEvent event)
focal_class.identifier: onColumnFilterChanged
focal_class.modifiers: protected
focal_class.parameters: (@Observes ColumnFilterChangedEvent event)
focal_class.return: void
focal_class.signature: void onColumnFilterChanged(@Observes ColumnFilterChangedEvent event)
focal_class.class_method_signature: DataSetFilterEditor.onColumnFilterDeleted(@Observes final ColumnFilterDeletedEvent event)
focal_class.full_signature: protected void onColumnFilterDeleted(@Observes final ColumnFilterDeletedEvent event)
focal_class.identifier: onColumnFilterDeleted
focal_class.modifiers: protected
focal_class.parameters: (@Observes final ColumnFilterDeletedEvent event)
focal_class.return: void
focal_class.signature: void onColumnFilterDeleted(@Observes final ColumnFilterDeletedEvent event)
focal_method.body: public void init(DataSetFilter filter, DataSetMetadata metadata) {
          this.filter = filter;
          this.metadata = metadata;
          view.showNewFilterHome();
          view.clearColumnSelector();
          if (metadata != null) {
              for (int i = 0; i < metadata.getNumberOfColumns(); i++) {
                  view.addColumn(metadata.getColumnId(i));
              }
          }
  
          view.clearColumnFilterEditors();
          if (filter != null) {
              for (ColumnFilter columnFilter : filter.getColumnFilterList()) {
                  ColumnFilterEditor columnFilterEditor = beanManager.lookupBean(ColumnFilterEditor.class).newInstance();
                  columnFilterEditor.init(metadata, columnFilter);
                  view.addColumnFilterEditor(columnFilterEditor);
              }
          }
      }
focal_method.class_method_signature: DataSetFilterEditor.init(DataSetFilter filter, DataSetMetadata metadata)
focal_method.full_signature: public void init(DataSetFilter filter, DataSetMetadata metadata)
focal_method.identifier: init
focal_method.invocations: showNewFilterHome clearColumnSelector getNumberOfColumns addColumn getColumnId clearColumnFilterEditors getColumnFilterList newInstance lookupBean init addColumnFilterEditor
focal_method.modifiers: public
focal_method.parameters: (DataSetFilter filter, DataSetMetadata metadata)
focal_method.return: void
focal_method.signature: void init(DataSetFilter filter, DataSetMetadata metadata)