1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default [CLOSED] TreeContentProvider void getChildren (typo ?)

    [CLOSED] TreeContentProvider void getChildren (typo ?)


    In the TreeContentProvider interface we have a void getChildren method. The javadoc says it returns the child elements but it is a void method.
    Code:
      /**
       * Returns the child elements of the given parent.
       * 
       * @param parent the parent element
       * @param callback the content callback
       */
      public void getChildren(Object parent, AsyncContentCallback<Object> callback);
    When I look at the only implementation (ModelTreeContentProvider), what it does is setting elements. Therefore I suppose the method name should be setChildren (otherwise it is a bit confusing) and the javadoc should be modified.

    Thanks.

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    The viewer code has been removed from the library. The new mechanism for getting a parent's children is via a TreeLoader:
    Code:
      /**
       * Initiates a load request for the parent's children.
       * 
       * @param parent the parent
       * @return true if the load was requested
       */
      public boolean loadChildren(ModelData parent);

Thread Participants: 1