Interface ISpecificationNode
-
@OpenApiAll public interface ISpecificationNodeThe interface of specification tree node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISpecificationComponentcreateSpecificationComponent(Element element)Creates specification component of the node for given element.voiddispose()Method is called when the node is disposed.javax.swing.IcongetIcon()Returns the icon of the node.java.lang.StringgetID()Returns ID of the node.java.lang.StringgetText()Returns displaying text of the node.voidpropertyChanged(Element element, java.beans.PropertyChangeEvent event)This method gets called when a property of the element is changed.booleanupdateNode()Method is called when node should be updated.
-
-
-
Method Detail
-
getID
java.lang.String getID()
Returns ID of the node.- Returns:
- node id.
-
getIcon
@CheckForNull javax.swing.Icon getIcon()
Returns the icon of the node.- Returns:
- node icon.
-
getText
java.lang.String getText()
Returns displaying text of the node.- Returns:
- displaying text.
-
createSpecificationComponent
ISpecificationComponent createSpecificationComponent(Element element)
Creates specification component of the node for given element.- Parameters:
element- element to create component for.- Returns:
- specification component.
-
propertyChanged
void propertyChanged(Element element, java.beans.PropertyChangeEvent event)
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:
trueif node was updated, otherwise -false.
-
dispose
void dispose()
Method is called when the node is disposed.
-
-