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: dataColumnDefDriver
test_class.modifier: @Mock
test_class.original_string: @Mock DataColumnDefDriver dataColumnDefDriver;
test_class.type: DataColumnDefDriver
test_class.var_name: dataColumnDefDriver
test_class.declarator: columnsChangedEvent
test_class.modifier: @Mock
test_class.original_string: @Mock EventSourceMock<ColumnsChangedEvent> columnsChangedEvent;
test_class.type: EventSourceMock<ColumnsChangedEvent>
test_class.var_name: columnsChangedEvent
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock ColumnListEditor.View view;
test_class.type: ColumnListEditor.View
test_class.var_name: view
test_class.declarator: columnDefEditorSyncBeanDef
test_class.modifier: @Mock
test_class.original_string: @Mock SyncBeanDef<DataColumnDefEditor> columnDefEditorSyncBeanDef;
test_class.type: SyncBeanDef<DataColumnDefEditor>
test_class.var_name: columnDefEditorSyncBeanDef
test_class.declarator: dataColumnDefEditor
test_class.modifier: @Mock
test_class.original_string: @Mock DataColumnDefEditor dataColumnDefEditor;
test_class.type: DataColumnDefEditor
test_class.var_name: dataColumnDefEditor
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private ColumnListEditor presenter;
test_class.type: ColumnListEditor
test_class.var_name: presenter
test_class.declarator: listEditor = mock(ListEditor.class)
test_class.modifier: final
test_class.original_string: final ListEditor<DataColumnDef, org.dashbuilder.dataset.client.editor.DataColumnDefEditor> listEditor = mock(ListEditor.class);
test_class.type: ListEditor<DataColumnDef, org.dashbuilder.dataset.client.editor.DataColumnDefEditor>
test_class.var_name: listEditor
test_class.declarator: col1
test_class.modifier: @Mock
test_class.original_string: @Mock DataColumnDef col1;
test_class.type: DataColumnDef
test_class.var_name: col1
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditorTest.java
test_class.identifier: ColumnListEditorTest
test_case.body: @Test
      public void testOnValueUnRestricted() {
          final String value = "col1";
          presenter.restrictedColumns.add("col1");
          final DataColumnDef col2 = mock(DataColumnDef.class);
          when(col2.getId()).thenReturn("col2");
          when(col2.getColumnType()).thenReturn(ColumnType.LABEL);
          presenter.listEditor.getList().add(col2);
          presenter.onValueUnRestricted(value);
          assertTrue(presenter.restrictedColumns.isEmpty());
          verify(dataColumnDefEditor, times(1)).isEditMode(true);
          verify(view, times(1)).insert(anyInt(), any(DataColumnDefEditor.View.class), anyBoolean(), anyBoolean(), anyString());
          verify(view, times(1)).remove(anyInt());
          verify(view, times(0)).init(presenter);
          verify(view, times(0)).clear();
      }
test_case.class_method_signature: ColumnListEditorTest.testOnValueUnRestricted()
test_case.full_signature: @Test public void testOnValueUnRestricted()
test_case.identifier: testOnValueUnRestricted
test_case.invocations: add mock thenReturn when getId thenReturn when getColumnType add getList onValueUnRestricted assertTrue isEmpty isEditMode verify times insert verify times anyInt any anyBoolean anyBoolean anyString remove verify times anyInt init verify times clear verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnValueUnRestricted()
focal_class.declarator: beanManager
focal_class.original_string: SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.declarator: dataColumnDefDriver
focal_class.original_string: DataColumnDefDriver dataColumnDefDriver;
focal_class.type: DataColumnDefDriver
focal_class.var_name: dataColumnDefDriver
focal_class.declarator: columnsChangedEvent
focal_class.original_string: Event<ColumnsChangedEvent> columnsChangedEvent;
focal_class.type: Event<ColumnsChangedEvent>
focal_class.var_name: columnsChangedEvent
focal_class.declarator: view
focal_class.modifier: public
focal_class.original_string: public View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: listEditor
focal_class.original_string: ListEditor<DataColumnDef, DataColumnDefEditor> listEditor;
focal_class.type: ListEditor<DataColumnDef, DataColumnDefEditor>
focal_class.var_name: listEditor
focal_class.declarator: acceptableColumns
focal_class.original_string: List<DataColumnDef> acceptableColumns;
focal_class.type: List<DataColumnDef>
focal_class.var_name: acceptableColumns
focal_class.declarator: restrictedColumns = new LinkedList<String>()
focal_class.modifier: final
focal_class.original_string: final List<String> restrictedColumns = new LinkedList<String>();
focal_class.type: List<String>
focal_class.var_name: restrictedColumns
focal_class.declarator: providerType
focal_class.original_string: DataSetProviderType providerType;
focal_class.type: DataSetProviderType
focal_class.var_name: providerType
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java
focal_class.identifier: ColumnListEditor
focal_class.interfaces: implements IsWidget, org.dashbuilder.dataset.client.editor.ColumnListEditor
focal_class.class_method_signature: ColumnListEditor.ColumnListEditor(final SyncBeanManager beanManager,
                              final DataColumnDefDriver dataColumnDefDriver,
                              final Event<ColumnsChangedEvent> columnsChangedEvent,
                              final View view)
focal_class.full_signature: @Inject public  ColumnListEditor(final SyncBeanManager beanManager,
                              final DataColumnDefDriver dataColumnDefDriver,
                              final Event<ColumnsChangedEvent> columnsChangedEvent,
                              final View view)
focal_class.identifier: ColumnListEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (final SyncBeanManager beanManager,
                              final DataColumnDefDriver dataColumnDefDriver,
                              final Event<ColumnsChangedEvent> columnsChangedEvent,
                              final View view)
focal_class.signature:  ColumnListEditor(final SyncBeanManager beanManager,
                              final DataColumnDefDriver dataColumnDefDriver,
                              final Event<ColumnsChangedEvent> columnsChangedEvent,
                              final View view)
focal_class.class_method_signature: ColumnListEditor.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: ColumnListEditor.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: ColumnListEditor.setAcceptableValues(final List<DataColumnDef> acceptableValues)
focal_class.full_signature: @Override public void setAcceptableValues(final List<DataColumnDef> acceptableValues)
focal_class.identifier: setAcceptableValues
focal_class.modifiers: @Override public
focal_class.parameters: (final List<DataColumnDef> acceptableValues)
focal_class.return: void
focal_class.signature: void setAcceptableValues(final List<DataColumnDef> acceptableValues)
focal_class.class_method_signature: ColumnListEditor.onValueRestricted(final String value)
focal_class.full_signature: @Override public void onValueRestricted(final String value)
focal_class.identifier: onValueRestricted
focal_class.modifiers: @Override public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void onValueRestricted(final String value)
focal_class.class_method_signature: ColumnListEditor.onValueUnRestricted(final String value)
focal_class.full_signature: @Override public void onValueUnRestricted(final String value)
focal_class.identifier: onValueUnRestricted
focal_class.modifiers: @Override public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void onValueUnRestricted(final String value)
focal_class.class_method_signature: ColumnListEditor.setProviderType(final DataSetProviderType type)
focal_class.full_signature: @Override public void setProviderType(final DataSetProviderType type)
focal_class.identifier: setProviderType
focal_class.modifiers: @Override public
focal_class.parameters: (final DataSetProviderType type)
focal_class.return: void
focal_class.signature: void setProviderType(final DataSetProviderType type)
focal_class.class_method_signature: ColumnListEditor.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: ColumnListEditor.createEditorForTraversal()
focal_class.full_signature: @Override public DataColumnDefEditor createEditorForTraversal()
focal_class.identifier: createEditorForTraversal
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DataColumnDefEditor
focal_class.signature: DataColumnDefEditor createEditorForTraversal()
focal_class.class_method_signature: ColumnListEditor.getPathElement(final DataColumnDefEditor subEditor)
focal_class.full_signature: @Override public String getPathElement(final DataColumnDefEditor subEditor)
focal_class.identifier: getPathElement
focal_class.modifiers: @Override public
focal_class.parameters: (final DataColumnDefEditor subEditor)
focal_class.return: String
focal_class.signature: String getPathElement(final DataColumnDefEditor subEditor)
focal_class.class_method_signature: ColumnListEditor.setEditorChain(final EditorChain<DataColumnDef, DataColumnDefEditor> chain)
focal_class.full_signature: @Override public void setEditorChain(final EditorChain<DataColumnDef, DataColumnDefEditor> chain)
focal_class.identifier: setEditorChain
focal_class.modifiers: @Override public
focal_class.parameters: (final EditorChain<DataColumnDef, DataColumnDefEditor> chain)
focal_class.return: void
focal_class.signature: void setEditorChain(final EditorChain<DataColumnDef, DataColumnDefEditor> chain)
focal_class.class_method_signature: ColumnListEditor.setDelegate(final EditorDelegate<List<DataColumnDef>> delegate)
focal_class.full_signature: @Override public void setDelegate(final EditorDelegate<List<DataColumnDef>> delegate)
focal_class.identifier: setDelegate
focal_class.modifiers: @Override public
focal_class.parameters: (final EditorDelegate<List<DataColumnDef>> delegate)
focal_class.return: void
focal_class.signature: void setDelegate(final EditorDelegate<List<DataColumnDef>> delegate)
focal_class.class_method_signature: ColumnListEditor.showErrors(final List<EditorError> errors)
focal_class.full_signature: @Override public void showErrors(final List<EditorError> errors)
focal_class.identifier: showErrors
focal_class.modifiers: @Override public
focal_class.parameters: (final List<EditorError> errors)
focal_class.return: void
focal_class.signature: void showErrors(final List<EditorError> errors)
focal_class.class_method_signature: ColumnListEditor.flush()
focal_class.full_signature: @Override public void flush()
focal_class.identifier: flush
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: ColumnListEditor.onPropertyChange(final String... paths)
focal_class.full_signature: @Override public void onPropertyChange(final String... paths)
focal_class.identifier: onPropertyChange
focal_class.modifiers: @Override public
focal_class.parameters: (final String... paths)
focal_class.return: void
focal_class.signature: void onPropertyChange(final String... paths)
focal_class.class_method_signature: ColumnListEditor.setValue(final List<DataColumnDef> value)
focal_class.full_signature: @Override public void setValue(final List<DataColumnDef> value)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (final List<DataColumnDef> value)
focal_class.return: void
focal_class.signature: void setValue(final List<DataColumnDef> value)
focal_class.class_method_signature: ColumnListEditor.onColumnSelect(final int index, final boolean selected)
focal_class.full_signature:  void onColumnSelect(final int index, final boolean selected)
focal_class.identifier: onColumnSelect
focal_class.parameters: (final int index, final boolean selected)
focal_class.return: void
focal_class.signature: void onColumnSelect(final int index, final boolean selected)
focal_class.class_method_signature: ColumnListEditor.replace(final int index, 
                           final org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor columnEditor,
                           final boolean selected, final boolean enabled, final String altText)
focal_class.full_signature: private void replace(final int index, 
                           final org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor columnEditor,
                           final boolean selected, final boolean enabled, final String altText)
focal_class.identifier: replace
focal_class.modifiers: private
focal_class.parameters: (final int index, 
                           final org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor columnEditor,
                           final boolean selected, final boolean enabled, final String altText)
focal_class.return: void
focal_class.signature: void replace(final int index, 
                           final org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor columnEditor,
                           final boolean selected, final boolean enabled, final String altText)
focal_class.class_method_signature: ColumnListEditor.getAvailableColumnIndex(final String id)
focal_class.full_signature: private int getAvailableColumnIndex(final String id)
focal_class.identifier: getAvailableColumnIndex
focal_class.modifiers: private
focal_class.parameters: (final String id)
focal_class.return: int
focal_class.signature: int getAvailableColumnIndex(final String id)
focal_class.class_method_signature: ColumnListEditor.createDataColumnDefEditorSource()
focal_class.full_signature:  DataColumnDefEditorSource createDataColumnDefEditorSource()
focal_class.identifier: createDataColumnDefEditorSource
focal_class.parameters: ()
focal_class.return: DataColumnDefEditorSource
focal_class.signature: DataColumnDefEditorSource createDataColumnDefEditorSource()
focal_class.class_method_signature: ColumnListEditor.checkSingleColumnEditorDisabled()
focal_class.full_signature: private boolean checkSingleColumnEditorDisabled()
focal_class.identifier: checkSingleColumnEditorDisabled
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean checkSingleColumnEditorDisabled()
focal_class.class_method_signature: ColumnListEditor.checkMultipleColumnsEditorEnabled()
focal_class.full_signature: private boolean checkMultipleColumnsEditorEnabled()
focal_class.identifier: checkMultipleColumnsEditorEnabled
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean checkMultipleColumnsEditorEnabled()
focal_class.class_method_signature: ColumnListEditor.setEditorEnabled(final String columnId, final boolean enabled, final String altText)
focal_class.full_signature: private void setEditorEnabled(final String columnId, final boolean enabled, final String altText)
focal_class.identifier: setEditorEnabled
focal_class.modifiers: private
focal_class.parameters: (final String columnId, final boolean enabled, final String altText)
focal_class.return: void
focal_class.signature: void setEditorEnabled(final String columnId, final boolean enabled, final String altText)
focal_class.class_method_signature: ColumnListEditor.setEditorEnabled(final int index, final boolean enabled, final String altText)
focal_class.full_signature: private void setEditorEnabled(final int index, final boolean enabled, final String altText)
focal_class.identifier: setEditorEnabled
focal_class.modifiers: private
focal_class.parameters: (final int index, final boolean enabled, final String altText)
focal_class.return: void
focal_class.signature: void setEditorEnabled(final int index, final boolean enabled, final String altText)
focal_class.class_method_signature: ColumnListEditor.setEditorEnabled(org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor _e, final boolean enabled, final String altText)
focal_class.full_signature: private void setEditorEnabled(org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor _e, final boolean enabled, final String altText)
focal_class.identifier: setEditorEnabled
focal_class.modifiers: private
focal_class.parameters: (org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor _e, final boolean enabled, final String altText)
focal_class.return: void
focal_class.signature: void setEditorEnabled(org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor _e, final boolean enabled, final String altText)
focal_class.class_method_signature: ColumnListEditor.doSetOriginalColumnType(final String cId, final DataColumnDefEditor editor)
focal_class.full_signature: private void doSetOriginalColumnType(final String cId, final DataColumnDefEditor editor)
focal_class.identifier: doSetOriginalColumnType
focal_class.modifiers: private
focal_class.parameters: (final String cId, final DataColumnDefEditor editor)
focal_class.return: void
focal_class.signature: void doSetOriginalColumnType(final String cId, final DataColumnDefEditor editor)
focal_class.class_method_signature: ColumnListEditor.getEditor(final String columnId)
focal_class.full_signature: private org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor getEditor(final String columnId)
focal_class.identifier: getEditor
focal_class.modifiers: private
focal_class.parameters: (final String columnId)
focal_class.return: org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor
focal_class.signature: org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor getEditor(final String columnId)
focal_class.class_method_signature: ColumnListEditor.createColumnEditor()
focal_class.full_signature: private org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor createColumnEditor()
focal_class.identifier: createColumnEditor
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor
focal_class.signature: org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor createColumnEditor()
focal_class.class_method_signature: ColumnListEditor.createDummyColumnEditor(final DataColumnDef def)
focal_class.full_signature: private org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor createDummyColumnEditor(final DataColumnDef def)
focal_class.identifier: createDummyColumnEditor
focal_class.modifiers: private
focal_class.parameters: (final DataColumnDef def)
focal_class.return: org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor
focal_class.signature: org.dashbuilder.client.widgets.dataset.editor.column.DataColumnDefEditor createDummyColumnEditor(final DataColumnDef def)
focal_method.body: @Override
      public void onValueUnRestricted(final String value) {
          this.restrictedColumns.remove(value);
          
          // Check single column used in data set -> it cannot be unselected.
          if (listEditor.getList().size() == 1) {
              setEditorEnabled(0 ,false, DataSetEditorConstants.INSTANCE.dataSetMustHaveAtLeastOneColumn());
          } else {
              setEditorEnabled(value, true, null);
          }
      }
focal_method.class_method_signature: ColumnListEditor.onValueUnRestricted(final String value)
focal_method.full_signature: @Override public void onValueUnRestricted(final String value)
focal_method.identifier: onValueUnRestricted
focal_method.invocations: remove size getList setEditorEnabled dataSetMustHaveAtLeastOneColumn setEditorEnabled
focal_method.modifiers: @Override public
focal_method.parameters: (final String value)
focal_method.return: void
focal_method.signature: void onValueUnRestricted(final String value)