Interface ISpecificationNode
@OpenApiAll
public interface ISpecificationNode
The interface of specification tree node.
-
Method Summary
Modifier and TypeMethodDescriptioncreateSpecificationComponent
(Element element) Creates specification component of the node for given element.void
dispose()
Method is called when the node is disposed.getIcon()
Returns the icon of the node.getID()
Returns ID of the node.getText()
Returns displaying text of the node.void
propertyChanged
(Element element, PropertyChangeEvent event) This method gets called when a property of the element is changed.boolean
Method is called when node should be updated.
-
Method Details
-
getID
String getID()Returns ID of the node.- Returns:
- node id.
-
getIcon
Returns the icon of the node.- Returns:
- node icon.
-
getText
String getText()Returns displaying text of the node.- Returns:
- displaying text.
-
createSpecificationComponent
Creates specification component of the node for given element.- Parameters:
element
- element to create component for.- Returns:
- specification component.
-
propertyChanged
This method gets called when a property of the element is changed.- Parameters:
element
- element which represented by node.event
- a PropertyChangeEvent object describing the event source and the property that has changed.
-
updateNode
boolean updateNode()Method is called when node should be updated. Implementation must check if node really needs to be updated.- Returns:
true
if node was updated, otherwise -false
.
-
dispose
void dispose()Method is called when the node is disposed.
-