Deprecated classes with non-deprecated subclasses?

DzScrollView is deprecated and DzScrollArea should be used instead. However, DzListBox and DzListView, which are not deprecated, inherit from DzScrollView and DzScrollArea does not provide analogous subclasses. Is there any idea how to handle this cleverly without implementing a list view completely manually?

Comments

  • DzScrollView does not provide any additional functionality, over and above what DzListBox and/or DzListView provide - you can/should, in effect, operate as though DzListBox and DzListView inherit directly from DzWidget. It is only where DzScrollView was used directly, that DzScrollArea should be used in its place.

  • kabexefkabexef Posts: 76

    Richard Haseltine said:

    DzScrollView does not provide any additional functionality, over and above what DzListBox and/or DzListView provide - you can/should, in effect, operate as though DzListBox and DzListView inherit directly from DzWidget. It is only where DzScrollView was used directly, that DzScrollArea should be used in its place.

    Thanks for the explanation; that helps to understand it better and use it correctly. 

  • The only potential issue would be if you used oWidget.inherits( "DzScrollView" ) which would currently return true for those two widgets but in future will return false. You'd need to use something more/less explicit instead if so.

Sign In or Register to comment.