Package de.xima.fc.common.form
Class TreeParentAccessorXItem
- java.lang.Object
-
- de.xima.fc.common.form.TreeParentAccessorXItem
-
- All Implemented Interfaces:
ITreeParentAccessor<XItem,String>
public final class TreeParentAccessorXItem extends Object implements ITreeParentAccessor<XItem,String>
- Since:
- 8.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId(XItem xItem)
XItem
getParent(XItem xItem)
static TreeParentAccessorXItem
ofItemsMap(Map<String,XItem> xItemsById)
static TreeParentAccessorXItem
ofXForm(IXForm xForm)
-
-
-
Method Detail
-
getParent
public XItem getParent(XItem xItem)
- Specified by:
getParent
in interfaceITreeParentAccessor<XItem,String>
- Parameters:
xItem
- The node for which to get the parent.- Returns:
- Parent of the node,
null
if it is a root node.
-
getId
public String getId(XItem xItem)
- Specified by:
getId
in interfaceITreeParentAccessor<XItem,String>
- Parameters:
xItem
- A node for which to retrieve its ID.- Returns:
- The (unique) identifier of the given tree node.
-
ofXForm
public static TreeParentAccessorXItem ofXForm(IXForm xForm)
-
ofItemsMap
public static TreeParentAccessorXItem ofItemsMap(Map<String,XItem> xItemsById)
-
-