@Test public void testGenerateURLFragment() { OverLIBToolTipTagFragmentGenerator g = new OverLIBToolTipTagFragmentGenerator(); assertEquals(" onMouseOver=\"return overlib('abc');\"" + " onMouseOut=\"return nd();\"", g.generateToolTipFragment("abc")); assertEquals(" onMouseOver=\"return overlib(" + "'It\\'s \\\"A\\\", 100.0');\" onMouseOut=\"return nd();\"", g.generateToolTipFragment("It\'s \"A\", 100.0")); }
@Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return overlib('" + ImageMapUtilities.javascriptEscape(toolTipText) + "');\" onMouseOut=\"return nd();\""; }
OverLIBToolTipTagFragmentGenerator implements ToolTipTagFragmentGenerator { @Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return overlib('" + ImageMapUtilities.javascriptEscape(toolTipText) + "');\" onMouseOut=\"return nd();\""; } }
OverLIBToolTipTagFragmentGenerator implements ToolTipTagFragmentGenerator { @Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return overlib('" + ImageMapUtilities.javascriptEscape(toolTipText) + "');\" onMouseOut=\"return nd();\""; } OverLIBToolTipTagFragmentGenerator(); }
OverLIBToolTipTagFragmentGenerator implements ToolTipTagFragmentGenerator { @Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return overlib('" + ImageMapUtilities.javascriptEscape(toolTipText) + "');\" onMouseOut=\"return nd();\""; } OverLIBToolTipTagFragmentGenerator(); @Override String generateToolTipFragment(String toolTipText); }
OverLIBToolTipTagFragmentGenerator implements ToolTipTagFragmentGenerator { @Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return overlib('" + ImageMapUtilities.javascriptEscape(toolTipText) + "');\" onMouseOut=\"return nd();\""; } OverLIBToolTipTagFragmentGenerator(); @Override String generateToolTipFragment(String toolTipText);  }