1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    6
    Vote Rating
    0
    craigday is on a distinguished road

      0  

    Default BUG/ENH: BaseTreeModel generics too restrictive

    BUG/ENH: BaseTreeModel generics too restrictive


    BaseTreeModel is declared as:

    public class BaseTreeModel<T extends TreeModel> extends BaseModel implements TreeModel<T> { .. }

    with the parent attribute of type T:

    protected T parent;

    and the children collection of type List<T>:

    protected List<T> children;

    This is extremely restrictive i.e. mandating that the parent and children be of the same type. I can honestly say that I have never actually designed or worked with tree models where all the data nodes were of the same type.

    Can you split the parent and child type parameters into separate types?

    Cheers
    Craig

  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


    If you have different parent / child types, then specify the common super type, which may be TreeModel. In this scenario, you will need to perform the appropriate casts.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi