Flex is component based framework. It has many components like button, datagrid, containers etc. There are times when we want to write our own component when any of standard Flex components doesn’t meet our application needs. There are two ways to achieve this, either create the required custom component by extending exiting Flex standard components else create a component according to our requirements from scratch (completely new component).
Continue reading ‘Flex Component Lifecycle and Flex Component Framework’
Archive for October, 2008
The second pattern of Behavioral Design Patterns group is Observer Design Pattern. The pattern contains central point (Subject) to which information gathering Objects (Observers) get subscribed to get information on state change in central Point (Subject). Simply we can say that this like subscribed information distribution.
Continue reading ‘Behavioral Design Patterns: Observer Design Pattern’
Behavioral Design Patterns are specifically concerned with communication between the objects. The loose coupling is maintained between the communicating objects. In these patterns responsibilities are assigned between the objects through either inheritance or composition. I have started looking into first pattern of the group, i.e Command Pattern.
Continue reading ‘Behavioral Design Patterns : Command Design Pattern’
The Composite Pattern is considerable pattern of Structural Design Patterns group. Composite pattern is solution for building complex systems which are made up of lots of smaller components. To understand the concept of Composite Pattern we need to understand the terms;
1) Components and
2) Composites
Continue reading ‘Structural Design Patterns : Composite Design Pattern’
This is another pattern which lies in structural Design Pattern section. To understand the pattern, let’s assume that there are two persons, one person can understand English language only and another can understand Spanish language only. But the both persons need discuss about an application. Here both persons have different interfaces of language they can understand i.e incompatible interfaces, but the requirement is that they need to discuss on an application issue. There is a solution, that is the any one of two person need to learn others language, but it takes long time to learn a new language, so we don’t want go with that solution. The problem can be solved by adapting a third person who can understand both English and Spanish languages, so that he can act as a translator between two peoples.
Continue reading ‘Structural Pattern: Adapter Design Pattern’
I have started with Structural Design pattern; at first place I saw the name Decorator Pattern. As I read the name, I thought name itself describing the pattern, and I was right. The Structural Design Patterns uses classes and object to build complex structures. In this post I am going to share the first member of the Structural Design Patterns group, which is Decorator Design Pattern.
Continue reading ‘Structural Design pattern: Decorator Design Pattern’