Using a model to represent the overall state of a view

Is there a standard practice for representing the state of a user interface that is not associated with a single component?

For example, the Swing interface may have a number of tabs with the restriction that one tab should be displayed only once for a given type of entity (this can be represented as a HashSet). Or the message may give the result of the last operation performed. Or a JPanel may be associated with an instance of a single object for editing purposes.

+3
source share
2 answers

, , . Swing , , , .

, , . , Swing.

, , JFrame, "" , , , - , , , , . .

+2

, Model-View-ViewModel. . google mvvm MSDN, .

+3

Source: https://habr.com/ru/post/1794848/


All Articles