Hello!
First, thanks for your reply and suggestions...
Yes, i can define a Mixin, and patch the class at runtime, but it's not
posible override private methods. Then, i can add a very ugly mixin that
overrides all public members, and fake the private ones (setting public
members, and calling them rather than the private ones). But the problem is
that this action broken the roots management... maybe because some roots
was defined before the (runtime) patch.
I expected to find a way to be able to inject a custom class instead a core
class without touching the framework's code.
Yes, i know that i can set the tabIndex property en a per-widget basis...
but i'm trying to avoid this, and implement a sort of logical grouping of
widgets (like a "tabbing group") to be able to define the tab order of some
widgets in terms of others, into the same group. (*)
Sample use case: A customized multicolumn form renderer. I want to
implement a mechanism to group the widgets under the same "groupHeader"
into a "logical bag", to keep the focus there until the last widget was
reached, and then jump to the first widget of the next "groupHeader". So, i
figured out that is necessary (i think...) to change this private method
that calculates "tabbing precedence" between two widgets.
Maybe there is a better way to achieve this (without touching the
FocusHandler class), but i was unable to find it... yet ;-)
(*) Let me know if this explanation isn't clear...
Regards,
Germán
2012/2/3 Mustafa Sak <[email protected]>
> Hi. I guess it's possible to patch any class in qx. But I don't know if a
> private method can be patched. It will sure work in source version but not
> at build one, I guess. So didn't you just set tab index property of form
> widgets to order tabs in your way?
>
> May be its more comfortable to inherite focus handler but it should be
> more easier to use tabIndex property.
>
> Regards Sak
>
> Von meinem iPhone gesendet
>
> Am 03.02.2012 um 18:10 schrieb Germán Pablo Del Tedesco <
> [email protected]>:
>
> Hello!
>
> I want to alter the way in that the tabbing order is computed. I think
> that the trick is to modify the behaviour of the method
> "__compareTheTabOrder" in the class "qx.ui.core.FocusHandler".
>
> The question is: is possible to provide a custom implementation (of the
> method, or the entire class) *without editing the framework classes*?
> Doing this at runtime could be possible (for example, undefining and
> redefining the class -- Horrible, i know... :-) --), but it would affect
> the management of the focus roots.
>
> I spent a couple of hours on this trouble, and I haven't more ideas... i
> need some guidance here.
>
> Greetings from Argentina!
>
> --
>
> *Germán Pablo Del Tedesco*
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
*Germán Pablo Del Tedesco*
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel