public interface SwingToolbarService
Modifier and Type | Method and Description |
---|---|
void |
configureContribution(ToolbarConfiguration configuration)
This method is called once after the SwingToolbarService is registered.
|
SwingToolbarContribution |
createToolbar(ToolbarContext context)
Creates a new toolbar instance.
|
Icon |
getIcon() |
Icon getIcon()
NullPointerException
- in case this methods returns nullvoid configureContribution(ToolbarConfiguration configuration)
The values of the ToolbarConfiguration object will be read once immediately after this method call. Changing values at a later stage will have no effect, so do not store a reference to the configuration object.
If the default values are appropriate, leave this method empty.configuration
- a modifiable ToolbarConfiguration with default valuesSwingToolbarContribution createToolbar(ToolbarContext context)
context
- Provides access to services and APIs relevant for the toolbarCopyright © 2018. All rights reserved.