private HtmlLink createInvertSelectionLink() {
private HtmlComponent createInvertSelectionLink() { HtmlInlineContainer container = new HtmlInlineContainer();
        private HtmlLink createInvertSelectionLink() {            HtmlScript script = new HtmlScript();                        script.setContentType("text/javascript");            script.setConditional(true);            script.setScript(                "function invertSelectionAll(n) {" +                "    var allChecked = true;" +                "    var elements = document.getElementsByName(n);" +                "\n" +                "    for (var index=0; index<elements.length; index++) {" +                "        var element = elements[index];" +                "\n" +                "        if (! element.checked) {" +                "            allChecked = false;" +                "            element.checked = true;" +                "        }" +                 "    }" +                "\n" +                "    if (allChecked) {" +                "        for (var index=0; index<elements.length; index++) {" +                "            elements[index].checked = false;" +                "        }" +                "    }" +                "}"            );                        String selectAllScript = "invertSelectionAll('" + getCheckboxName() + "')";             HtmlLink link = new HtmlLink();            link.setText(RenderUtils.getResourceString("renderers.table.selectAll"));            link.setOnClick(selectAllScript);            link.setOnDblClick(selectAllScript);                        return link;        }