[flexcoders] getItemIndex(someObj) -- mx_internal_uid

2006-07-28 Thread Wayne McFetridge
I'm looking at doing this to prevent drag from datagrid into a 
favourites panel if the user already has that item in favs.

Drag from data gird, the panel that may receive the drop does a check of 
the favourites arraycollection  via

*model.favourites,getItemIndex(theItemImDragging)*

and if returns *-1* accepts the drop otherwise no go.

The arraycollection of favourites and the arraycollection in the grid's 
dataProvider are both just arraycollections of my own WineVO.

Docs say that getItemAt returns -1 if the obj is not in the 
ArrayCollection and mentions an exact match.

My question is does this exact match take into account the 
mx_internal_uid that flex carries around in each item in an 
arraycollection?
I'm  guessing it does because when I drag a new item into my panel I 
accept the drop and then if i try to repeat I get no drop, as I want.

If however I  do another search, returning the same finds but now in a 
re - sourced arraycollection with diff internal_uid's and try to drop 
them it allows the drop to happen and I get duplicates in my favourites.

I'm seeing that the only difference is the mx_internal_uid is 
obviously different in the datagrids arraycollection dataprovider.

Any way of handling this, or doing it differently

wayne mcfetridge
-- 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] getItemIndex(someObj) -- mx_internal_uid

2006-07-27 Thread Wayne McFetridge
I'm looking at doing this to prevent drag from datagrid into a 
favourites panel if the user already has that item in favs.

Drag from data gird, the panel that may receives the drop does a check 
of the favourites arraycollection  via

*model.favourites,getItemIndex(theItemImDragging)*

and if returns -1 accepts the drop otherwise no go.

The arraycollection of favourites and the arraycollection in the grid's 
dataProvider are both just arraycollections of my own WineVO.

Docs say that getItemAt returns -1 if the obj is not in the 
ArrayCollection and mentions an exact match.

My question is does this exact match take into account the 
*mx_internal_uid* that flex carries around in each item in an 
arraycollection?
I'm  guessing it does because when I drag a new item into my panel I 
accept the drop and then if i try to repeat I get no drop, as I want.

If however I  do another search, returning similar finds and try to drop 
them it allows the drop to happen and I get duplicates in my favourites.

I'm seeing that the only difference is the *mx_internal_uid* is 
obviously different in the datagrids arraycollection dataprovider.


Any way of handling this, or doing it differently

wayne mcfetridge


-- 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Flex 2 - Drag-n-Drop with TabNavigator

2006-07-05 Thread Wayne McFetridge
Paul and others interested,

Thanks for your input -- you could be correct regarding the usefulness 
of this feature

I have a tabnavigator that has as children a search results datagrid 
and in another tab a favorites datagrid -- essentially the same grid 
with a different dataProvider.

To add to favourites  I have implemented a right click - Add to 
favorites context menu over the results datagrid.
 I will have an add to favorites icon in each row and was thinking of 
doing drag/drop where you drag the
row from the results grid up onto the favourites tab and drop it.

There are other tabs so I need to check what tab the user is over to 
accept drop or not.
Thus the need to try and find out which of my Tabnavigators children I 
am over.

I am probably happy NOT to add this feature but when I user tested a 
prototype (on an audience of 1 - my wife) it was a feature that was 
requested ;-)



- Original Message -
From: Wayne McFetridge
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Sent: Wednesday, July 05, 2006 1:13 AM
Subject: [flexcoders] Flex 2 - Drag-n-Drop with TabNavigator

Happy Independence Day to American Based Flex developers.

I am trying to drag and drop over a TabNavigator --
ie drag something over a tab to have it open that tab

I'd be curious to know how this drag and drop idea improves upon 
clicking the tab and then dropping inside the open tab?

Are you trying to do two things at once - replacing click plus drop with 
a single drop if the tab isn't already open?

Personally I think it sounds dangerous. If you drop target is inside an 
open tab, then all well and good, but dropping onto the unopened tab 
itself is prone to having the user drop onto the wrong tab, which isn't 
too user friendly. I also think it's a behaviour likely to confuse the 
users. I don't think I've ever seen an application behave like this - it 
doesn't follow the tab metaphor.

If I've got the wrong idea please tell me!

Paul
Am I overloooking something really simple ? Hope so

Thanks

Wayne McFetridge
-- 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Flex 2 - Drag-n-Drop with TabNavigator

2006-07-04 Thread Wayne McFetridge




Happy Independence Day to
American Based Flex developers.

I am trying to drag and drop over a TabNavigator -- 
ie drag something
over a "tab" to have it open that tab
.
I have done a bit of drag and drop with datagrids etc but my question
is how to do I find 
out which of the TabNavigator's children I am "over" (will only allow
drop on certain tabs etc)
this obviously feeds into what child have i dropped onto.

In list based controls you can use "calculateDropIndex"
which according to the docs 


Returns the item index in the drop
target where the item will be dropped.
Used by the dragDrop
event listener to add the items in the correct location.
Not available in the TileList or HorizontalList controls.


I had hoped for something similar in my TabNavigator

Am I overloooking something really simple ? Hope so


Thanks

Wayne McFetridge





-- 





[flexcoders] Flex Builder 2 - Intel Mac etc

2006-06-28 Thread Wayne McFetridge
As the purchase of Flex Builder 2 is almost upon me I need some clarity 
on where/what may happen in regards to Intel Macs.

I'm hoping to make the switch sometime soon( end of 2006) and wondered 
what the ramifications are regarding the
chances of getting my Windows version  (the one I willl need ASAP) 
running on a Mac (Not under Bootcamp or similar but in the Mac OS 
proper) and or
some kind of upgrade path to the Universal version (if there is such a 
thing)

Is this tied into Eclipse itself? I had assumed that a  plugin for 
Eclipse worked on whatever platform you wanted.

I had imagined (vainly)  that maybe I could drop my Flex Builder 2 into 
a Mac version of Eclipse and voila !
Isn't this what the dream of Java was/is.

Surley the makers of software being released in mid 2006 have some kind 
of plan for this

Anyone?

Regards

Wayne McFetridge


-- 


 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/