Class TreeAccessorXItem
java.lang.Object
de.xima.fc.common.form.TreeAccessorXItem
- All Implemented Interfaces:
ITreeAccessor<XItem,String>, ITreeAccessor<XItem, String>
@Deprecated
public final class TreeAccessorXItem
extends Object
implements ITreeAccessor<XItem,String>
Deprecated.
A
ITreeAccessor for XItem that accesses the children of an item. The hierarchy is specified by an
item's parent ID. The ID is AXItemPropertiesData.getId().-
Method Summary
Modifier and TypeMethodDescriptiongetChildren(XItem xItem) Deprecated.Gets the children of the given node.Deprecated.Gets the ID of the given node.static ITreeAccessor<XItem, String> ofChildMap(Map<String, ? extends List<XItem>> childMap) Deprecated.Creates a new tree accessor for XItems using the given precomputed child map.static ITreeAccessor<XItem, String> Deprecated.Creates a new tree accessor for the XItems of the given form.static ITreeAccessor<XItem, String> Deprecated.Creates a new tree accessor for the given XItems.
-
Method Details
-
getChildren
Deprecated.Description copied from interface:ITreeAccessorGets the children of the given node. It is generally recommended to return a list of nodes for fast random access, but implementations must be compatible with general iterables.- Specified by:
getChildrenin interfaceITreeAccessor<XItem,String> - Specified by:
getChildrenin interfaceITreeAccessor<XItem,String> - Parameters:
xItem- The node for which to get the children.- Returns:
- A list of all children of the given tree node, empty array if it is a leaf node.
-
getId
Deprecated.Description copied from interface:ITreeAccessorGets the ID of the given node. The ID must be unique within the tree, but it is not required to be unique across different trees.- Specified by:
getIdin interfaceITreeAccessor<XItem,String> - Specified by:
getIdin interfaceITreeAccessor<XItem,String> - Parameters:
xItem- A node for which to retrieve its ID.- Returns:
- The (unique) identifier of the given tree node.
-
ofChildMap
-
ofXForm
Deprecated.Creates a new tree accessor for the XItems of the given form.- Parameters:
xForm- A form with XItems.- Returns:
- A tree accessor for XItems.
-
ofXItems
Deprecated.Creates a new tree accessor for the given XItems.- Parameters:
xItems- A list of items that form a hierarchy.- Returns:
- A tree accessor for XItems.
-
TreeAccessorXIteminstead.