cancel
Showing results for 
Search instead for 
Did you mean: 

IWDNodeCollectionSupplier

Former Member
0 Kudos

Hi,all

How can I populate my node with elements by using

IWDNodeCollectionSupplier?

Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

former_member186016
Active Contributor
0 Kudos

javadoc for IWDNodeCollectionSupplier says :

  /**
 * Interface used to set up a dynamic supply "function".
 */
public interface IWDNodeCollectionSupplier {
  /**
   * Method to set up the collection for a dependent node after changes in
   * the parent node. You can use {@link IWDNode#bind(java.util.Collection)} or
   * {@link IWDNode#addElement(IWDNodeElement)} to fill the node. It is possible
   * to set up child nodes in this supplier, too. In this case, their supply
   * "function" will not be called. Do <b>not</b> 
   * {@link IWDNode#invalidate() invalidate} the node; the supplier is only
   * called if the node's collection is invalid.
   * @param node The node the collection is to be determined for
   * @param parentElement The parent element
   */
  void supplyElements(IWDNode node, IWDNodeElement parentElement);

Hence the place you want to use this method you should have the node on which you want to invoke this method and its parent Element.

Can you elaborate where you want to use this method.

Regards,

Ashwani Kr Sharma

Answers (1)

Answers (1)

Former Member
0 Kudos

Michael,

Refer the blog @ https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1896. [original link is broken] [original link is broken] [original link is broken] [original link is broken] This article, in fact, has a clear piece of code that will help you understand the API.

Bala