Results 1 to 6 of 6

Thread: [FIXED] [1.2.3] NumberField<Integer> error - the type is not NumberField generic

  1. #1
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
      0  

    Default [FIXED] [1.2.3] NumberField<Integer> error - the type is not NumberField generic

    Hi,

    I raised a bug that I couldn't use TextField<Integer> and was directed to use NumberField (see http://extjs.com/forum/showthread.php?t=62660).

    The java doc is incorrect - NumberField can not be parameterized with generics. It extends from TextField<Number> but does not have a generic constructor.

    The full comiler error is:
    Code:
    The type NumberField is not generic; it cannot be parameterized with arguments <Integer>
    The javadoc states:

    NumberField<Integer> field = new NumberField<Integer>;
    field.setPropertyEdtiorType(Integer.class);
    When the correct code is:

    NumberField field = new NumberField();
    field.setPropertyEdtiorType(Integer.class);
    Regards,
    The Jackal

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Thanks, we will update the javadocs.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Fixed in SVN.

  4. #4
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
      0  

    Default

    Huh... Why not add a parameter to NumberField (N extends Number) instead of changing the javadoc ?

  5. #5
    Ext User
    Join Date
    Jun 2008
    Posts
    365
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by zaccret View Post
    Huh... Why not add a parameter to NumberField (N extends Number) instead of changing the javadoc ?
    +1

  6. #6
    Ext User
    Join Date
    Jun 2008
    Posts
    365
    Vote Rating
    0
      0  

    Default

    Mmm. Maybe it is not relevant here to add a parameter as you have to give a specific Class to the property editor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •