This content has been marked as final. Show 4 replies
Changing type in runtime won't be possible unless, of course, both the components implement same interface.
How about using Box instead of VBox and HBox and then set direction property at run time?
For HorizontalList to TileList, you might consider using states; one state for each of these two containers.
Thanks for the reply Atta. So if two components implement the same interface, you can interchange them at run time? Cool. Could you possibly tell me how?
Also, I think I know what you mean about using different states, but I'm not quite sure how to implement it. Do you think you could help me out by explaining a little bit more? I would really appreciate it.
Try this for view states:
view states are basically multiple views layered on each other with only one of the state visible, so to speak.
As for the interfaces, I think I was essentially referring to basics of OO. As VBox and HBox are not in the same hierarchy, it would be impossible to replace one with another unless, of course, we cast them down to the common class in their hierarchy.
Cool Atta. I'll read up on this and see if I can get this to work.