BT

InfoQ Homepage News OpenFlux Component Framework for Flex

OpenFlux Component Framework for Flex

This item in japanese

Bookmarks
OpenFlux offers Flex developers an open source component framework based on the Model-View-Controller (MVC) Architecture. The library has a set of components that currently includes Buttons, Lists, and ScrollBars. The goal of OpenFlux is to make it easy to “dramatically” customize components within a Flex application, without fear of breaking other parts of the component

Ben Stucki, the project founder, describes the component model this way:
Each component in OpenFlux is comprised of three core parts which work together to define the API (Model), graphics (View), and behavior (Controller) of a component. At first glance I’m sure this seems like it may be overkill for creating a component, and it does add a little bit of complexity. However, there is a huge advantage in that you can very quickly and easily add entirely custom graphics and/or behavior to a component without having to worry about rewriting or breaking the existing pieces.
Project contributor, Ryan Campbell, discusses the differences between the standard Flex components and the OpenFlux components:
The general difference between an OpenFlux component and the current Flex components is that the logic is separated in to a MVC architecture. This allows you to easily swap out one part of a component while keeping the functionality of the others. A List component goes a step further and separates the layout logic so you can easily invent new ways to layout your list items.
In Ben Stucki’s post announcing the release earlier this year, he detailed the motivations for building OpenFlux:
The real purpose of OpenFlux is to be customized and used in your projects. Using a viewless component system means that you can create dramatically new and interesting components quickly and easily, without having to worry about breaking the other parts of the component. Ever spent days hacking away at the Accordian, TabNavigator, or List components? Me too, that’s why I built this. The answer isn’t to make everything protected, it’s to have a better component model!
If you are interested in learning more about OpenFlux, InsideRIA has a good post that walks through getting started with the framework. Also, theflexshow.com posted an audio interview earlier this year with Ben Stucki.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • how does it compare to aswing

    by spambl spambl /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    aswing is a framework that let you code flex application in a similar way to swing
    it use of course MVC but also the same class names as swing (JTextField, JTree, JTable...) you can even skin your component with LookAndFeel class


    alpha1 of aswing was released in September 2005 !

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.