ScriptEventListener implements XMLConvertible { public static ScriptEventListenerBuilder builder(final ScriptEvent event, final String functionName) { return new ScriptEventListenerBuilder(event, functionName); } ScriptEventListener(final String genericLanguage, final ScriptEvent event,
                               final String functionName, final String language); static ScriptEventListener create(final ScriptEvent event, final String functionName); static ScriptEventListenerBuilder builder(final ScriptEvent event,
                                                     final String functionName); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); static final String BASIC_LANG; static final String PYTHON_LANG; static final String JAVA_LANG; static final String JAVASCRIPT_LANG; }
@Test public void testBuilder() throws IOException { final ScriptEventListener sel = ScriptEventListener.builder(ScriptEvent.ON_LOAD, "func").language("l") .genericLanguage("gl").build(); TestHelper.assertXMLEquals("<script:event-listener script:language=\"gl\" " + "script:event-name=\"dom:load\" xlink:href=\"vnd.sun.star" + ".script:func?language=l&amp;location=document\" xlink:type=\"simple\"/>", sel); }