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…)




April 11th, 2009 at 4:57 pm
cade o source desse exemplo?
April 13th, 2009 at 10:35 am
Certo, havia esquecido.
Acabei de colocar o link no post.