[gwt-contrib] Re: Two BiDi support classes

2010-02-09 Thread Tomer Greenberg
We're working on uploading a good patch.

Yes, the goal is to have some widgets use this, not directly though. In my
naive design the code is loaded, but the objects are created only if needed.
Will it solve anything? Is there a solution scheme that doesn't even load
the modules unless needed?

On Tue, Feb 9, 2010 at 1:09 AM,  wrote:

> There was a problem with the patch upload -- the modified files didn't
> show up, perhaps they don't match svn trunk.
>
> I assume I18N pulls in client/shared, and inherits RegExp.  The one
> concern I have is that means that RegExp gets pulled in by User, and
> that code will wind up always being used if widgets automatically use
> BidiUtils (which I understand is the ultimate goal).  Will that code be
> structured such that all of this can be dead-stripped if it isn't
> needed?
>
>
>
> http://gwt-code-reviews.appspot.com/140809
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: TextBoxBase to implement HasDirection instead of its children

2010-02-07 Thread Tomer Greenberg
I'm working on a new class named AutoDirHandler, which is supposed to listen
on keypress events and adjust the directionality of the TA / TB as you type.
The AutoDirHandler is a private member of the TA / TB, which also supply
methods to enable / disable it.


On Thu, Feb 4, 2010 at 8:12 PM, Ray Ryan  wrote:

> I more wanted to hear an elaboration on "I'm going to add some BiDi
> functionality to TextBox and TextArea."
>
> But given that Both of TA and TB implement the interface, refactoring the
> copy/paste implementation sounds good to me.
>
> On Wed, Feb 3, 2010 at 4:01 AM, tomerigo  wrote:
>
>> I want TextBoxBase to implement HasDirection, which means moving the
>> implementation of setDirection and getDirection from TextBox /
>> TextArea to TextBoxBase.
>>
>> On 2 פברואר, 23:00, Ray Ryan  wrote:
>> > Extending TextBoxBase sounds perfectly reasonable, but what exactly are
>> you
>> > proposing to implement there?
>> >
>> > On Tue, Feb 2, 2010 at 10:58 AM, Tomer Greenberg > >wrote:
>> >
>> >
>> >
>> > > Hello gwters,
>> >
>> > > I'm going to add some BiDi functionality to TextBox and TextArea.
>> Given
>> > > that their parent, TextBoxBase, doesn't implement HasDirection, this
>> has to
>> > > be done (in an identical manner) for TextBox and TextArea separately.
>> But
>> > > then, why won't TextBoxBase implement HasDirection instead of its
>> children?
>> > > This way we could save a lot of code duplication, and it's also
>> reasonable -
>> > > if it has text, it also has direction.
>> >
>> > > Any objections?
>> >
>> > > Thanks
>> >
>> > > Tomer
>> >
>> > >  --
>> > >http://groups.google.com/group/Google-Web-Toolkit-Contributors
>> >
>> > --
>> > I wish this were a Wave
>>
>> --
>> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>>
>
>
>
> --
> I wish this were a Wave
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] TextBoxBase to implement HasDirection instead of its children

2010-02-02 Thread Tomer Greenberg
Hello gwters,

I'm going to add some BiDi functionality to TextBox and TextArea. Given that
their parent, TextBoxBase, doesn't implement HasDirection, this has to be
done (in an identical manner) for TextBox and TextArea separately. But then,
why won't TextBoxBase implement HasDirection instead of its children? This
way we could save a lot of code duplication, and it's also reasonable - if
it has text, it also has direction.

Any objections?

Thanks

Tomer

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors