List Info

Thread: TextView Does Not Integrate Well




TextView Does Not Integrate Well
user name
2006-09-04 06:31:18
My experience so far with TextView has shown that it does
not
integrate well with the rest of YAHOO user interface
library.

I've found three ways I could attach event handling to
nodes in a
TreeView, and none of them work properly. All my current
problems stem
from having to run the refresh() function as I add/remove
nodes from
the dynamic tree.

1) addListener via the YAHOO.util.Event system does not work
because
on refresh() of the tree, event handling added to the
treeview nodes
are overwritten. This is made worse in that I want to attach
a context
menu to each node, and these bindings appear to be lost
after refresh.

2) The recommended method is to modify the href property of
the node.
That way when refresh is called, your event handler is
included. But,
to work with this system you have to write strings instead
of simply
attaching first class function objects and so you lose the
power of
closures. It's yuck. Besides, javascript in href's is bad
form yeh?
Plus, I'm not sure how I would add my context menu
listeners this way,
but I know that I shouldn't have to know either 

3) Alternatively it's possible to hook in to the expanded
and
collapsed events that are distributed by the TextView. But I
need the
'click' event and these events are too high a higher
level. For
example, I need to trigger the context menu which has
nothing to do
with expansion/contraction of the treeview nodes.

Thought anyone?






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://
groups.yahoo.com/group/ydn-javascript/

<*> To unsubscribe from this group, send an email to:
    ydn-javascript-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


gst-mode: using gst-program-name instead of gst-args
user name
2006-09-04 06:44:12
I changed gst-mode to use a gst-program-name, similar in
spirit to
scheme-program-name in cmuscheme, inferior-lisp-program in
lisp, etc.
 I have been using the patch for a week or so; what do you
think?

Patch at http://scompall.nocandysw.com/gst/gst-mode-program-
name.patch

-- 
Stephen Compall
http://scompall.no
candysw.com/blog


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
gst-mode: using gst-program-name instead of gst-args
user name
2006-09-04 06:47:22
Stephen Compall wrote:
> I changed gst-mode to use a gst-program-name, similar
in spirit to
> scheme-program-name in cmuscheme, inferior-lisp-program
in lisp, etc.
>  I have been using the patch for a week or so; what do
you think?
>
> Patch at http://scompall.nocandysw.com/gst/gst-mode-program-
name.patch
Ok if you can hide the -p argument, i.e. show only
"gst -V" to the user.

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
gst-mode: using gst-program-name instead of gst-args
user name
2006-09-04 07:13:00
Paolo Bonzini wrote:
> Stephen Compall wrote:
>> I changed gst-mode to use a gst-program-name,
similar in spirit to
>> scheme-program-name in cmuscheme,
inferior-lisp-program in lisp, etc.
>>  I have been using the patch for a week or so; what
do you think?
>>
>> Patch at http://scompall.nocandysw.com/gst/gst-mode-program-
name.patch
> Ok if you can hide the -p argument, i.e. show only
"gst -V" to the user.

http://scompall.nocandysw.com/gst/gst-mode-progra
m-name-1.patch
appends "--emacs-mode" to the command line.  I
figure this heuristic
will degrade more gracefully.

-- 
Stephen Compall
http://scompall.no
candysw.com/blog


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
gst-mode: using gst-program-name instead of gst-args
user name
2006-09-04 07:32:07
>> Ok if you can hide the -p argument, i.e. show only
"gst -V" to the user.
>>     
> http://scompall.nocandysw.com/gst/gst-mode-progra
m-name-1.patch
> appends "--emacs-mode" to the command line.
 I figure this heuristic
> will degrade more gracefully.
>   
Yes, this was what I meant...  I committed the patch,
modifying the 
helpstring for the variable to specify that you should not
use --/-a/-f.

Thanks,

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )