If I am not mistaken that class is as the description you found says: "Not
completed". Parent constructor is as follows:

  protected ValueBox(Element element, Renderer<T> renderer, Parser<T>
parser) {

    super(element, renderer, parser);

    // BiDi input is not expected - disable direction estimation.

    setDirectionEstimator(false);

    if (LocaleInfo.getCurrentLocale().isRTL()) {

      setDirection(Direction.LTR);

    }

    assert InputElement.as(element).getType().equalsIgnoreCase("text");

  }

The assertion is for "text" and I don't see any validators for say Integer.
So at first glance, didn't look to see if there is more going on behind the
scenes, yeah, it's incomplete.

Regards,

Alfredo

On Thu, Apr 19, 2012 at 8:57 AM, Wayne Marsh <wayne.ma...@gmail.com> wrote:

> Am I missing something? It just acts like a normal TextBox for me. Here's
> the simplest example:
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.ui.IntegerBox;
> import com.google.gwt.user.client.ui.RootPanel;
>
> /**
>  * Entry point classes define <code>onModuleLoad()</code>.
>  */
> public class IntegerBoxExample implements EntryPoint
> {
> public void onModuleLoad()
> {
> IntegerBox box = new IntegerBox();
>
> RootPanel.get().add(box);
> }
> }
>
> I can type letters into it. Is it just broken (perhaps related to the
> notice "Experimental API: This class is still under rapid development,
> and is very likely to be deleted. Use it at your own risk." note in the
> documentation)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/zGmwodizajMJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to