/** * Returns the button bar configuration String for the FCKeditor widget.<p> * * @param configuration the configuration to use * @return the button bar configuration String for the FCKeditor widget */ public static String getButtonBar(CmsHtmlWidgetOption configuration) { return configuration.getButtonBar(BUTTON_TRANSLATION_MAP, ","); }
/** * Returns the specific editor button bar string generated from the configuration.<p> * * The lookup map can contain translations for the button names, the separator and the block names. * The button bar will be automatically surrounded by block start and end items if they are not explicitly defined.<p> * * It may be necessary to write your own method to generate the button bar string for a specific editor widget. * In this case, use the method {@link #getButtonBarShownItems()} to get the calculated list of shown button bar items.<p> * * @param buttonNamesLookUp the lookup map with translations for the button names, the separator and the block names or <code>null</code> * @param itemSeparator the separator for the tool bar items * @return the button bar string generated from the configuration */ public String getButtonBar(Map<String, String> buttonNamesLookUp, String itemSeparator) { return getButtonBar(buttonNamesLookUp, itemSeparator, true); }
/** * Returns the specific editor button bar string generated from the configuration.<p> * * The lookup map can contain translations for the button names, the separator and the block names. * The button bar will be automatically surrounded by block start and end items if they are not explicitly defined.<p> * * It may be necessary to write your own method to generate the button bar string for a specific editor widget. * In this case, use the method {@link #getButtonBarShownItems()} to get the calculated list of shown button bar items.<p> * * @param buttonNamesLookUp the lookup map with translations for the button names, the separator and the block names or <code>null</code> * @param itemSeparator the separator for the tool bar items * @return the button bar string generated from the configuration */ public String getButtonBar(Map<String, String> buttonNamesLookUp, String itemSeparator) { return getButtonBar(buttonNamesLookUp, itemSeparator, true); }