Class ToolbarConfiguration
java.lang.Object
org.eclipse.nebula.widgets.richtext.toolbar.ToolbarConfiguration
Deprecated.
The toolbar configuration of the CKEditor toolbar. Contains the default toolbar configuration via
 toolbar groups and gives the ability to dynamically add/remove custom buttons.
 
 To customize the CKEditor buttons shown in the toolbar, you need to override
 getToolbarGroupConfiguration() and getRemoveButtonConfiguration()
 
- Since:
- 3.1
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanDeprecated.Configure whether to remove format combo box from the toolbar.booleanDeprecated.Configure whether to remove the paste from word button from the toolbar.booleanDeprecated.Configure whether to remove the paste text button from the toolbar.booleanDeprecated.Configure whether to remove the styles combo box from the toolbar.booleanDeprecated.Configure if the toolbar should be collapsible.booleanDeprecated.Configure if the toolbar should be initially expanded.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDefaultToolbarButton(String buttonName) Deprecated.Adds the CKEditor default button for the given name to the toolbar.protected StringDeprecated.Configure CKEditor toolbar default buttons.Deprecated.String[]Deprecated.protected StringDeprecated.Configure CKEditor toolbar button groups.voidremoveDefaultToolbarButton(String buttonName) Deprecated.Removes the CKEditor default button for the given name from the toolbar.toString()Deprecated.
- 
Field Details- 
removePasteTextpublic boolean removePasteTextDeprecated.Configure whether to remove the paste text button from the toolbar. Default istrue.
- 
removePasteFromWordpublic boolean removePasteFromWordDeprecated.Configure whether to remove the paste from word button from the toolbar. Default istrue.
- 
removeStylespublic boolean removeStylesDeprecated.Configure whether to remove the styles combo box from the toolbar. Default istrue.
- 
removeFormatpublic boolean removeFormatDeprecated.Configure whether to remove format combo box from the toolbar. Default istrue.
- 
toolbarCollapsiblepublic boolean toolbarCollapsibleDeprecated.Configure if the toolbar should be collapsible. Default isfalse.
- 
toolbarInitialExpandedpublic boolean toolbarInitialExpandedDeprecated.Configure if the toolbar should be initially expanded. Is only interpreted iftoolbarCollapsibleis set totrue. Default istrue.
 
- 
- 
Constructor Details- 
ToolbarConfigurationpublic ToolbarConfiguration()Deprecated.
 
- 
- 
Method Details- 
getToolbarGroupConfigurationDeprecated.Configure CKEditor toolbar button groups. To customize the CKEditor buttons shown in the toolbar, you need to override this method. The returned string is a direct representation ofCKEDITOR.config.toolbarGroupsconfiguration property. It must start with "CKEDITOR.config.toolbarGroups" and end with a semicolon. The value is a JavaScript array as defined in CKEditor Documentation.Usage: public class MyConfig extends ToolbarConfiguration { @Override protected String getToolbarGroupConfiguration() { return "CKEDITOR.config.toolbarGroups = [{\"name\":\"styles\"}];"; } }- Returns:
- The toolbar group configuration for the CKEditor toolbar.
- See Also:
 
- 
getRemoveButtonConfigurationDeprecated.Configure CKEditor toolbar default buttons. To customize the CKEditor default buttons shown in the toolbar, you could override this method. The returned string is a direct representation ofCKEDITOR.config.removeButtonsconfiguration property. It must start with "CKEDITOR.config.removeButtons" and end with a semicolon. The value is a comma-separated list of default button names as defined in CKEditor Documentation.Usage: public class MyConfig extends ToolbarConfiguration { @Override protected String getRemoveButtonConfiguration() { return "CKEDITOR.config.removeButtons = \"Subscript,Superscript\";"; } }- Returns:
- The configuration which default buttons should be removed from the toolbar.
- See Also:
 
- 
addDefaultToolbarButtonDeprecated.Adds the CKEditor default button for the given name to the toolbar.Note: This works only for buttons that have been removed using removeDefaultToolbarButton(String)- Parameters:
- buttonName- The name of the CKEditor default button to add.
 
- 
removeDefaultToolbarButtonDeprecated.Removes the CKEditor default button for the given name from the toolbar.- Parameters:
- buttonName- The name of the CKEditor default button to remove.
 
- 
toStringDeprecated.
- 
getToolbarButtonConfigurationsDeprecated.- Since:
- 3.2
 
- 
getRemovedButtonsDeprecated.- Since:
- 3.2
 
 
- 
RichTextEditorConfiguration