test_class.declarator: HTML_TEMPLATE =
              "<div id=\"${this}\" style=\"background-color:${bgColor}; width:${width}px; height:${height}px; " +
              "margin-top:${marginTop}px; margin-right:${marginRight}px; margin-bottom:${marginBottom}px; margin-left:${marginLeft}px;\">\n" +
              "  <span>${title}</span>\n" +
              "  <span>${value}</span>\n" +
              "</div>"
test_class.modifier: public static final
test_class.original_string: public static final String HTML_TEMPLATE =
              "<div id=\"${this}\" style=\"background-color:${bgColor}; width:${width}px; height:${height}px; " +
              "margin-top:${marginTop}px; margin-right:${marginRight}px; margin-bottom:${marginBottom}px; margin-left:${marginLeft}px;\">\n" +
              "  <span>${title}</span>\n" +
              "  <span>${value}</span>\n" +
              "</div>";
test_class.type: String
test_class.var_name: HTML_TEMPLATE
test_class.declarator: JS_TEMPLATE = "if (${isFilterEnabled}) {  \n" +
              "  var filterOn = ${isFilterOn};\n" +
              "  ${this}.style.cursor=\"pointer\";\n" +
              "  ${this}.onclick = function() {\n" +
              "    filterOn = !filterOn;\n" +
              "    ${this}.style.backgroundColor = filterOn ? \"lightblue\" : \"${bgColor}\";\n" +
              "    ${doFilter};\n" +
              "  };\n" +
              "}"
test_class.modifier: public static final
test_class.original_string: public static final String JS_TEMPLATE = "if (${isFilterEnabled}) {  \n" +
              "  var filterOn = ${isFilterOn};\n" +
              "  ${this}.style.cursor=\"pointer\";\n" +
              "  ${this}.onclick = function() {\n" +
              "    filterOn = !filterOn;\n" +
              "    ${this}.style.backgroundColor = filterOn ? \"lightblue\" : \"${bgColor}\";\n" +
              "    ${doFilter};\n" +
              "  };\n" +
              "}";
test_class.type: String
test_class.var_name: JS_TEMPLATE
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock
      MetricDisplayer.View view;
test_class.type: MetricDisplayer.View
test_class.var_name: view
test_class.declarator: listener
test_class.modifier: @Mock
test_class.original_string: @Mock
      DisplayerListener listener;
test_class.type: DisplayerListener
test_class.var_name: listener
test_class.file: dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/test/java/org/dashbuilder/renderer/client/metric/MetricDisplayerTest.java
test_class.identifier: MetricDisplayerTest
test_class.superclass: extends AbstractDisplayerTest
test_case.body: @Test
      public void testNoData() {
          DisplayerSettings empty = DisplayerSettingsFactory.newMetricSettings()
                  .dataset(EXPENSES)
                  .filter(COLUMN_ID, FilterFactory.isNull())
                  .column(COLUMN_AMOUNT)
                  .title("Title").titleVisible(true)
                  .width(300).height(200)
                  .margins(10, 20, 30, 40)
                  .backgroundColor("FDE8D4")
                  .htmlTemplate(HTML_TEMPLATE)
                  .buildSettings();
  
          when(view.getNoDataString()).thenReturn("0,0");
          MetricDisplayer presenter = createMetricDisplayer(empty);
          MetricDisplayer.View view = presenter.getView();
          presenter.draw();
  
          verify(view, atLeastOnce()).getNoDataString();
          verify(view).setHtml("<div id=\"test_this\" style=\"background-color:#FDE8D4; width:300px; height:200px; " +
                  "margin-top:10px; margin-right:40px; margin-bottom:20px; margin-left:30px;\">\n" +
                  "  <span>Title</span>\n" +
                  "  <span>0,0</span>\n" +
                  "</div>");
      }
test_case.class_method_signature: MetricDisplayerTest.testNoData()
test_case.full_signature: @Test public void testNoData()
test_case.identifier: testNoData
test_case.invocations: buildSettings htmlTemplate backgroundColor margins height width titleVisible title column filter dataset newMetricSettings isNull thenReturn when getNoDataString createMetricDisplayer getView draw getNoDataString verify atLeastOnce setHtml verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNoData()
focal_class.declarator: TEMPLATE_KEYS = Arrays.asList("value.raw", "value", "title",
              "width", "height", "marginTop", "marginBottom", "marginRight", "marginLeft", "bgColor",
              "isFilterEnabled", "isFilterOn", "isEmpty", "doFilter")
focal_class.modifier: public static final
focal_class.original_string: public static final List<String> TEMPLATE_KEYS = Arrays.asList("value.raw", "value", "title",
              "width", "height", "marginTop", "marginBottom", "marginRight", "marginLeft", "bgColor",
              "isFilterEnabled", "isFilterOn", "isEmpty", "doFilter");
focal_class.type: List<String>
focal_class.var_name: TEMPLATE_KEYS
focal_class.declarator: DEFAULT_HTML_TEMPLATE = "<div id=\"${this}\" class=\"card-pf card-pf-accented card-pf-aggregate-status\" " +
              "style=\"background-color:${bgColor}; width:${width}px; height:${height}px; " +
              "margin-top:${marginTop}px; margin-right:${marginRight}px; margin-bottom:${marginBottom}px; margin-left:${marginLeft}px;\">\n" +
              "  <h3>${title}</h3>\n" +
              "  <h2>${value}</h2>\n" +
              "</div>"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_HTML_TEMPLATE = "<div id=\"${this}\" class=\"card-pf card-pf-accented card-pf-aggregate-status\" " +
              "style=\"background-color:${bgColor}; width:${width}px; height:${height}px; " +
              "margin-top:${marginTop}px; margin-right:${marginRight}px; margin-bottom:${marginBottom}px; margin-left:${marginLeft}px;\">\n" +
              "  <h3>${title}</h3>\n" +
              "  <h2>${value}</h2>\n" +
              "</div>";
focal_class.type: String
focal_class.var_name: DEFAULT_HTML_TEMPLATE
focal_class.declarator: DEFAULT_JS_TEMPLATE = "if (${isFilterEnabled}) {  \n" +
              "  var filterOn = false;\n" +
              "  ${this}.style.cursor=\"pointer\";\n" +
              "\n" +
              "  ${this}.onmouseover = function() {\n" +
              "    if (!filterOn) ${this}.style.backgroundColor = \"lightblue\";\n" +
              "  };\n" +
              "  ${this}.onmouseout = function() {\n" +
              "    if (!filterOn) ${this}.style.backgroundColor = \"${bgColor}\";\n" +
              "  };\n" +
              "  ${this}.onclick = function() {\n" +
              "    filterOn = !filterOn;\n" +
              "    ${this}.style.backgroundColor = filterOn ? \"lightblue\" : \"${bgColor}\";\n" +
              "    ${doFilter};\n" +
              "  };\n" +
              "}"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_JS_TEMPLATE = "if (${isFilterEnabled}) {  \n" +
              "  var filterOn = false;\n" +
              "  ${this}.style.cursor=\"pointer\";\n" +
              "\n" +
              "  ${this}.onmouseover = function() {\n" +
              "    if (!filterOn) ${this}.style.backgroundColor = \"lightblue\";\n" +
              "  };\n" +
              "  ${this}.onmouseout = function() {\n" +
              "    if (!filterOn) ${this}.style.backgroundColor = \"${bgColor}\";\n" +
              "  };\n" +
              "  ${this}.onclick = function() {\n" +
              "    filterOn = !filterOn;\n" +
              "    ${this}.style.backgroundColor = filterOn ? \"lightblue\" : \"${bgColor}\";\n" +
              "    ${doFilter};\n" +
              "  };\n" +
              "}";
focal_class.type: String
focal_class.var_name: DEFAULT_JS_TEMPLATE
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: codeBuilder = new StringTemplateBuilder()
focal_class.modifier: protected
focal_class.original_string: protected StringTemplateBuilder codeBuilder = new StringTemplateBuilder();
focal_class.type: StringTemplateBuilder
focal_class.var_name: codeBuilder
focal_class.file: dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/metric/MetricDisplayer.java
focal_class.identifier: MetricDisplayer
focal_class.interfaces: implements HasHtmlTemplate, HasJsTemplate
focal_class.class_method_signature: MetricDisplayer.MetricDisplayer(View view)
focal_class.full_signature: @Inject public  MetricDisplayer(View view)
focal_class.identifier: MetricDisplayer
focal_class.modifiers: @Inject public
focal_class.parameters: (View view)
focal_class.signature:  MetricDisplayer(View view)
focal_class.class_method_signature: MetricDisplayer.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: MetricDisplayer.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: MetricDisplayer.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: MetricDisplayer.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: MetricDisplayer.parseHtmlTemplate(String str)
focal_class.full_signature: public String parseHtmlTemplate(String str)
focal_class.identifier: parseHtmlTemplate
focal_class.modifiers: public
focal_class.parameters: (String str)
focal_class.return: String
focal_class.signature: String parseHtmlTemplate(String str)
focal_class.class_method_signature: MetricDisplayer.parseJsTemplate(String str)
focal_class.full_signature: public String parseJsTemplate(String str)
focal_class.identifier: parseJsTemplate
focal_class.modifiers: public
focal_class.parameters: (String str)
focal_class.return: String
focal_class.signature: String parseJsTemplate(String str)
focal_class.class_method_signature: MetricDisplayer.parseTemplate(String template)
focal_class.full_signature: protected void parseTemplate(String template)
focal_class.identifier: parseTemplate
focal_class.modifiers: protected
focal_class.parameters: (String template)
focal_class.return: void
focal_class.signature: void parseTemplate(String template)
focal_class.class_method_signature: MetricDisplayer.getExtraKeyId(String key)
focal_class.full_signature: public String getExtraKeyId(String key)
focal_class.identifier: getExtraKeyId
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getExtraKeyId(String key)
focal_class.class_method_signature: MetricDisplayer.isFilterOn()
focal_class.full_signature: public boolean isFilterOn()
focal_class.identifier: isFilterOn
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFilterOn()
focal_class.class_method_signature: MetricDisplayer.setFilterOn(boolean on)
focal_class.full_signature: public void setFilterOn(boolean on)
focal_class.identifier: setFilterOn
focal_class.modifiers: public
focal_class.parameters: (boolean on)
focal_class.return: void
focal_class.signature: void setFilterOn(boolean on)
focal_class.class_method_signature: MetricDisplayer.isFilterEnabled()
focal_class.full_signature: public boolean isFilterEnabled()
focal_class.identifier: isFilterEnabled
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFilterEnabled()
focal_class.class_method_signature: MetricDisplayer.updateFilter()
focal_class.full_signature: public void updateFilter()
focal_class.identifier: updateFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateFilter()
focal_class.class_method_signature: MetricDisplayer.fetchFilter()
focal_class.full_signature: public DataSetFilter fetchFilter()
focal_class.identifier: fetchFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DataSetFilter
focal_class.signature: DataSetFilter fetchFilter()
focal_class.class_method_signature: MetricDisplayer.filterApply()
focal_class.full_signature: public void filterApply()
focal_class.identifier: filterApply
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void filterApply()
focal_class.class_method_signature: MetricDisplayer.filterReset()
focal_class.full_signature: @Override public void filterReset()
focal_class.identifier: filterReset
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void filterReset()
focal_class.class_method_signature: MetricDisplayer.getHtmlTemplate()
focal_class.full_signature: @Override public String getHtmlTemplate()
focal_class.identifier: getHtmlTemplate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHtmlTemplate()
focal_class.class_method_signature: MetricDisplayer.getHtmlVariableMap()
focal_class.full_signature: @Override public Map<String, String> getHtmlVariableMap()
focal_class.identifier: getHtmlVariableMap
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getHtmlVariableMap()
focal_class.class_method_signature: MetricDisplayer.getJsTemplate()
focal_class.full_signature: @Override public String getJsTemplate()
focal_class.identifier: getJsTemplate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJsTemplate()
focal_class.class_method_signature: MetricDisplayer.getJsVariableMap()
focal_class.full_signature: @Override public Map<String, String> getJsVariableMap()
focal_class.identifier: getJsVariableMap
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getJsVariableMap()
focal_class.class_method_signature: MetricDisplayer.getCommonVariableMap()
focal_class.full_signature: protected Map<String, String> getCommonVariableMap()
focal_class.identifier: getCommonVariableMap
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getCommonVariableMap()
focal_class.class_method_signature: MetricDisplayer.asVar(String key)
focal_class.full_signature: protected String asVar(String key)
focal_class.identifier: asVar
focal_class.modifiers: protected
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String asVar(String key)
focal_class.superclass: extends AbstractGwtDisplayer<MetricDisplayer.View>
focal_method.body: @Override
      public View getView() {
          return view;
      }
focal_method.class_method_signature: MetricDisplayer.getView()
focal_method.full_signature: @Override public View getView()
focal_method.identifier: getView
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: View
focal_method.signature: View getView()