public interface ProgramNodeService extends URCapProgramNodeService
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.NOTE: This method is only called once when the URCap is activated and never called again afterwards. |
boolean |
isDeprecated()
By returning
true it is not possible for the user to create new program nodes of this type. |
String getId()
boolean isDeprecated()
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.true
if deprecated, false
otherwise.boolean isChildrenAllowed()
true
it is possible for the program node to have child nodes.true
if children are allowed, false
otherwise.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. All modifications to the supplied data model from the program node constructor are ignored when an existing program node is loaded or copy/pasted. 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 © 2020. All rights reserved.