Maybe the return values of the nodes’
getData() would be equal?
I am doing some Drag&Drop between trees and I need to validate that
an
existing node does not exist more than once in a
Tree branch. I am able to
loop in the branch where I am dropping the node
and then compare with the
dropped node. However the statement
if ( NodeinBranch
== receiveNode)
do something ....
does not work. Both, NodeinBranch and
receiveNode, are declared as
Objects.
How can I compare two Tree nodes to find out if
they are the same? I know
that I could compare some properties of the nodes
but I want to have a
generic way of doing it, without depending in
specific properties names.
Thanks,
---------------------------------------------------------------------------
This e-mail message (including attachments, if
any) is intended for the use
of the individual or entity to which it is
addressed and may contain
information that is privileged, proprietary ,
confidential and exempt from
disclosure. If you are not the intended
recipient, you are notified that
any dissemination, distribution or copying of this
communication is
strictly prohibited. If you have received
this communication in error,
please notify the sender and erase this e-mail
message immediately.
---------------------------------------------------------------------------
--
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
|