test_class.declarator: valueChangeEvent
test_class.modifier: @Mock
test_class.original_string: @Mock EventSourceMock<ValueChangeEvent<String>> valueChangeEvent;
test_class.type: EventSourceMock<ValueChangeEvent<String>>
test_class.var_name: valueChangeEvent
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock DataSetDefRefreshIntervalEditor.View view;
test_class.type: DataSetDefRefreshIntervalEditor.View
test_class.var_name: view
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private DataSetDefRefreshIntervalEditor presenter;
test_class.type: DataSetDefRefreshIntervalEditor
test_class.var_name: presenter
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/attributes/DataSetDefRefreshIntervalEditorTest.java
test_class.identifier: DataSetDefRefreshIntervalEditorTest
test_case.body: @Test
      public void testInit() {
          presenter.init();
          verify(view, times(1)).init(presenter);
          verify(view, times(6)).addIntervalTypeItem(anyString());
          verify(view, times(0)).addHelpContent(anyString(), anyString(), any(Placement.class));
          verify(view, times(0)).setSelectedIntervalType(anyInt());
          verify(view, times(0)).getSelectedIntervalTypeIndex();
          verify(view, times(0)).setQuantity(anyDouble());
          verify(view, times(0)).getQuantity();
          verify(view, times(0)).setEnabled(anyBoolean());
      }
test_case.class_method_signature: DataSetDefRefreshIntervalEditorTest.testInit()
test_case.full_signature: @Test public void testInit()
test_case.identifier: testInit
test_case.invocations: init init verify times addIntervalTypeItem verify times anyString addHelpContent verify times anyString anyString any setSelectedIntervalType verify times anyInt getSelectedIntervalTypeIndex verify times setQuantity verify times anyDouble getQuantity verify times setEnabled verify times anyBoolean
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInit()
focal_class.declarator: DEFAULT_INTERVAL_TYPE = DateIntervalType.HOUR
focal_class.modifier: private static final
focal_class.original_string: private static final DateIntervalType DEFAULT_INTERVAL_TYPE = DateIntervalType.HOUR;
focal_class.type: DateIntervalType
focal_class.var_name: DEFAULT_INTERVAL_TYPE
focal_class.declarator: ALLOWED_TYPES = Arrays.asList(
              DateIntervalType.SECOND,
              DateIntervalType.MINUTE,
              DateIntervalType.HOUR,
              DateIntervalType.DAY,
              DateIntervalType.MONTH,
              DateIntervalType.YEAR)
focal_class.modifier: private static
focal_class.original_string: private static List<DateIntervalType> ALLOWED_TYPES = Arrays.asList(
              DateIntervalType.SECOND,
              DateIntervalType.MINUTE,
              DateIntervalType.HOUR,
              DateIntervalType.DAY,
              DateIntervalType.MONTH,
              DateIntervalType.YEAR);
focal_class.type: List<DateIntervalType>
focal_class.var_name: ALLOWED_TYPES
focal_class.declarator: valueChangeEvent
focal_class.original_string: Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent;
focal_class.type: Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>>
focal_class.var_name: valueChangeEvent
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.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/attributes/DataSetDefRefreshIntervalEditor.java
focal_class.identifier: DataSetDefRefreshIntervalEditor
focal_class.interfaces: implements IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefRefreshIntervalEditor
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.DataSetDefRefreshIntervalEditor(final View view,
                                             final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent)
focal_class.full_signature: @Inject public  DataSetDefRefreshIntervalEditor(final View view,
                                             final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent)
focal_class.identifier: DataSetDefRefreshIntervalEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (final View view,
                                             final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent)
focal_class.signature:  DataSetDefRefreshIntervalEditor(final View view,
                                             final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent)
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.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: DataSetDefRefreshIntervalEditor.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: DataSetDefRefreshIntervalEditor.addHelpContent(final String title, final String content, final Placement placement)
focal_class.full_signature: public void addHelpContent(final String title, final String content, final Placement placement)
focal_class.identifier: addHelpContent
focal_class.modifiers: public
focal_class.parameters: (final String title, final String content, final Placement placement)
focal_class.return: void
focal_class.signature: void addHelpContent(final String title, final String content, final Placement placement)
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.setEnabled(final boolean isEnabled)
focal_class.full_signature: @Override public void setEnabled(final boolean isEnabled)
focal_class.identifier: setEnabled
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean isEnabled)
focal_class.return: void
focal_class.signature: void setEnabled(final boolean isEnabled)
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.setValue(final String value)
focal_class.full_signature: @Override public void setValue(final String value)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (final String value)
focal_class.return: void
focal_class.signature: void setValue(final String value)
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.getValue()
focal_class.full_signature: @Override public String getValue()
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getValue()
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.getSelectedIntervalType()
focal_class.full_signature: private DateIntervalType getSelectedIntervalType()
focal_class.identifier: getSelectedIntervalType
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: DateIntervalType
focal_class.signature: DateIntervalType getSelectedIntervalType()
focal_class.class_method_signature: DataSetDefRefreshIntervalEditor.getIntervalTypeIndex(DateIntervalType type)
focal_class.full_signature: private int getIntervalTypeIndex(DateIntervalType type)
focal_class.identifier: getIntervalTypeIndex
focal_class.modifiers: private
focal_class.parameters: (DateIntervalType type)
focal_class.return: int
focal_class.signature: int getIntervalTypeIndex(DateIntervalType type)
focal_method.body: @PostConstruct
      public void init() {
          view.init(this);
  
          // List box for available date interval types.
          for (final DateIntervalType dateInterval : ALLOWED_TYPES) {
              final String s = DateIntervalTypeConstants.INSTANCE.getString(dateInterval.name());
              view.addIntervalTypeItem(s);
          }
      }
focal_method.class_method_signature: DataSetDefRefreshIntervalEditor.init()
focal_method.full_signature: @PostConstruct public void init()
focal_method.identifier: init
focal_method.invocations: init getString name addIntervalTypeItem
focal_method.modifiers: @PostConstruct public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void init()