we want to have a dynamic menu tree in our application.
We want change the image and the text of an end node of the menu tree.
So i have an WorkplaceFunctionTree object and now i have to find the corresponding FunctionNode element, which i want to update (change image and text).
Unfortunately there is only the method "getItemByText()" to find/get a FunctionNode object within the menu tree.
So i have to find a FunctionNode by its text property.
What i would prefer, would be a method [ for instance getItemById ] to find a FunctionNode by its id.
What do you think about this ?
Regards Joe
Side remark:
FunctionNode fNode = ...
fNode.setImage(null);
When i set image = null for an function node element, then there is an empty space in front of the text and the text is indented to the right.
I would have expected that the text would not have been indented.
well, but I believe you do not need me! ;-) You alreday know 85% of the details...:
1. menuTree.getFTree().getRootNode().getChildNodes() gives you the first level of function nodes. Each FunctionNode then has the "getChildNodes()" to get its children.