edit masks

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

edit masks

Postby TMehrens » Thu Jul 12, 2007 7:02 am

Does SWT Designer have edit masks for Dates and SSN's? I am trying to provide a form that would display / / for a date or - - for a SSN and would let the user enter in the date or ssn and skip over the / or -.

TIA
TMehrens
 
Posts: 7
Joined: Thu Feb 22, 2007 1:01 pm
Location: Helena, MT

Re: edit masks

Postby Eric Clayberg » Thu Jul 12, 2007 7:30 am

TMehrens wrote:Does SWT Designer have edit masks for Dates and SSN's? I am trying to provide a form that would display / / for a date or - - for a SSN and would let the user enter in the date or ssn and skip over the / or -.

SWT does not provide any widgets like that out of the box. There are likely 3rd party SWT widgets that provide that type of behavior.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby TMehrens » Fri Jul 13, 2007 7:41 am

Is there a way to use the MaskFormatter in Swing in SWT Designer to obtain this functionality?
TMehrens
 
Posts: 7
Joined: Thu Feb 22, 2007 1:01 pm
Location: Helena, MT

Postby Eric Clayberg » Fri Jul 13, 2007 12:55 pm

TMehrens wrote:Is there a way to use the MaskFormatter in Swing in SWT Designer to obtain this functionality?

You could use the SWT_AWT bridge component in SWT to place a Swing JFormattedTextField widget in an SWT application.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests