C
- the (generic) type parameter for the interface representing the type of InstallationNodeContribution
created by this SwingInstallationNodeServiceV
- the (generic) type parameter for the interface representing the type of the view used by the
InstallationNodeContribution
created by this servicepublic interface SwingInstallationNodeService<C extends InstallationNodeContribution,V extends SwingInstallationNodeView<C>>
Modifier and Type | Method and Description |
---|---|
void |
configureContribution(ContributionConfiguration configuration)
This method is called once after the SwingInstallationNodeService is registered.
|
C |
createInstallationNode(InstallationAPIProvider apiProvider,
V view,
DataModel model,
CreationContext context)
Creates a new installation node instance.
|
V |
createView(ViewAPIProvider apiProvider)
Creates a new View instance which implements the UI for your installation node screen.
|
String |
getTitle(Locale locale) |
void configureContribution(ContributionConfiguration configuration)
The values of the ContributionConfiguration 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 ContributionConfiguration with default valuesString getTitle(Locale locale)
locale
- the current locale of PolyScope. Can be used for supporting titles in several languages.V createView(ViewAPIProvider apiProvider)
apiProvider
- Provides access to functionality and services available from within PolyScope related to user
interface and user interactionC createInstallationNode(InstallationAPIProvider apiProvider, V view, DataModel model, CreationContext context)
Creates a new installation node instance.
The returned node must use the supplied data model object to retrieve and store the data contained in it. The data model object is shared between all installation nodes contributed by the same URCap.
apiProvider
- Provides access to functionality and services available from within PolyScope relevant for the
installation nodeview
- the View created by createView(ViewAPIProvider)
model
- object where all configuration data of the new installation node instance is to be stored in and
retrieved fromcontext
- the context in which this node is createdCopyright © 2018. All rights reserved.