Tuesday, July 23, 2019

ITA evaluation report Essay Example | Topics and Well Written Essays - 2000 words

ITA evaluation report - Essay Example The views in MVC can be nested. For instance, a control panel of buttons can be implemented as a complex view containing nested button views. The user interface for an object inspector can have nested views that may be reused in a debugger. MVC offers support to nested views that have the Composite View class, a subclass of View. Objects in the Composite View perform as View objects; a composite view can be applied where a view can be used, but it also has the ability to contain and manage nested views. The user can take this as a design that lets them treat a composite view just like we treat one of its components. But the design is used to a more general problem, which occurs whenever we want to group objects and treat the group like an individual object (Bucanek 2009, p.256). This more general design is described by the Composite design pattern. It lets the user create a class hierarchy in which some subclasses define simple objects like Button and other classes define composite o bjects Composite View that groups the simple objects into more complex objects. MVC also allows the user to change the way a view reacts to user input without changing its visual presentation. The user might want to change the way it responds to the keyboard, or set it to use command keys in place of the normal pop-up menu or vice versa. MVC encapsulates the response mechanism in an object known as the Controller object. There is a chain of commands of controllers, so a user can create a new controller as a variation on an existing one. An occurrence of a Controller subclass is used by a View to implement a particular response strategy; to implement another dissimilar strategy; the user has to replace the occurrence with a diverse type of controller. It is also possible to change a controller of a view at run-time to let the view change the

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.