Bug 94601 - Need ability to display leading zeros in Spinner
Summary: Need ability to display leading zeros in Spinner
Status: RESOLVED DUPLICATE of bug 103127
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 00:56 EDT by Sergey Prigogin CLA
Modified: 2005-07-11 10:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Prigogin CLA 2005-05-11 00:56:43 EDT
I'm using a combination of three spinners for entering time of day. Spinners 
displaying minutes and seconds have to display numbers from 00 to 59 with 
always two displayed digits. Is it possible to display leading zeros in Spinner?

Before switching to SWT Spinner I was using my own widget that had a simple 
method for controlling display of numbers:

    /**
     * Sets format controlling appearance of numbers in the Spinner.
     * @param numberFormat The number format to set.
     */
    public void setNumberFormat(NumberFormat numberFormat);

Would you consider adding such convenience method to SWT spinner? It seems much 
superior to setDigits method currently available in Spinner. Or is it too late 
and you can't do it due to the API freeze?
Comment 1 Steve Northover CLA 2005-05-11 18:11:54 EDT
Too late.  It's the 3.1 API freeze.
Comment 2 Sergey Prigogin CLA 2005-05-11 18:44:13 EDT
Would you be ready to introduce this method in July?
Comment 3 Felipe Heidrich CLA 2005-07-11 10:37:11 EDT
Bug103127 has a patch.


*** This bug has been marked as a duplicate of 103127 ***