public String renderJS(String jsPath) { Set<String> resources = getResourcesWritten(); if (resources.add(jsPath)) { return "<script src=\"" + internalPath(jsPath) + "\"></script>"; } return ""; }
protected String renderEditorToolbarItem(String itemId, String editor, String imgSrc, String action, String title) { editor = (editor == null || editor.equals("")) ? "" : editor + "."; StringBuilder result = new StringBuilder(); result.append("<img id=\"").append(itemId) .append("\" src=\"").append(internalPath(imgSrc)) .append("\" title=\"").append(title) .append("\" onclick=\"").append(editor).append(action) .append("\" class='te_toolbar_item te_toolbar_item_disabled'") .append("></img>"); return result.toString(); }
protected String renderEditorToolbarItem(String itemId, String editor, String imgSrc, String action, String title) { editor = (editor == null || editor.equals("")) ? "" : editor + "."; StringBuilder result = new StringBuilder(); result.append("<img id=\"").append(itemId) .append("\" src=\"").append(internalPath(imgSrc)) .append("\" title=\"").append(title) .append("\" onclick=\"").append(editor).append(action) .append("\" class='te_toolbar_item te_toolbar_item_disabled'") .append("></img>"); return result.toString(); }
public String renderCSS(String cssPath) { Set<String> resources = getResourcesWritten(); if (resources.add(cssPath)) { return "<link rel=\"stylesheet\" href=\"" + internalPath(cssPath) + "\"></link>"; } return ""; }
public String renderCSS(String cssPath) { Set<String> resources = getResourcesWritten(); if (resources.add(cssPath)) { return "<link rel=\"stylesheet\" href=\"" + internalPath(cssPath) + "\"></link>"; } return ""; }
public String renderJS(String jsPath) { Set<String> resources = getResourcesWritten(); if (resources.add(jsPath)) { return "<script src=\"" + internalPath(jsPath) + "\"></script>"; } return ""; }
protected String renderEditorToolbar(String editorId, String editorJsVar, String mode) { StringBuilder result = new StringBuilder(); final String toolbarItemSeparator = "<img src=" + internalPath("img/toolbarSeparator.gif") + " class=\"item_separator\"></img>";
protected String renderEditorToolbar(String editorId, String editorJsVar, String mode) { StringBuilder result = new StringBuilder(); final String toolbarItemSeparator = "<img src=" + internalPath("img/toolbarSeparator.gif") + " class=\"item_separator\"></img>";
+ internalPath("ajax/") + "\",\"" + relativeCellToEdit + "\"," + actions + "," + (Constants.MODE_EDIT.equals(mode) ? 1 : 0) + "," + editor.isEditable() + ");"));
+ internalPath("ajax/") + "\",\"" + relativeCellToEdit + "\"," + actions + "," + (Constants.MODE_EDIT.equals(mode) ? 1 : 0) + "," + editor.isEditable() + ");"));