Package org.eclipse.scanning.api.scan.ui
Class AbstractControl
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.scan.ui.AbstractControl
- All Implemented Interfaces:
INameable,INamedNode
- Direct Known Subclasses:
ControlEnumNode,ControlFileNode,ControlGroup,ControlNode,ControlTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd()voidaddChild(INamedNode child) booleanbooleancontainsChild(INamedNode iNameable) boolean<T extends INamedNode>
TUsed to provide a label in the UIbooleaninthashCode()voidremoveChild(INamedNode node) voidsetChildren(INamedNode[] children) Set the children.voidsetDisplayName(String displayName) voidsetParentName(String pName) toPosition(IScannableDeviceService cservice) toString()Methods inherited from class org.eclipse.scanning.api.AbstractNameable
getName, setName
-
Constructor Details
-
AbstractControl
public AbstractControl()
-
-
Method Details
-
add
public void add() -
getParentName
- Specified by:
getParentNamein interfaceINamedNode- Returns:
-
setParentName
- Specified by:
setParentNamein interfaceINamedNode
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildrenin interfaceINamedNode- Returns:
- true if there are children.
-
getChildren
- Specified by:
getChildrenin interfaceINamedNode- Returns:
- the children or null if there are none.
-
setChildren
Description copied from interface:INamedNodeSet the children.- Specified by:
setChildrenin interfaceINamedNode- Parameters:
children-
-
getDisplayName
Description copied from interface:INamedNodeUsed to provide a label in the UI- Specified by:
getDisplayNamein interfaceINamedNode
-
setDisplayName
- Specified by:
setDisplayNamein interfaceINamedNode
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractNameable
-
equals
- Overrides:
equalsin classAbstractNameable
-
toString
- Overrides:
toStringin classAbstractNameable
-
addChild
-
removeChild
-
containsChild
-
toPosition
- Returns:
-
toPosition
- Parameters:
If- the value of any devices is null and they have a name, their values will be defaulted to the current IScannable.getPosition() value.- Returns:
-
contains
-
findChild
-