开发者

Views displays different component based on configuration

开发者 https://www.devze.com 2023-03-14 03:10 出处:网络
I would like to know if there is a design pattern that would help me to build views differently based on some configuration parameters.For exemple if configuration 1 is enabled then some components ar

I would like to know if there is a design pattern that would help me to build views differently based on some configuration parameters. For exemple if configuration 1 is enabled then some components are displayed but if configurati开发者_JS百科on 2 is enabled those component are not visible, or on configuration 3 I can display 2 of these component. T


You can do this by showing different "cards" using CardLayout. See How to Use CardLayout.

0

精彩评论

暂无评论...
验证码 换一张
取 消