Hi All,
Did you know the alternate or similar method of createNavItem in TabBar
using Flex 4 Spark TabBar?
I used below code in extended TabBar Class in flex 3. we need to convert it
to flex 4.5, Any one help me to achieve this.
/**
* @private
*/
override protected function createNavItem(
label:String,
icon:Class = null):IFlexDisplayObject{
var tab:SwtTab = super.createNavItem(label,icon) as SwtTab;
tab.closePolicy = this.closePolicy;
tab.doubleClickToEdit = this.editableTabLabels;
if(dragEnabled) {
addDragListeners(tab);
}
if(dropEnabled) {
addDropListeners(tab);
}
// We need to listen for the close event fired from each tab.
tab.addEventListener(SwtTab.CLOSE_TAB_EVENT, onCloseTabClicked, false, 0,
true);
tab.addEventListener(TabEvent.TAB_UPDATED, onTabUpdated);
return tab;
}
--
Thanks & Regards,
(¨`•.•´¨) Always
`•.¸(¨`•.•´¨) Keep
(¨`•.•´¨)¸.•´ Smiling!!
`•.¸.•´
With Love´¨)
¸ •´ ¸.•*´¨) ¸.•*¨)
(¸.•´ (¸.•* ♥♥♥...♪♪♪..... நித்தியானந்தன் சுந்தரேசன்
(M) : +91 98400 91207
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.