java - Presentation of a hierachical Type in a Tree or CellTree by GWT -


i want display hierachical type in celltree. when select 1 item, want display it's details on screen. type contains list of b, b list of c etc. have 5 levels, therefore have write 5 selectionmodel<t> every type. there way, implement every type own singleselectionmodel<t>, or write 1 singleselectionmodel<object> , use instanceof?

thanks in advance

i solved problem using interface hierachical type. provides method gives enum, identifies correct implementation of interface. able write 1 selectionmodel<interface>.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -