| || |
How to use a single method to call multiple object
I have an application where the tree menu has following items:
X and under X, the items are arranged as:
X_A, X_B, X_C, X_D.
Now, i want to use a single method in my Module class to click on any of these items(X_A, X_B, X_C, X_D) as required.
i have inserted all the items in my object map
I am not able to figure out how to use a single method for it.
I am not in favour of creating separate method for each of the items.
Please let me know if it is possible .
If yes, how to do it.
Thanks in advance.