Card Layout – Draft 1

This is just a draft and its a simple application (with just over 100 lines of code). I finally intent to wrap it into a FLEX Container. So here’s my Card Layout

The Card Layout in Java is similar to the View Stack implementation in FLEX. But when i first heard about this layout in awt package, I always expected it to be a container where views animate like flipping cards. It was quite a disappointment. So i decided to write one in FLEX & decided to call it Card Layout.

You can get the application and the code at these links…


9 Responses to Card Layout – Draft 1

  1. Ali says:

    nice! could you check the link for the source. I’m getting an error trying to download it.


  2. Raghu says:

    Hi Ali,

    I have updated the source… it was a broken link.. sorry

  3. Alan Musselman says:

    Wow Raghu! This is awesome, nice transition and very clean too. Thanks for sharing!


  4. Anonymous says:

    good one. I like it

  5. Anonymous says:

    click while the cards are in motion and it gets messed up… they cards stop and are still usable, but they’re not separated correctly.

    Works great when it doesn’t break though! It’d be super cool if you did some sort of gradual transition for the content instead of having it appear all at once at the end of the transition… but cool anyway!

  6. Raghu says:

    I think that is a general problem with Flex. If you interact with the UI during an effect or transition, the UI gets messed up. Let me dig up, if there is a way to stop it. Thanks for the encouragement 🙂

  7. Anonymous says:

    Hope it won’t be hard to stop/block UI interaction during a particular transition.

  8. Ragul says:

    Hi Raghu,

    Good Job on the layout, except for the problem with fast clicking spoiling the movie. I have noticed the same problem in some components we developed in openlaszlo as well.

    Java guys prefer to call this sort of a layout(or the layering of movies) that you have done as “Layered Panes”

    may be you want to check out

    So don’t let your layout get confused with “Card Layout”. This won’t help guys from java background trying out flex. And please do a bit of research before naming your component, that would help the end users a great deal. Hope this ends up as a flex component pretty soon.

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s