For example, I have a GUI like this:
So, I have a lot of panels. My GUI is rather functional, so it is very big. I don't want to create all GUI in one class. So, I can separate left panel, center panel and bottom panel in individaul classes. But they need to have access to some shared data. So, I could create class MainView which will store shared data and draw panels where they should be. After that, I could create classes LeftPanelView, CenterPanelView, BottomPanelView, that should extend MainView.
For all these classes I should have a ViewModel. For each View I should have its own ViewModel. So, I should have MainViewModel, LeftViewModel, CenterViewModel, BottomViewModel. And, as well as hierarchy of view view models will be connected in hierarchy. LeftViewModel, CenterViewModel and BottomViewModel will extend MainViewModel.
I have no doubt that View models have to be connected in hierarchy. But I do not know whether this is good to connect view classes in hierarchy. Prompt me please. Maybe, it is an awful design and it will be better to develope all gui in one class?