Archive for September, 2008

29
Sep
08

Abstract Factory Method: Flex Application using Abstract Factory Method Pattern

I am much exited to learn the design patterns. I have posted the simple Factory and Abstract Factory patterns in previous posts. The real world example gives the real usage of the design patterns. So I started here with a ‘Ice-Cream Shop” Application. The shop contains different king of ice creams. In this application client can submit an order for ice cream and application uses the Abstract Factory pattern to create the ice cream order objects.
Continue reading ‘Abstract Factory Method: Flex Application using Abstract Factory Method Pattern’

26
Sep
08

Abstract Factory Pattern

This Pattern Defines and interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
This pattern allows us to encapsulate instantiations of concrete types. The Abstract ‘creator’ defines an interface with a method for creating objects. This method is known as ‘Factory Method.

Continue reading ‘Abstract Factory Pattern’

26
Sep
08

Simple Factory Design Pattern

The Factory Design pattern is used to create a loose coupling between the Client object and the Product objects by delegating the object creation to a method called a factory; hence the name Factory Method.
Continue reading ‘Simple Factory Design Pattern’

22
Sep
08

Creating a component which can be used as Renderer and Editor

Flex provides a mechanism that we can use a itemRenderer as ItemEditor as well, by setting the rendererIsEditor property of the data Grid, list etc components. We can use any of built-in component
which implement IDropInListItemRenderer interface as ItemRenderer as well as ItemEditor. Suppose if we want to create our custom/ own component which can be used as Itemrenderer and Itemeditor, then we need to work little bit. In this post we are going to create a custom component which can be used as item renderer and item editor.

Continue reading ‘Creating a component which can be used as Renderer and Editor’

22
Sep
08

Flex : Creating Custom Validators

Flex Framework included a very useful component called Validator. The component can be used to validate the data of user input. There are standard validator types of components available like NumberValidator, StringValidator, DataValidator etc. According to the custom needs of application development, the situations arises to develop a custom validator.

Continue reading ‘Flex : Creating Custom Validators’

16
Sep
08

Flex : Creating Custom TweenEffect Objects in flex

Flex framework utilize native flash player’s Tween API to create TweenEffects, such as MoveEffect, ResizeEffect etc which cause changes over time. We can create a custom TweenEffect using the framework to reach the point of expections of applications needs.
TweenEffect’s are different than of Effect objects. The difference of consideration is that the TweenEffects uses a tween animation while changing the properties of the object.
Continue reading ‘Flex : Creating Custom TweenEffect Objects in flex’

16
Sep
08

Flex : Creating Custom Effects in Flex

There are many build-in effect shipped with flex framework. However, a
custom application may need to create a custom effect. For such situations, Flex framework allows us to create our own custom effects.
Continue reading ‘Flex : Creating Custom Effects in Flex’

11
Sep
08

Flex Color Chooser Component : Alternate Flex ColorPicker Component

There is standard ColorPicker component in Flex Framework, which displays the colors in grid format. Some time developer needs to provide users to select color with alternate graphical way. That is what i began to develop a component which display the colors in graphical way and let the user select required color clicking on the graphic representation.

Continue reading ‘Flex Color Chooser Component : Alternate Flex ColorPicker Component’




Follow

Get every new post delivered to your Inbox.