Swiz Glossary View – Autonomous View to Presentation Model

An overview of Presentation Patterns for Flex was discussed on the adobe blog.

The standard flex program implementation typically uses the Autonomous View presentation pattern.

  • State is in the view
  • Logic is in the view

There is a lot of discussion on how Flex is built for the Presentation Model. Users for both the Mate and Swiz framework have gravitated toward this implementation.

  • State is in the presentation model
  • Logic is in the presentation model
  • View observes the model and is updated accordingly
  • View knows about the presentation model
  • Presentation model does not know about the view

My current implementation of the Swiz Glossary view program was done apparently using the Autonomous View pattern. (I did it without really realizing it:)

In an attempt to better understand the differences, I went back and converted the Autonomous View version into the Presentation Model version using swiz.

The view source is enabled in the examples above to compare the differences.

Advertisements

One Response to Swiz Glossary View – Autonomous View to Presentation Model

  1. xcom says:

    superrrrrrrrrrrrrrrrrrrrrrr!!!! cool

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: