Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-823

Integer Value Editor only selects values of Java Integer magnitude

    Details

      Description

      According to rfc 4517 (http://tools.ietf.org/html/rfc4517):

      {qoute}
      3.3.16. Integer


      A value of the Integer syntax is a whole number of unlimited
      magnitude. The LDAP-specific encoding of a value of this syntax is
      the optionally signed decimal digit character string representation
      of the number (for example, the number 1321 is represented by the
      character string "1321"). The encoding is defined by the following
      ABNF:

      ...{qoute}

      Since the value can be of unlimited magnitude, it seems the editor should allow for that. If i choose to use the In-Place Text Editor, it works, but that seems unnecessarily complicated.

        Activity

        Hide
        Pierre-Arnaud Marcelot added a comment -
        Show
        Pierre-Arnaud Marcelot added a comment - Fixed at revision 1397462. http://svn.apache.org/viewvc?rev=1397462&view=rev
        Hide
        Pierre-Arnaud Marcelot added a comment - - edited

        Here's the new version of the Integer Dialog.

        I've replaced the Spinner widget which only support values of 'int' type by a standard Text widget backed up with a BigDecimal value which can accept any magnitude.

        I've mapped the standard controls of the Spinner onto this Text widget:

        • it only accepts number (and the '-' sign)
        • arrow up adds 1
        • arrow down subtracts 1
        • page up adds 100
        • page down subtracts 100
        Show
        Pierre-Arnaud Marcelot added a comment - - edited Here's the new version of the Integer Dialog. I've replaced the Spinner widget which only support values of 'int' type by a standard Text widget backed up with a BigDecimal value which can accept any magnitude. I've mapped the standard controls of the Spinner onto this Text widget: it only accepts number (and the '-' sign) arrow up adds 1 arrow down subtracts 1 page up adds 100 page down subtracts 100
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Hi Lucas,

        Unfortunately, the Spinner widget we're using to edit these values only supports Integer values (not even Long).
        So, I guess we're a bit stuck here, unless we re-implement a specific widget for other (all?) kinds of numeric values.

        Show
        Pierre-Arnaud Marcelot added a comment - Hi Lucas, Unfortunately, the Spinner widget we're using to edit these values only supports Integer values (not even Long). So, I guess we're a bit stuck here, unless we re-implement a specific widget for other (all?) kinds of numeric values.

          People

          • Assignee:
            Pierre-Arnaud Marcelot
            Reporter:
            lucas theisen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development