PregComp: a Button which owns a DraggableWindow

Flex Add comments

Well, now I realize I dont konw how to call this component. Im sure it has a known name… Maybe I should look at interactions patterns…

Well, what it does: a Button owns a DraggableWindow, so when we click on that Button the DW shows. When we close the DW, it fades into the Button.

It has three states:

-TIED: the DW is beside its owner, it has just opened

- LOOSE: the DW was dragged

-CLOSE: the DW is closed
Theres a WindowOwnerModelLocator, which is responsible for assuring that only one DW is TIED at a time.

Click here to see the app and here to see the source (why the heck didnt I exported it all in one piece I cant remember…)

/***************************************

Bem, agora eu me dou conta que não sei como chamar esse componente. Tenho certeza que ele tem um nome conhecido… Talvez eu devesse procurar nos padrões de interação…

Bem, o que ele faz: um Button tem um DraggableWindow, então quando se clica nesse Button a DW aparece. Quando fechamos a DW ela some em diração ao Button.

Ele tem três estados:

-TIED: a DW está do lado do Button, foi recém aberta.
- LOOSE: a DW foi arrastada.
-CLOSE: a DW foi fechada.
Tem um WindowOwnerModelLocator, que é responsável por certificar que apenas um DW está TIED por vez.

Clique aqui para ver o componente e aqui para ver o source (porque diabos eu não exportei tudo junto eu não consigo lembrar…)

2 Responses to “PregComp: a Button which owns a DraggableWindow”

  1. PAULO Says:

    cade o source desse exemplo?

  2. gabrielaperry Says:

    Certo, havia esquecido.
    Acabei de colocar o link no post.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in