My Code of Focus methods
        public void onFocus(Widget sender)
        {
            if (sender instanceof TextBoxBase)
            {
                sender.addStyleName("mandatory-textBox-border");
            }

        }

        public void onLostFocus(Widget sender)
    {
         if (sender instanceof TextBoxBase)
         {
             sender.removeStyleName("mandatory-textBox-border");
         }
    }


On May 19, 4:36 pm, Charan <[email protected]> wrote:
> Hi,
>
> I want to apply the css when the TextBox, TextArea got the focus, so i
> am adding a style onFocus() and removing it on the onLostFocus() it is
> working when my problem is when the textBox has text which is large
> when i focus the textBox/TextArea it is expanding the textBox/textArea
> up to the length of the text in it.
>
> I palced my widgets in the FlexTable which again goes in to a
> FlexTable which is inside the Disclosure Panel.
> I am specified the width and format the column width using the
> FlexCellFormatter and i am specifying the textBox/TextArea width as
> 100% becoz i need widget in whole cell in the FlexTable
>
> I don't need to expand the widgets when got the focus.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to