public interface ProgramNodeService extends URCapProgramNodeService
Defines an API required for adding a new type of program node to PolyScope.
Modifier and Type | Method and Description |
---|---|
ProgramNodeContribution |
createNode(URCapAPI api,
DataModel model)
Creates a new program node contribution instance.
|
InputStream |
getHTML() |
String |
getId()
Get the unique identifier for this kind of program node.
|
String |
getTitle() |
boolean |
isChildrenAllowed()
By returning true it is possible for the program node to have child nodes.
|
boolean |
isDeprecated()
By returning true it is not possible for the user to create new program nodes of this type.
|
String getId()
Get the unique identifier for this kind of program node. The identifier will be used when storing programs that use the program node.
boolean isDeprecated()
By returning true it is not possible for the user to create new program nodes of this type. Loading of existing programs will however still be supported for this program node. NOTE: This method is only called once when the URCap is activated and never called again afterwards.
boolean isChildrenAllowed()
By returning true it is possible for the program node to have child nodes. NOTE: This method is only called once when the URCap is activated and never called again afterwards.
String getTitle()
InputStream getHTML()
ProgramNodeContribution createNode(URCapAPI api, DataModel model)
Creates a new program node contribution instance.
The returned node must use the supplied data model object to retrieve and store the data contained in it. Every change to the model object is registered as a separate undo/redo event in the program tree.
api
- the URCap API object with access to domain datamodel
- object where all configuration data of the new program node
instance is to be stored in and retrieved fromCopyright © 2018. All rights reserved.