RichTextEditorConfiguration@Deprecated
public class ToolbarConfiguration
extends java.lang.Object
To customize the CKEditor buttons shown in the toolbar, you need to override
getToolbarGroupConfiguration() and
getRemoveButtonConfiguration()
Note: A ToolbarConfiguration instance is directly connected to
the Browser instance of the editor. It can therefore not be re-used
for multiple RichTextEditor instances.
| Modifier and Type | Field and Description |
|---|---|
boolean |
removeFormat
Deprecated.
Configure whether to remove format combo box from the toolbar.
|
boolean |
removePasteFromWord
Deprecated.
Configure whether to remove the paste from word button from the
toolbar.
|
boolean |
removePasteText
Deprecated.
Configure whether to remove the paste text button from the
toolbar.
|
boolean |
removeStyles
Deprecated.
Configure whether to remove the styles combo box from the toolbar.
|
boolean |
toolbarCollapsible
Deprecated.
Configure if the toolbar should be collapsible.
|
boolean |
toolbarInitialExpanded
Deprecated.
Configure if the toolbar should be initially expanded.
|
| Constructor and Description |
|---|
ToolbarConfiguration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultToolbarButton(java.lang.String buttonName)
Deprecated.
Adds the CKEditor default button for the given name to the toolbar.
|
void |
addToolbarButton(ToolbarButton button)
Deprecated.
Adds a custom button to the CKEditor toolbar.
|
void |
addToolbarButton(ToolbarButton button,
org.eclipse.swt.browser.BrowserFunction function)
Deprecated.
Adds a custom button to the CKEditor toolbar.
|
void |
configureToolbar()
Deprecated.
Configures the toolbar of the CKEditor based on the configurations
applied in this
ToolbarConfiguration. |
void |
dispose()
Deprecated.
Dispose the registered
BrowserFunctions. |
org.eclipse.swt.browser.Browser |
getBrowser()
Deprecated.
|
java.util.Map<java.lang.String,org.eclipse.swt.browser.BrowserFunction> |
getButtonCallbacks()
Deprecated.
|
protected java.lang.String |
getCustomButtonConfiguration()
Deprecated.
|
java.util.Set<ToolbarButton> |
getCustomButtons()
Deprecated.
|
protected java.lang.String |
getRemoveButtonConfiguration()
Deprecated.
|
java.util.Set<java.lang.String> |
getRemovedButtons()
Deprecated.
|
java.lang.String[] |
getToolbarButtonConfigurations()
Deprecated.
|
protected java.lang.String |
getToolbarGroupConfiguration()
Deprecated.
|
void |
removeDefaultToolbarButton(java.lang.String buttonName)
Deprecated.
Removes the CKEditor default button for the given name from the toolbar.
|
void |
removeToolbarButton(ToolbarButton button)
Deprecated.
Removes the given
ToolbarButton from the local list of custom
toolbar buttons. |
void |
setBrowser(org.eclipse.swt.browser.Browser browser)
Deprecated.
|
public boolean removePasteText
true.public boolean removePasteFromWord
true.public boolean removeStyles
true.public boolean removeFormat
true.public boolean toolbarCollapsible
false.public boolean toolbarInitialExpanded
toolbarCollapsible is set to true.
Default is true.public void configureToolbar()
ToolbarConfiguration.protected java.lang.String getToolbarGroupConfiguration()
protected java.lang.String getRemoveButtonConfiguration()
protected java.lang.String getCustomButtonConfiguration()
public void addToolbarButton(ToolbarButton button)
BrowserFunction that executes
ToolbarButton.execute() via callback on pressing the button.button - The button to add.public void addToolbarButton(ToolbarButton button, org.eclipse.swt.browser.BrowserFunction function)
BrowserFunction via callback on pressing the button.button - The button to add.function - The BrowserFunction that should be called on pressing
the button.public void removeToolbarButton(ToolbarButton button)
ToolbarButton from the local list of custom
toolbar buttons.button - The ToolbarButton to remove.public void addDefaultToolbarButton(java.lang.String buttonName)
Note: This works only for buttons that have been removed using
removeDefaultToolbarButton(String)
buttonName - The name of the CKEditor default button to add.public void removeDefaultToolbarButton(java.lang.String buttonName)
buttonName - The name of the CKEditor default button to remove.public void dispose()
BrowserFunctions.public org.eclipse.swt.browser.Browser getBrowser()
Browser instance to which this
ToolbarConfiguration is connected to.public void setBrowser(org.eclipse.swt.browser.Browser browser)
browser - The Browser instance to which this
ToolbarConfiguration should be connected to.public java.util.Set<ToolbarButton> getCustomButtons()
public java.util.Map<java.lang.String,org.eclipse.swt.browser.BrowserFunction> getButtonCallbacks()
public java.util.Set<java.lang.String> getRemovedButtons()
public java.lang.String[] getToolbarButtonConfigurations()