Package org.eclipse.scanning.api
Interface INamedNode
- All Superinterfaces:
INameable
- All Known Implementing Classes:
AbstractControl,ControlEnumNode,ControlFileNode,ControlGroup,ControlNode,ControlTree
An interface for declaring parents and possibly
one day more distant ancestors.
This is designed to be used as a node in an RCP tree content provider.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringUsed to provide a label in the UIbooleanvoidsetChildren(INamedNode[] children) Set the children.voidsetDisplayName(String name) voidsetParentName(String parentName)
-
Method Details
-
getDisplayName
Used to provide a label in the UI -
setDisplayName
-
getParentName
String getParentName()- Returns:
-
setParentName
- Parameters:
parent-
-
getChildren
INamedNode[] getChildren()- Returns:
- the children or null if there are none.
-
setChildren
Set the children.- Parameters:
children-
-
hasChildren
boolean hasChildren()- Returns:
- true if there are children.
-