Adobe Flex Skins, Themes und Components

Adobe Flex Skins, Themes und Components
Skins, Themes und einige Components für Flex sind auf fleksray.org zu finden.

Sonntag, 2. September 2007

Die PopUp ToolBar




Ein Klick auf ein Item in der PopUp ToolBar öffnet ein neues (PopUp) Panel, das beliebige, selbst entwickelte Komponenten enthalten kann. Das geöffnete Panel kann verschoben, minimiert, in der Größe geändert und wieder geschlossen werden.

In der Anwendung wird die PopUp ToolBar mit dem Tag <PopUpToolBar /> deklariert. Die Komponente basiert auf mx.containers.Box und erbt demzufolge alle Properties dieser Klasse. Über das Attribut direction kann die Richtung bestimmt werden, in der die Child-Komponenten der Toolbar angeordnet werden sollen. Mögliche Werte sind horizontal und vertical. Zusätzlich zu den geerbten Eigenschaften der Parent Klasse hat die Toolbar die Properties target und dataProvider.

In der Eigenschaft target (Typ: flash.display.DisplayObjectContainer) wird die Parent Komponente für das PopUp Panel bestimmt. Per default wird hier die Parent Komponente der PopUp ToolBar selbst verwendet. Die Eigenschaft dataProvider erwartet eine ArrayCollection, deren Elemente vom Typ ToolBarItem sein müssen.

Mit der ToolBarItem (<ToolBarItem></ToolBarItem>) Komponente werden Paare von Objekten vom Typ mx.core.UIComponent deklariert. Die erste UIComponent wird für das Icon in der ToolBar verwendet. Hierfür bieten sich Klassen wie Button oder Image an.
Der zweite Eintrag gibt die Komponente an, die im PopUp Panel angezeigt werden soll. Hier bieten sich die mx.containers.* Klassen an. Grundsätzlich kann jedoch für beide Elemente jede Klasse verwendet werden, die auf mx.core.UIComponent basiert.

ToolBarItem erbt alle Eigenschaften und Methoden von mx.collections.ArrayCollection und besitzt zusätzlich die Attribute: title:String, x:Number, y:Number, width:Number, height:Number, event:String. Die hier angegebenen Werte werden auf das PopUp Panel übertragen.
Im Attribut event wird angegeben, auf welches MouseEvent das Item in der Toolbar reagieren soll.

Eine ausführliche Beschreibung der Attribute, Code Beispiele und eine Beispiel Anwendung finden sich auf fleksray.org

3 Kommentare:

Anonym hat gesagt…

Wholesale,
Wholesale handbags,
Wholesale jewelry,
Wholesale clothing,Ugg Store,
Ugg Boots Sale,
Wholesale Ugg Boots,
Wholesale Handbags,
Wholesale Designer Handbags
: mens wholesale clothing??? wholesale hip hop clothing
Wholesale Clothing,
Junior Wholesale, Women Clothing
Wholesale jewelry,
wholesale teen jewelry,
wholesale fashion jewelry and
wholesale costume jewelry.
wholesale rhinestone jewelry,
wholesale beaded jewelry,
wholesale hip hop jewelry,
Wholesale Air Max 90,max 97,
Air max 260,
Wholesale Shoes,
Discount Shoes Wholesale,
Women's Shoes and
Men's Shoes
Handbags
Wholesale Purses Wholesale,
Shoes Wholesale,
wholesale t-shirts,
wholesale polo shirts,
t shirts,
wholesale handbag,
wholesale coach handbag,
wholesale jeans,
Wholesale NFL Jersey,
NFL jerseys,
.Wholesale nfl jerseys,
wholesale sunglasses,
wholesale replica watches,
wholesale rolex watches,
wholesale luxury watches
replica watches,
Designer Handbags,
Replica Bags
replica handbags wholesale,
coach replica handbags,
Women's Shirts.

Web Manager Flexdownloads.com hat gesagt…

Excellent work. I saw some of your work on Adobe flex exchange website too.

If you ever want to sell your work on a commercial license OR just make it available for download for free, we can host it for you at Flexdownloads.com You will be really noticed as an author there. If you want to just give it out for free too, we will be more than happy to work with you on that too.

Web Manager
FlexDownloads.com
support@flexdownloads.com

Anonym hat gesagt…

[p]This collection [url=http://www.linksoflondonbraceleted.co.uk]links of london jewellery sale
[/url] is made for young young children and adolescents . And [url=http://www.linksoflondonbraceleted.co.uk]links of london jewellery[/url] today, jewelry pieces created with Pandora style beads (European beads) are very famous around the world too . The latest Thomas sabo Bracelets may very well be given for one's most [url=http://www.llinksoflondon.co.uk]links of london[/url] close relatives . People love this kind of beads because of their beautiful colors, lovely designs and brilliant [url=http://www.llinksoflondon.co.uk]links london charms[/url] luster . Recommendations can also be a [url=http://www.linksoflondonringuk.co.uk]links of london ring uk
[/url] useful supply of knowledge, what better way to gauge the level of services you can assume than by listening to what other folks must say about their experience buying jewellery on the thomas sabo ireland . It隆炉s sexy, [url=http://www.linksoflondonringuk.co.uk]links of london bracelets[/url] sassy, has a whole lot of attitude and is a far cry from charm bracelets of the past . Charming is a sister brand of Ti Sento, a fashionable leading [url=http://www.linksoflondonringuk.co.uk]links of london bracelets uk[/url] brand of luxury yet affordable jewellery . This latest success is further confirmation of the brand隆炉s commitment to sport, which also includes F1 star Nico Rosberg, Bayern Munich [url=http://www.linksoflondonringuk.co.uk]links of london uk[/url] and Nuremberg隆炉s football and ice hockey teams.[/p]